English
Language : 

C508_01 Datasheet, PDF (98/267 Pages) Infineon Technologies AG – 8-Bit CMOS Microcontroller
C508
On-Chip Peripheral Components
Reload of Timer 2
The reload mode for Timer 2 is selected by bits T2R0 and T2R1 in SFR T2CON. To
enable the reload mode, bit T2R0 must be cleared and bit T2R1 set. Figure 6-14 shows
the configuration of Timer 2 in reload mode.
When Timer 2 rolls over from all ‘1’s to all ‘0’s, it not only sets TF2 but also causes the
Timer 2 registers to be loaded with the 16-bit value in the CRC registers, which are
preset by software. The reload will happen in the same machine cycle in which TF2 is
set, thus overwriting the count value 0000H.
Input
Clock
TL2
TH2
T2R0 = '0' and
T2R1 = '1'
Reload
CRCL
CRCH
Figure 6-14 Timer 2 in Reload Mode
Timer 2
TF2
Interrupt
Request
MCS04055
User’s Manual
6-33
2001-05