Hi guys,
new problem...
I am trying to create an interrupt on PCINT0 (ATmega 328) which calls a macro on every phase change (the FC interrupt only reacts on rising OR falling edge)
Do you have any idea what I'm doing wrong?
Thanks,
Niro
Problems with custom interrupt
Moderator: Benj
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: Problems with custom interrupt
Hi,
The ATmega datasheet says that a pin change interrupt will trigger if any enabled pin toggles.
So the interrupt will occur on a rising or falling edge.
Are you saying that is not happening?
The ATmega datasheet says that a pin change interrupt will trigger if any enabled pin toggles.
So the interrupt will occur on a rising or falling edge.
Are you saying that is not happening?
-
- Posts: 77
- Joined: Mon Jan 03, 2011 8:58 pm
- Has thanked: 29 times
- Been thanked: 10 times
- Contact:
Re: Problems with custom interrupt
Hi,
yes this ist true, that is what I need. But the code I've posted doesn't work.
I only said, that the interrupt macros provided with FC doesn't support this behaviour.
yes this ist true, that is what I need. But the code I've posted doesn't work.
I only said, that the interrupt macros provided with FC doesn't support this behaviour.