CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
User’s Manual U12688EJ4V0UM00
265
9.4.4 Clearing/starting timer by TCLR1n signal input
Timer 1 ordinarily starts a counting operation when the CE1n bit in the TMC1n register is set (1), but TM1n can be
cleared and a count operation started by input of the TCLR1n signal (n = 0 to 5).
If the ECLR1n bit of the TUM1n register is set to 1, and the OSTn bit is set to 0, if the active edge is input to the
TCLR1n signal after the CE1n bit is set (1), the counting operation starts. Also, if the active edge is input to the
TCLR1n signal during operation, the TM1n’s value is cleared and the count operation resumes (refer to Figure 9-3).
If the ECLR1n bit of the TUM1n register is set to 1, and the OSTn bit is set to 1, the counting operation starts if the
active edge is input to the TCLR1n signal after the CE1n bit is set (1). If TM1n overflows, the count operation stops
once and it does not resume the count operation until the active edge is input again to the TCLR1n signal. If the
active edge of the TCLR1n signal is detected during a counting operation, TM1n is cleared and the count operation
continues (refer to Figure 9-4). Note that if the CE1n bit is set (1) after an overflow, the count operation does not
resume.
Figure 9-3. Timer Clear/Start Operation by TCLR1n Signal Input (If ECLR1n = 1 and OSTn = 0)
Clear & start
Overflow
FFFFH
TM1n
0
Count
start
INTOV1n
ECLR1n 1
CE1n 1
TCLR1n
TCLR1n
Remark
n = 0 to 5
Содержание 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 ...