PIC Timer 0 Calculator

Values to setup Timer 0 for a given Period.

Set a "Timer0 Overflow" interrupt.
The interrupt routine will be called every "Period" uS.
Depending on the PIC model you should use OPTION_REG or T0CON:
OPTION_REG = 192 & OPTION_REG
OPTION_REG = Prescaler | OPTION_REG

TCCON = Prescaler | 192

In Timer 0 interrupt routine increment TMR0 to the specified value:
TMR0 = TMR0 + TMR0_Inc

Select Fosc and Period you want to use.
Then press "Calculate":



Fosc (MHz):

Period (us):





Prescaler (Dec):

TMR0_Inc (Dec):