
170
User’s Manual U11969EJ3V0UM00
CHAPTER 7 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
(5) Timer control register 20 to 24 (TMC20 to TMC24)
TMC2n specifies count enable/disable and controls the count clock of TM2n.
This register can be read/written in 8- or 1-bit units.
Bit Position
Bit Name
Function
7
CE2n
Count Enable
Specifies enable/disable of timer count.
0 : Timer count disabled (stops at TM2n = 0000H)
1 : Timer count enabled
6
IMS2n
Interrupt Mode Select
Selects interrupt source.
0 : Interrupt is generated by coincidence signal of the compare register (CM2n)
1 : Interrupt is generated by INTP2n signal
5
CS2n
Clear & Start
Controls clear/start of TM2n by software. This bit is set to 0 when reading.
0 : Continues counting
1 : Clears TM2n and resumes counting
3 to 0
PRM2n3 to
Prescaler Clock Mode
PRM2n0
Selects the count clock frequency.
PRM2n3 PRM2n2 PRM2n1 PRM2n0
Count Clock
0
0
0
1
φ
/2
0
0
1
0
φ
/4
0
0
1
1
φ
/8
0
1
0
0
φ
/16
0
1
0
1
φ
/32
0
1
1
0
φ
/64
0
1
1
1
φ
/128
1
0
0
0
φ
/256
1
1
1
1
TI2n input
Others
Setting prohibited
Caution
Do not change the count clock frequency while the timer operates.
Remark
φ
: Internal system clock
Remark
n = 0 to 4
Address
FFFFF2A0H
7
CE20
TMC20
6
IMS20
5
CS20
4
0
3
PRM203
2
PRM202
1
PRM201
0
PRM200
After reset
01H
Address
FFFFF2C0H
CE21
TMC21
IMS21
CS21
0
PRM213 PRM212 PRM211 PRM210
After reset
01H
Address
FFFFF2E0H
CE22
TMC22
IMS22
CS22
0
PRM223 PRM222 PRM221 PRM220
After reset
01H
Address
FFFFF300H
CE23
TMC23
IMS23
CS23
0
PRM233 PRM232 PRM231 PRM230
After reset
01H
Address
FFFFF320H
CE24
TMC24
IMS24
CS24
0
PRM243 PRM242 PRM241 PRM240
After reset
01H
Содержание 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 ...