Amardeep
Junior Member level 3
I am using PIC18F4520 MCU
I am try to implement interrupt on PORTB RB4:RB7
interrupt is works ok but RBIF is still 1 even RBIF=0
as per information on datasheet..
"The input pins (of RB<7:4>) are compared with the old value latched on the last
read of PORTB"
i did experiment on some condition to input like:
1) made high to low state and maintain pin at low
2) made low to high state and maintain pin at high
3) made high to low state and maintain pin at high
4) made low to high state and maintain pin at low
but still RBIF is high and it become cause of recursive interrupt.
any sugesstion.??
I am try to implement interrupt on PORTB RB4:RB7
interrupt is works ok but RBIF is still 1 even RBIF=0
as per information on datasheet..
"The input pins (of RB<7:4>) are compared with the old value latched on the last
read of PORTB"
i did experiment on some condition to input like:
1) made high to low state and maintain pin at low
2) made low to high state and maintain pin at high
3) made high to low state and maintain pin at high
4) made low to high state and maintain pin at low
but still RBIF is high and it become cause of recursive interrupt.
any sugesstion.??