164
User’s Manual U11969EJ3V0UM00
CHAPTER 7 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
7.2.3 Timer 2
(1) Timers 20 to 24 (TM20 to TM24)
TM2n is a 16-bit timer and is mainly used as an interval timer for software.
TM2n can be only read in 16-bit units.
Remark n = 0 to 4
TM2n is started or stopped by the CE2n bit of timer control register 2n (TMC2n).
The count clock is selected by the TMC2n register from
φ
/2,
φ
/4,
φ
/8,
φ
/16,
φ
/32,
φ
/64,
φ
/128,
φ
/256, and TI2n
input.
Caution
When the value of the timer coincides with the value of the compare register (CM2n), the
timer is cleared by the next clock tick. If the division ratio is large and results in a slow
clock period, the timer value may not be cleared to zero yet, if the timer is read immediately
after the occurrence of the coincidence signal interrupt.
The count clock cannot be changed during timer operations.
(2) Compare registers 20 to 24 (CM20 to CM24)
The compare registers are 16-bit registers connected to TM2n. These registers can be read or written in 16-
bit units.
Remark n = 0 to 4
15
TM2n
Addresses
FFFFF2B0H to
FFFFF330H
After reset
0000H
0
15
CM2n
Addresses
FFFFF2B2H to
FFFFF332H
After reset
Undefined
0
Содержание V854 UPD703006
Страница 2: ...2 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 22: ...22 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 80: ...80 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 134: ...134 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 156: ...156 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 294: ...294 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 320: ...320 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 324: ...324 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 336: ...336 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 376: ...376 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 382: ...382 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 394: ...394 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 396: ...396 User s Manual U11969EJ3V0UM00 MEMO ...