Hi. I am getting an error Symbol not previously defined (PIR2) on a 16F628 with Darrels interrupts.
On the program I do not use any PIR2 register. So why does this error come up? Can't this be taken care automatically?
Also if I want to disable TMR0 interrupts inside the timer0 INT Handler, will the Interrupts be enabled on exiting the routine? Like this:
Code:
INT_Service_TMR0:
@ INT_DISABLE TMR0_INT
tmr0=21 'Preload for 60msec time out
timer0=1 'timer 0 has timed out flag
@ INT_RETURN <<<<<<<<----------------Here I do not want to enable timer0
Thanks,
Ioannis
Bookmarks