Hi all,
I'm using 16F876A in my project. Below is my doubt about interrupt-on-change feature in PIC.
As we know, in PIC16F876A has 4 pin (RB4:RB7) have interrupt-on-change feature. My question is how can we determine which pin is causing interrupt if more than 1 pin use as input for interrupt-on-change? FYI, they are sharing RBIF flag. I have done with 1 input but now having problem to adding 1 more input into my project. Is there any method we can use to determine which pin causing the interupt in ISR?
FYI, i use that as my software uart input (to sense HIGH to LOW voltage level at the start bit) from rfid reader, not to sense button where we can determine interrupt pin easily by reading PORTB again.
Any suggestion is welcomed.Thanks in advanced.