Two interrupt sources in one program
Hi Guys,
I have DT elapsed timer working in a current program, and would also like to implement the portb.0 interrupt.
I am familiar with using b.o interrupt in asm, but what I'd like to know is what to do at the interrupt vector
for the program to tell if the interrupt was caused by portb.0 or timer1 for 16F877A, so the program can act in accordance.
Cheers, Art.
Re: Two interrupt sources in one program
Check the value of INTF (INTCON register) in asm and clear it if it was set???
Re: Two interrupt sources in one program
Re: Two interrupt sources in one program
Thanks mackrackit :)
(I did try to search!!!)