![Oki MSM85C154HVS Скачать руководство пользователя страница 100](http://html1.mh-extra.com/html/oki/msm85c154hvs/msm85c154hvs_user-manual_3635106100.webp)
INTERNAL SPECIFICATIONS
93
EXF2
:
Timer/counter 2 external flag bit which is set when the T2EX pin level (bit 1 of
port 1) is changed from “1” to “0” at EXEN2=1. This flag serves as the timer
interrupt 2 request signal. When an interrupt is generated, this flag must be reset
to “0” by software.
TF2
:
Timer/counter 2 internal flag bit which is set when a carry signal is generated by
timer/counter 2 in 16-bit auto reload mode or capture mode. This flag serves as
the timer interrupt 2 request signal. When an interrupt is generated, this flag
must be reset to “0” by software.
4.5.3.3 Timer/counter 2 operation modes
Timer/counter 2 operation modes are set by combinations of the CP/
RL2
, TCLK, and RCLK
bits in timer 2 control register (T2CON 0C8H) shown in Table 4-13. The timer modes are listed
in Table 4-14.
Table 4-13 Timer 2 control register (T2CON 0C8H)
Bit
Flag
Set
7
6
5
4
3
2
1
0
TF2
EXF2
RCLK
TCLK
EXEN2
TR2
C/
T2
CP/
RL2
•
•
•
Table 4-14 Timer/counter 2 modes
RCLK
TCLK
CP/
RL2
TR2
0
0
0
1
0
0
1
1
RCLK + TCLK = 1
×
1
×
×
×
0
Mode
16-bit auto reload
16-bit capture
Baud rate generator
All operations stopped
4.5.3.3.1 16-bit auto reload mode
16-bit auto reload mode is set by making the circuit connection shown in Figure 4-20 by setting
RCLK=0, TCLK=0, and CP/
RL2
=0 as the bit conditions in timer 2 control register (T2CON).
Timer/counter 2 operates in the following way when 16-bit auto reload mode is set. When a
timer/counter 2 carry signal is generated, or when the signal applied to the T2EX pin (bit 1
of port 1) is changed from level “1” to “0”, the reload data in the RCAP2L and RCAP2H
registers is preset in L2 and TH2 of timer/counter 2. The timer/counter thus starts counting
from this preset value.
The timer/counter 2 carry signal is set in internal timer flag 2 (TF2), and the T2EX change is
set in external timer flag 2 (EXF2). The TF2 and EXF2 serve as the timer interrupt 2 request
signals with an interrupt call being made to address 43 (2BH) if the timer interrupt 2 has been
enabled. If an interrupt routine is commenced, the TF2 and EXF2 flags 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...