SAH-C515 SIEMENS [Siemens Semiconductor Group], SAH-C515 Datasheet - Page 73

no-image

SAH-C515

Manufacturer Part Number
SAH-C515
Description
8-Bit CMOS Microcontroller
Manufacturer
SIEMENS [Siemens Semiconductor Group]
Datasheet
Reload of Timer 2
The reload mode for timer 2 is selected by bits T2R0 and T2R1 in SFR T2CON. Figure 6-14 shows
the configuration of timer 2 in reload mode.
Mode 0 : When timer 2 rolls over from all l’s to all 0’s, it not only sets TF2 but also causes the timer
Mode 1 : When a 16-bit reload from the CRC register is caused by a negative transition at the
Figure 6-14
Timer 2 in Reload Mode
Semiconductor Group
T2EX
P1.5
2 registers to be loaded with the 16-bit value in the CRC register, which is preset by
software. The reload will happen in the same machine cycle in which TF2 is set, thus
overwriting the count value 0000 H .
corresponding input pin T2EX/P1.5. In addition, this transition will set flag EXF2, if bit
EXEN2 in SFR IEN1 is set. lf the timer 2 interrupt is enabled, setting EXF2 will generate
an interrupt. The external input pin T2EX is sampled in every machine cycle. When the
sampling shows a high in one cycle and a low in the next cycle, a transition will be
recognized. The reload of timer 2 registers will then take place in the cycle following the
one in which the transition was detected.
Input
Clock
Mode 1
Mode
0
CRCL
TL2
Reload
6-30
EXEN2
CRCH
TH2
On-Chip Peripheral Components
EXF2
TF2
<
_
1
Timer
Interrupt
Request
MCS01903
2
C515

Related parts for SAH-C515