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?
IOC Port Interrupt ( Atmega328P )
-
- Posts: 186
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 7:23 pm
- Has thanked: 54 times
- Been thanked: 26 times
-
- 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 )
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.
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