
Semiconductor Group
87
On-Chip Peripheral Components
Figure 7-34
Special Function Register T2CON
Timer 2 control register. Bit-addressable register which controls timer 2 function and compare mode
of registers CRC, CC1 to CC3.
Bit
Symbol
T2I1
T2I0
0
0
0
1
1
0
1
1
Timer 2 input selection
No input selected, timer 2 stops
Timer function
input frequency =
f
OSC
/12 (T2PS = 0) or
f
OSC
/24 (T2PS = 1)
Counter function, external input signal at pin T2/P1.7
Gated timer function, input controlled by pin T2/P1.7
T2R1
T2R0
0
X
1
0
1
1
Timer 2 reload mode selection
Reload disabled
Mode 0: auto-reload upon timer 2 overflow (TF2)
Mode 1: reload upon falling edge at pin T2EX/P1.5
T2CM
Compare mode bit for registers CRC, CC1 through CC3. When set,
compare mode 1 is selected. T2CM = 0 selects compare mode 0.
I3FR
External interrupt 3 falling/rising edge flag, also used for capture function
in combination with register CRC (see section 7.5.3).
If set, capture to register to CRC (if enabled) will occur on a positive
transition at pin P1.0/INT3/CC0. If I3FR is cleared, capture will occur on
a negative transition.
T2PS
Prescaler select bit. When set, timer 2 is clocked in the "timer" or "gated
timer" function with 1/24 of the oscillator frequency.
T2PS = 0 gates
f
OSC
/12 to timer 2. T2PS must be 0 for the counter
operation of timer 2.
These bits are not used in combination with timer 2.
0CFH 0CEH 0CDH 0CCH 0CBH 0CAH 0C9H 0C8H
T2PS
I3FR
I2FR
T2R1
T2R0
T2CM
T2I1
T2I0
0C8H
T2CON
*
Summary of Contents for SAB 80515 Series
Page 9: ...Semiconductor Group 9 Introduction Figure 1 2 Block Diagram ...
Page 12: ...Semiconductor Group 12 Fundamental Structure Figure 2 1 Detailed Block Diagram ...
Page 18: ...Semiconductor Group 18 Central Processing Unit Figure 3 1 Fetch Execute Sequence ...
Page 73: ...Semiconductor Group 73 On Chip Peripheral Components Figure 7 25 A D Converter Block Diagram ...
Page 83: ...Semiconductor Group 83 On Chip Peripheral Components Figure 7 33 a Timer 2 Block Diagram ...
Page 215: ...Device Specifications Semiconductor Group 215 ...
Page 217: ...Device Specifications Semiconductor Group 217 Pin Configuration P LCC 68 ...
Page 219: ...Device Specifications Semiconductor Group 219 Logic Symbol ...
Page 226: ...Device Specifications Semiconductor Group 226 Figure 1 Block Diagram ...
Page 229: ...Device Specifications Semiconductor Group 229 Figure 2 Memory Address Spaces ...
Page 239: ...Device Specifications Semiconductor Group 239 Figure 4 Block Diagram of the A D Converter ...
Page 241: ...Device Specifications Semiconductor Group 241 Figure 5 Interrupt Request Sources ...
Page 242: ...Device Specifications Semiconductor Group 242 Figure 6 Interrupt Priority Level Structure ...