Maker Pro
Maker Pro

Working of Interrupts in Atmega8L

Hi Everyone,


Actually I am writing a code using CodeVision AVR in which the led blinks, whenever the PORTD PIN 4 is high(i have connected a sensor to pin 4,which turns on & outputs 5v).I want to use Interrupt Service Routine in Codevision AVR. In the Code Wizard, it asks for the option for Mode, i.e :LOW LEVEL, Rising Edge,Falling Edge, etc. Which of these should I choose?
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Do you want the interrupt to be generates when the pin goes high?

If so, choose rising edge.

This covers it all for you.
 
Top