CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
User’s Manual U12688EJ4V0UM00
251
9.2.1 Timer 1
(1) Timers 10 to 15 (TM10 to TM15)
TM1n functions as a 16-bit free running timer or as an event counter for an external signal. Mainly, besides
period measurement and frequency measurement, it can be used as a pulse output (n = 0 to 5). TM1n is
read-only, in 16-bit units.
TM11
FFFFF270H
0000H
TM12
FFFFF290H
0000H
15
TM10
Address
FFFFF250H
After reset
0000H
0
TM13
FFFFF2B0H
0000H
TM14
FFFFF2D0H
0000H
TM15
FFFFF2F0H
0000H
TM1n carries out count-up operations of the internal count clock or of an external count clock. Starting and
stopping of the timer is controlled by the CE1n bit of timer control register 1n (TMC1n).
Selection of internal or external count clocks is performed by the TMC1n register.
(a) Selection of an external count clock
TM1n operates as an event counter. The active edge is specified by the timer unit mode register 1n
(TUM1n) and through input of pin TI1n, TM1n is counted up.
(b) Selection of an internal count clock
TM1n operates as a free running timer. The counter clock can be selected from among the divisions
performed by the prescaler,
φ
/2,
φ
/4,
φ
/8,
φ
/16,
φ
/32, or
φ
/64, through the TMC1n register.
If the timer overflows, an overflow interrupt can be generated. Also, the timer can be stopped after an
overflow through the TUM1n register specification.
The timer can also be cleared and started using the external input TCLR1n. When this is done, the pre-
scaler is cleared at the same time, so the time from TCLR1n input to timer count-up is constant
corresponding to the prescaler's dividing ratio. The operation setting is carried out by the TUM1n
register.
Caution The count clock cannot be changed during timer operation.
Содержание 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 ...