Hi,
I'm using v10. All the entries look correct, but the chip is behaving incorrectly. The falling edge and both edges behave identically.
PIC16F18326 Interrupt error
-
DirkB
- Posts: 107
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 10, 2020 3:55 pm
- Has thanked: 1 time
- Been thanked: 4 times
-
mnfisher
- Valued Contributor
- Posts: 1941
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 157 times
- Been thanked: 911 times
Re: PIC16F18326 Interrupt error
How often do you expect an interrupt? Could you work round by reading port a/c and only processing the code if the pin is low (falling)
Some thing like:
FCL_PINS = PORTA; // In a C block
if (.pins & (1<< int_pin)) == 0 // in FC
// Do interrupt code
Please post a short snippet of code that demonstrates the issue too...
Martin
Some thing like:
FCL_PINS = PORTA; // In a C block
if (.pins & (1<< int_pin)) == 0 // in FC
// Do interrupt code
Please post a short snippet of code that demonstrates the issue too...
Martin