Problems with custom interrupt

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
Niro
Posts: 77
Joined: Mon Jan 03, 2011 8:58 pm
Has thanked: 29 times
Been thanked: 10 times
Contact:

Problems with custom interrupt

Post by Niro »

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
Attachments
INT0.jpg
INT0.jpg (26.03 KiB) Viewed 4892 times

User avatar
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

Post by LeighM »

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?

Niro
Posts: 77
Joined: Mon Jan 03, 2011 8:58 pm
Has thanked: 29 times
Been thanked: 10 times
Contact:

Re: Problems with custom interrupt

Post by Niro »

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.

Niro
Posts: 77
Joined: Mon Jan 03, 2011 8:58 pm
Has thanked: 29 times
Been thanked: 10 times
Contact:

Re: Problems with custom interrupt

Post by Niro »

...found the mistake.
The code I've posted is working fine!

Niro

Post Reply