Posted: Tue Jan 17, 2006 6:05 pm Post subject: PCINT6 on ATMega169
Hello
may you help me ?
I try to configure PCINT6 on an ATMega169.
This ATMega169 is the heart of my Butterfly.
I want to generate an interrupt on the falling edge of a pulse connected to (D0/PCINT6)PE6.
This is the only one pin i found on my Butterfly able to accept external interrupt request.
I am not very familiar with setup of internal register.
Many thanks in advance for your help
Regards from Belgium
Jacques
Joined: 14 Aug 2004 Posts: 1384 Location: Dallas / Fort Worth, Texas (USA)
Posted: Wed Jan 18, 2006 1:42 am Post subject:
Quote:
I want to generate an interrupt on the falling edge of a pulse connected to (DO/PCINT6)PE6.
First off, you cannot detect the type of edge to trigger on for a PCINTn. PCINTn reacts to any change in state (rising or falling). The best you can do is test PinE.6 after an interrupt to see if it is high or low.
Some form of the following "should" work for you...
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum