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

no-image

SAH-C515

Manufacturer Part Number
SAH-C515
Description
8-Bit CMOS Microcontroller
Manufacturer
SIEMENS [Siemens Semiconductor Group]
Datasheet
The T2CON timer 2 control register is a bitaddressable register which controls the timer 2 function
and the compare mode of registers CRC, CC1 to CC3.
Special Function Register T2CON (Address C8 H )
Bit
T2PS
I3FR
T2R1
T2R0
T2CM
T2I1
T2I0
Semiconductor Group
Bit No.
C8 H
Function
Prescaler select bit
When set, timer 2 is clocked in the “timer“ or “gated timer“ function with 1/24 of the
oscillator frequency. When cleared, timer 2 is clocked with 1/12 of the oscillator
frequency. T2PS must be 0 for the counter operation of timer 2.
External interrupt 3 falling/rising edge flag
Used for capture function in combination with register CRC. lf set, a capture to
register CRC (if enabled) will occur on a positive transition at pin P1.0 / INT3 / CC0.
lf I3FR is cleared, a capture will occur on a negative transition.
Timer 2 reload mode selection
Compare mode bit for registers CRC, CC1 through CC3
When set, compare mode 1 is selected. T2CM = 0 selects compare mode 0.
Timer 2 input selection
T2R1
0
1
1
T2I1
0
0
1
1
MSB
T2PS
CF H
7
The shaded bit is not used in controlling timer/counter 2.
I3FR
CE H
T2I0
0
1
0
1
6
T2R0
X
0
1
I2FR
CD H
5
Function
No input selected, timer 2 stops
Timer function :
input frequency = f
Counter function : external input signal at pin P1.7 / T2
Gated timer function : input controlled by pin P1.7 / T2
Function
Reload disabled
Mode 0 : auto-reload upon timer 2 overflow (TF2)
Mode 1 : reload on falling edge at pin P1.5 / T2EX.
T2R1
CC H
4
6-25
T2R0
CB H
3
On-Chip Peripheral Components
osc
T2CM
/12 (T2PS = 0) or f
CA H
2
T2I1
C9 H
1
LSB
T2I0
C8 H
0
Reset Value : 00 H
osc
/24 (T2PS = 1)
T2CON
C515

Related parts for SAH-C515