174
User’s Manual U11969EJ3V0UM00
CHAPTER 7 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
7.4 Timer 0 Operation
7.4.1 Count operation
Timer 0 functions as a 24-bit interval timer or event counter, as specified by timer control registers 00 to 02 (TMC00
to TMC02).
Timer 0 performs counting up by count clock. Start/stop of counting is controlled by the CE0 bit of timer control
register 00 (TMC00).
(1) Start counting
Timer 0 starts counting by setting the CE0 bit to 1 while the ECLR0 bit of the TMC02 register is 0. However,
when the ECLR0 bit is 1, timer 0 does not start counting until the TCLR0 signal is input. Therefore, it does
not start counting by setting ECLR = 0 after setting CE0 = 1 while ECLR0 = 1.
Writing 1 to TM0 during counting operations (CE0 = 1) does not clear the TM0 register, and timer 0 continues
counting.
(2) Stop counting
Timer 0 stops counting by setting the CE0 bit to 0. If the OST bit of the TMC00 register is set to 1, timer 0
stops operation after occurrence of overflow. However, the value of the timer register can immediately be
cleared by setting CE0 = 0.
Figure 7-1. Basic Operation of Timer 0
Remark ECLR0 = 0
000001H 000002H 000003H
FFFBFEH FFFBFFH
000000H
000001H 000002H 000003H
000000H
TM0
Count starts
CE0
←
1
Count disabled
CE0
←
0
Count starts
CE0
←
1
Count clock
Summary of Contents for V854 UPD703006
Page 2: ...2 User s Manual U11969EJ3V0UM00 MEMO ...
Page 22: ...22 User s Manual U11969EJ3V0UM00 MEMO ...
Page 80: ...80 User s Manual U11969EJ3V0UM00 MEMO ...
Page 134: ...134 User s Manual U11969EJ3V0UM00 MEMO ...
Page 156: ...156 User s Manual U11969EJ3V0UM00 MEMO ...
Page 294: ...294 User s Manual U11969EJ3V0UM00 MEMO ...
Page 320: ...320 User s Manual U11969EJ3V0UM00 MEMO ...
Page 324: ...324 User s Manual U11969EJ3V0UM00 MEMO ...
Page 336: ...336 User s Manual U11969EJ3V0UM00 MEMO ...
Page 376: ...376 User s Manual U11969EJ3V0UM00 MEMO ...
Page 382: ...382 User s Manual U11969EJ3V0UM00 MEMO ...
Page 394: ...394 User s Manual U11969EJ3V0UM00 MEMO ...