CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
User’s Manual U12688EJ4V0UM00
277
(3) Operation as a PWM output (Timer 1)
Through a combination of timer 1 and the timer output function, the desired rectangular wave can be output to
the timer output pins (TO1n0, TO1n1) and used as a PWM output (n = 0 to 5).
Here an example is shown using the capture/compare registers CC100 and CC101.
In this case, a PWM signal with 16-bit precision can be output from the TO100 pin. The timing is shown in
Figure 9-16.
If used as a 16-bit timer, the PWM output’s rise timing set in the capture/compare register (CC100) is
determined as shown in Figure 9-16, and the fall timing is determined by the value set in the capture/compare
register (CC101).
Figure 9-16. Example of PWM Output Timing
FFFFH
FFFFH
FFFFH
CC100
D00
D10
D01
D11
D02
CC101
CC101
CC100
CC100
TM10 count value
0
Matching
Matching
Matching
Matching
Matching
Capture/compare register
(CC100)
Interrupt request
(INTCC100)
Capture/compare register
(CC101)
Interrupt request
(INTCC101)
Timer output
(TO100 pin)
D00
D01
D12
t1
t2
D02
D10
D11
Remark
D00 to D02, D10 to D12: Compare register setting values
t1 = {(10000H – D00) + D01}
×
count clock period
t2 = {(10000H – D10) + D11}
×
count clock period
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 ...