Connect with us

Working of Interrupts in Atmega8L

Discussion in 'Microcontrollers, Programming and IoT' started by [email protected], Feb 3, 2012.

Scroll to continue with content
  1. vineet.utd@gmail.com

    [email protected]

    6
    0
    Dec 29, 2010
    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?
     
  2. (*steve*)

    (*steve*) ¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd Moderator

    25,501
    2,841
    Jan 21, 2010
    Do you want the interrupt to be generates when the pin goes high?

    If so, choose rising edge.

    This covers it all for you.
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-