hi all, this is my 1st time using a PIC and i am using a PIC16F877. i have a few queries regarding interrupt programming... pls help...
Lets say i am using Timer1 in Timer mode and the CCP module in capture mode, and i enabled BOTH interrupts for 'timer overflow flag' and the 'capture occured flag' .
if any one of the two events occurs, the program counter will point to the interrupt routine.... but how would i know which event is activating the interrupt ??? do i have to do a polling on the interrupt flags in the beginning of the interrupt routine to determine which event is activating the interrupt ??
or is it possible to have TWO interrupt routines ??
thanks a lot
Lets say i am using Timer1 in Timer mode and the CCP module in capture mode, and i enabled BOTH interrupts for 'timer overflow flag' and the 'capture occured flag' .
if any one of the two events occurs, the program counter will point to the interrupt routine.... but how would i know which event is activating the interrupt ??? do i have to do a polling on the interrupt flags in the beginning of the interrupt routine to determine which event is activating the interrupt ??
or is it possible to have TWO interrupt routines ??
thanks a lot