NOTES :: PIC Timer 0
Posted by Circuit Negma on September 11, 2008
Create By: Hussein Nosair
Few notes on TMR0 module in PIC16 and PIC18 processors.
General Notes for both PIC16 and PIC18 processors from Microchip:
1, Writing to TMR0 register in PIC16 or writing to TMR0L in PIC18 (8-bit mode) or TMR0L, TMR0H in PIC18 (16-bit mode) will clear Timer 0 prescaler’s counter but not assignment.
2. TMR0 Interrupt
TMR0 overflows from:
0xFF to 0x00 8-bit mode
0xFFFF to 0x0000 16-bit mode
3. TMR0 cannot be used to wake up the processor (PIC) since it is turned off once the PIC in sleep mode.
4. Prescaler assignment PSA is fully controlled by software, as PSA inhibit the “on-the-fly” feature.
5. Once TMR0 overflow, the new value in TMR0 register is 0x00 (8-bit mode) or 0x0000 (16-bit mode)