CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
User’s Manual U12688EJ4V0UM00
253
9.2.2 Timer 4
(1) Timers 40, 41 (TM40, TM41)
TM4n is a 16-bit timer. It can mainly be used as an interval timer for software (n = 0, 1).
TM4n is read-only in 16-bit units.
15
TM40
Address
FFFFF350H
After reset
0000H
0
TM41
FFFFF354H
0000H
Starting and stopping of TM4n is controlled by the CE4n bit of timer control register 4n (TMC4n).
The count clock can be selected from
φ
/32,
φ
/64,
φ
/128, or
φ
/256 divisions of the prescaler via register
TMC4n.
Caution Since the timer is cleared at the next count clock after a compare match is issued, when the
division ratio is large, even if the timer's value is read immediately after the match interrupt
is issued, the timer's value may not be 0.
Also, the count clock cannot be changed during timer operation.
(2) Compare registers 40, 41 (CM40, CM41)
CM4n is a 16-bit register and is connected to TM4n. This register can be read/written in 16-bit units.
15
CM40
Address
FFFFF352H
After reset
Undefined
0
CM41
FFFFF356H
Undefined
This register compares TM4n and CM4n each TM4n count clock and if they match, issues an interrupt
(INTCM4n). TM4n is cleared in synchronization with this match.
Содержание V850E/MS1 UPD703100
Страница 2: ...User s Manual U12688EJ4V0UM00 2 MEMO ...
Страница 6: ...User s Manual U12688EJ4V0UM00 6 MEMO ...
Страница 8: ...User s Manual U12688EJ4V0UM00 8 MEMO ...
Страница 12: ...User s Manual U12688EJ4V0UM00 12 MEMO ...
Страница 26: ...User s Manual U12688EJ4V0UM00 26 MEMO ...
Страница 68: ...User s Manual U12688EJ4V0UM00 68 MEMO ...
Страница 124: ...User s Manual U12688EJ4V0UM00 124 MEMO ...
Страница 198: ...User s Manual U12688EJ4V0UM00 198 MEMO ...
Страница 230: ...User s Manual U12688EJ4V0UM00 230 MEMO ...
Страница 422: ...User s Manual U12688EJ4V0UM00 422 MEMO ...