CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
User’s Manual U12688EJ4V0UM00
262
9.4
Timer 1 Operation
9.4.1 Count operation
Timer 1 functions as a 16-bit free-running timer or an event counter for an external signal.
Whether the timer operates as a free-running timer or event counter is specified by timer control register 1n
(TMC1n) (n = 0 to 5).
When it is used as a free-running timer, and when the count values of TM1n match with the value of any of the
CC1n0 to CC1n3 registers, an interrupt signal is generated, and timer output signal TO1n0 and TO1n1 can be
set/reset. In addition, a capture operation that holds the current count value of TM1n and loads it into one of the four
registers CC1n0 to CC1n3, is performed in synchronization with the valid edge detected from the corresponding
external interrupt request pin as an external trigger. The captured value is retained until the next capture trigger is
generated.
Figure 9-1. Basic Operation of Timer 1
0001H
0000H
0002H 0003H
FBFEH FBFFH
0001H 0002H
0000H
0003H
TM1n
Count clock
∆
Count disabled
CE1n
←
0
∆
Count starts
CE1n
←
1
∆
Count starts
CE1n
←
1
Remark
n = 0 to 5
Summary of Contents for V850E/MS1 UPD703100
Page 2: ...User s Manual U12688EJ4V0UM00 2 MEMO ...
Page 6: ...User s Manual U12688EJ4V0UM00 6 MEMO ...
Page 8: ...User s Manual U12688EJ4V0UM00 8 MEMO ...
Page 12: ...User s Manual U12688EJ4V0UM00 12 MEMO ...
Page 26: ...User s Manual U12688EJ4V0UM00 26 MEMO ...
Page 68: ...User s Manual U12688EJ4V0UM00 68 MEMO ...
Page 124: ...User s Manual U12688EJ4V0UM00 124 MEMO ...
Page 198: ...User s Manual U12688EJ4V0UM00 198 MEMO ...
Page 230: ...User s Manual U12688EJ4V0UM00 230 MEMO ...