1 out of 1 members found this post helpful.
Did you find this post helpful?

|
Re: PIC18FxxQ43 Version of DT_INTS
... and one I forgot.
In your Timer0_Count routine, stop messing around with the PIE bits. You can't get another TMR0 interrupt while you're already inside the ISR.
Code:
Timer0_Count:
' PIE0.5 = 0 ' K40 Stop Timer 0 interupt
' PIE3.7 = 0 ' Q43 Stop Timer 0 interupt
'======= DEBUG =========
if Internal_Cal = 1 then
LATA.2 = ~LATA.2 ' DEBUG OF TIMER0 INTERVLES hub_c pin ( 1/4scan panels Hub_c not used)
endif
'------------------------
TMR0H = $63 ' preset Timer 0 to a 10ms timer
TMR0L = $C0
' PIE0.5 = 1 ' K40 Start Timer 0 interupt - TMR0IF
' PIR3.7 = 1 ' Q43 CLEAR THE INTERUPT
' PIE3.7 = 1 ' Q43 Start Timer 0 interupt
@ INT_RETURN
RETURN
Bookmarks