External interrupt INT0
Toolkit:AVR Development System
Location:/bipom/devtools/WinAVR/minimaxavrc/Examples/Labs/Lab06/Lab6_1
ISR (INT0_vect) { uart0Printf("\n\rExternal Interrupt INT0 ! "); } // **************************************************************************** int main (void) { // Initialize the system uart0Init(19200); // External Interrupt(s) initialization // INT0 : On Mode: Falling Edge EICRA=0x02; EICRB=0x00; EIMSK=0x01; EIFR=0x01; // Global enable interrupts sei(); while(1); }