PIC Timer1 Calculator (16-bit)

Preload & Prescaler Design Tool for PIC Microcontrollers

Parameters & Configuration

Tins: 1.00 µs
Presets:

16-Bit Timer1 Formula

Time = Tins × Prescaler × (65536 − TMR1)

TMR1 = 65536 − [ Time / (Tins × Prescaler) ]

Where Tins = 4 / FOSC. Timer1 counts up to 65536 (216) and overflows at 0xFFFF → 0x0000.

Best Match

Optimal Configuration Solution

Prescaler -
TMR1 Dec - 0x0000
Actual Delay -
Error % -
TMR1H (High Byte): 0x00
TMR1L (Low Byte): 0x00
Generated XC8 / C Code Initialization
// Perform calculation to generate C code

Prescaler Comparison Table (1, 2, 4, 8)

4 options
Prescaler TMR1 Dec TMR1 Hex Achieved Time Error Action
No calculation performed yet.