Interrupt Sample Code

  • Uploaded by: Ankit Daftery
  • 0
  • 0
  • May 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Interrupt Sample Code as PDF for free.

More details

  • Words: 57
  • Pages: 1
void init_interrupt2() { cbi(GICR,5); cbi(MCUCSR,6); sbi(GIFR,5); sbi(GICR,5); sei(); }

// Procedure to be followed to set INT2 // // // //

void init_interrupt() { cbi(MCUCR,3); cbi(MCUCR,2); sbi(GICR,7);

// Setting INT1 as // low level interrupt // Enabling INT1 interrupt

sbi(MCUCR,1); cbi(MCUCR,0); sbi(GICR,6); sei();

// Setting INT0 as // falling edge interrupt // Enabling INT0 interrupt //

}

Related Documents

Interrupt Sample Code
May 2020 12
Interrupt
July 2020 7
Interrupt
November 2019 15
Share Point Sample Code
April 2020 14
Pro1at Code Sample
November 2019 2
Share Point Sample Code
April 2020 22

More Documents from ""