Hi H,
I changed the prescaler bits:
T0CON.T0PS2 = 0 'Bit2 = 1:2 Prescale value
T0CON.T0PS1 = 0 'Bit1 = 1:2 Prescale value
T0CON.T0PS0 = 0 'Bit0 = 1:2 Prescale value
To:
T0CON.T0PS2 = 1 'Bit2 = 1:256 Prescale value
T0CON.T0PS1 = 1 'Bit1 = 1:256 Prescale value
T0CON.T0PS0 = 1 'Bit0 = 1:256 Prescale value
But I didn't see any difference.
You can see the commented out interrupt flag farther down the code.
Thanks C.
Bookmarks