C8051F340/1/2/3/4/5/6/7
21.2. Timer 2
Timer 2 is a
Timer 2 may be clocked by the system clock, the system clock divided by 12, or the external oscillator source divided by 8. The external clock mode is ideal for
21.2.1. 16-bit Timer with Auto-Reload
When T2SPLIT = ‘0’ and T2CE = ‘0’, Timer 2 operates as a
| T2XCLK | ||
SYSCLK / 12 |
|
|
|
| 0 | ||
| |||
External Clock / 8 |
| 1 | |
| |||
SYSCLK |
|
|
|
CKCON |
|
| |
T T T T T T S S |
| ||
3 3 2 2 1 0 C C |
| ||
M M M M M M A A |
| ||
H L H L | 1 0 |
| |
|
| To SMBus | |
|
| TL2 | |
0 |
| Overflow | |
TR2 | TCLK | ||
| |||
|
| TMR2L TMR2H | |
1 |
|
|
TMR2RLL TMR2RLH
To ADC, | |
SMBus | |
| TF2H |
TMR2CN | TF2L |
TF2LEN | |
| T2CE |
| T2SPLIT |
| TR2 |
| T2CSS |
| T2XCLK |
Reload
Interrupt
Figure 21.4. Timer 2 16-Bit Mode Block Diagram
Rev. 0.5 | 251 |