IOC Port Interrupt ( Atmega328P )

For general Flowcode discussion that does not belong in the other sections.
Post Reply
Alan_37
Posts: 186
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 54 times
Been thanked: 26 times

Flowcode v10 IOC Port Interrupt ( Atmega328P )

Post by Alan_37 »

Hello

I am Trying to Add an IOC Port D Interrupt when I go to properties and select pins
only the Green will light up ( Trigger on both edges ),

how do I select falling edge or rising edge, please?

medelec35
Matrix Staff
Posts: 2086
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 644 times
Been thanked: 702 times

Re: IOC Port Interrupt ( Atmega328P )

Post by medelec35 »

Hi Alan.
The AVR's IOC are different to PIC's.
On PICs you can either select rising, falling, both edges or no edges.
On AVRs the only selection you will have are both edges or no edges.
This is not a bug, it's just how AVR's are designed to work.
For edge detection on AVRs you could read the pin state within the IOC interrupt to determine what edge fired the interrupt.
Martin

Alan_37
Posts: 186
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 54 times
Been thanked: 26 times

Re: IOC Port Interrupt ( Atmega328P )

Post by Alan_37 »

Thanks for your reply I understand .

Post Reply