Specifications
mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 4: Timers
TOUTPS3 TOUTPS2 TOUTPS1 TOUTPS0 Postscaler Rate
0 0 0 0 1:1
0 0 0 1 1:2
0 0 1 0 1:3
0 0 1 1 1:4
0 1 0 0 1:5
0 1 0 1 1:6
0 1 1 0 1:7
0 1 1 1 1:8
1 0 0 0 1:9
1 0 0 1 1:10
1 0 1 0 1:11
1 0 1 1 1:12
1 1 0 0 1:13
1 1 0 1 1:14
1 1 1 0 1:15
1 1 1 1 1:16
Table 4-3 Postscaler Rate
TMR2ON - Timer2 On bit turns the timer TMR2 on.
● 1 - Timer T2 is on; and
● 0 - Timer T2 is off.
T2CKPS1, T2CKPS0 - Timer2 Clock Prescale bits determine prescaler rate:
T2CKPS1 T2CKPS0 Prescaler Rate
0 0 1:1
0 1 1:4
1 x 1:16
Table 4-4 Prescaler Rate
When using the TMR2 timer, one should know several specific details that have to do with its registers:
● Upon power-on, the PR2 register contains the value FFh;
● Both prescaler and postscaler are cleared by writing to the TMR2 register;
● Both prescaler and postscaler are cleared by writing to the T2CON register; and
● On any reset, both prescaler and postscaler are cleared.
Previous Chapter | Table of Contents | Next Chapter
http://www.mikroe.com/en/books/picmcubook/ch4/ (12 of 12)5/3/2009 11:32:57 AM