121
CHAPTER 9 8-BIT TIMER/EVENT COUNTERS 2, 3 TM2, TM3
9.2 8-Bit Timer/Event Counters 2 and 3 Configurations
Timers 2 and 3 consist of the following hardware.
Table 9-1. Timers 2 and 3 Configurations
Item
Configuration
Timer register
8-bit counter n (TMn)
Register
8-bit compare register n (CRn)
Timer output
2 (TIOn)
Control register
Timer clock select register n (TCLn)
8-bit timer mode control register n (TMCn)
Remark
n = 2, 3
(1) 8-bit counter n (TMn: n = 2, 3)
TMn is an 8-bit read-only register which counts the count pulses.
The counter is incremented in synchronization with the rising edge of the count clock. When count value is read
during operation, count clock input is temporary stopped, and then the count value is read. In the following
situations, the count value is set to 00H.
<1>
RESET input
<2>
Clear TCEn
<3>
Match between TMn and CRn in clear and start made with match between TMn and CRn
Remark n = 2, 3
(2) 8-bit compare register n (CRn: n = 2, 3)
The value set in the CRn is constantly compared with the 8-bit counter n (TMn) count value, and an interrupt
request (INTTMn) is generated if they match (except PWM mode).
It is possible to rewrite the value of CRn within 00H to FFH during count operation.
Remark
n = 2, 3
Содержание mPD780973 Series
Страница 2: ...2 MEMO ...
Страница 66: ...66 MEMO ...
Страница 98: ...98 MEMO ...
Страница 138: ...138 MEMO ...
Страница 164: ...164 MEMO ...
Страница 182: ...182 MEMO ...
Страница 204: ...204 MEMO ...
Страница 244: ...244 MEMO ...
Страница 262: ...262 MEMO ...
Страница 278: ...278 MEMO ...
Страница 290: ...290 MEMO ...