Hi,
I like to use multiple IOC's to read out.
Using the IOC is only one time possible. So all external interrupts have to be read out in this interrupt.
This makes the code more complex by the fact I have to check every bit used in this interrupt.
Is it possible to add an interrupt function using the bit flag register?
Best regards.
PS
PIC16F18877 IOC Flag register readout
-
- Posts: 14
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 31, 2020 2:14 pm
- Been thanked: 3 times
-
- Matrix Staff
- Posts: 1433
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 197 times
- Been thanked: 332 times
Re: PIC16F18877 IOC Flag register readout
My solution for this would probably be as follows:
- Enable the IOC interrupt with all pins I care about selected
- Have this call a macro
- In this macro, check each input in turn and call another macro to deal with that pin
Re: PIC16F18877 IOC Flag register readout
Hi Steve,
Thanks for the quick reply. As you suggested this is exactly what i'm doing now.
As the PIC16F18877 is a chip also used in the e-blocks2, Interrupt based on the bit flag register could be a comprehensive feature....
Thanks for now.
Thanks for the quick reply. As you suggested this is exactly what i'm doing now.
As the PIC16F18877 is a chip also used in the e-blocks2, Interrupt based on the bit flag register could be a comprehensive feature....
Thanks for now.
-
- Matrix Staff
- Posts: 1433
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 197 times
- Been thanked: 332 times
Re: PIC16F18877 IOC Flag register readout
Thanks for the suggestion - I'll make sure this gets some thought.
No promises though. It's already very complicated trying to cover native interrupts for the wide range of devices and families we support.
No promises though. It's already very complicated trying to cover native interrupts for the wide range of devices and families we support.