PDA

View Full Version : Two interrupt sources in one program



Art
- 25th January 2012, 01:11
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.

Art
- 25th January 2012, 01:17
Check the value of INTF (INTCON register) in asm and clear it if it was set???

mackrackit
- 25th January 2012, 11:18
http://darreltaylor.com/DT_INTS-14/combine.html

Art
- 25th January 2012, 15:12
Thanks mackrackit :)
(I did try to search!!!)