INTERNAL SPECIFICATIONS
75
4.4.2.9 Timer 2 control register (T2CON)
TMOD
0C8H
TF2
EXF2
RCLK
TCLK
EXEN2
TR2
C/
T2
CP/
RL2
Name
Address
MSB
LSB
7
6
5
4
3
2
1
0
Bit location
Flag
Function
T2CON.0
T2CON.1
T2CON.2
T2CON.3
T2CON.4
T2CON.5
T2CON.6
T2CON.7
CP/
RL2
C/
T2
TR2
EXEN2
TCLK
RCLK
EXF2
TF2
Capture mode is set when TCLK+RCLK="0" and CP/
RL2
16-bit
auto reload mode is set when TCLK+RCLK="0" and CP/
RL2
="0".
CP/
RL2
is ignored when TCLK+RCLK="1".
Timer/counter 2 count clock designation control bit.
The internal clocks (XTAL1·2÷12, XTAL1·2÷2) are used when this
bit is "0", and the external clock applied to the T2 pin is passed to
timer/counter 2 when the bit is "1".
Timer/counter 2 counting start and stop control bit.
Timer/counter 2 commences counting when this bit is "1" and
stops counting when "0".
T2EX timer/counter 2 external control signal control bit. Input of the
T2EX signal is disabled when this bit is "0", and enabled when "1".
Serial port transmit circuit drive clock control bit.
Timer/counter 2 is switched to baud rate generator mode when this
bit is "1", and the timer/counter 2 carry signal becomes the serial
Port transmit clock. Note, however, that the serial ports can only
use the timer/counter 2 carry signal in serial port modes 1 and 3.
Serial port receive circuit drive clock control bit.
Timer/counter 2 is switched to baud rate generator mode when this
bit is "1", and the timer/counter 2 carry signal becomes the serial
Port receive clock. Note, however, that the serial ports can only
use the timer/counter 2 carry signal in serial port modes 1 and 3.
Timer/counter 2 external flag.
This bit is set to "1" when the T2EX timer/counter 2 external
control signal level is changed from "1" to "0" while EXEN2="1".
This flag serves as the timer interrupt 2 request signal. if an
interrupt is generated, it must be reset to "0" by software.
Timer/counter 2 carry flag.
This bit is set to "1" by a carry signal when timer/counter 2 is in 16-
bit auto reload mode or in capture mode.
This flag serves as the timer interrupt 2 request signal. if an
interrupt is generated, it must be reset to "0" by software.
Содержание MSM85C154HVS
Страница 1: ...MSM80C154S MSM83C154S MSM85C154HVS USER S MANUAL...
Страница 8: ...1 INTRODUCTION...
Страница 9: ...MSM80C154S 83C154S 85C154HVS 2...
Страница 15: ...MSM80C154S 83C154S 85C154HVS 8...
Страница 16: ...2 SYSTEM CONFIGURATION...
Страница 17: ...MSM80C154S 83C154S 85C154HVS 10...
Страница 23: ...MSM80C154S 83C154S 85C154HVS 16 MSM80C154STS MSM83C154STS 44 Pin Plastic TQFP TQFP44 P 1010 0 80 K...
Страница 48: ...3 CONTROL...
Страница 49: ...MSM80C154S 83C154S 85C154HVS 42...
Страница 60: ...4 INTERNAL SPECIFICATIONS...
Страница 61: ...MSM80C154S 83C154S 85C154HVS 54...
Страница 197: ...MSM80C154S 83C154S 85C154HVS 190 5 INPUT OUTPUT PORTS...
Страница 198: ...INPUT OUTPUT PORTS 191...
Страница 220: ...INPUT OUTPUT PORTS 213...
Страница 221: ...MSM80C154 83C154 85C154 214 6 ELECTRICAL CHARACTERISTICS...
Страница 222: ...ELECTRICAL CHARACTERISTICS 215...
Страница 236: ...7 DESCRIPTION OF INSTRUCTIONS...
Страница 237: ...MSM80C154S 83C154S 85C154HVS 230...