English
Language : 

UPD784938 Datasheet, PDF (337/733 Pages) NEC – 16-Bit Single-Chip Microcontrollers
CHAPTER 11 TIMER/EVENT COUNTER 2
Figure 11-24 shows an example of 2-channel PWM output, and Figure 11-25 shows the case where FFFFH is set in
the CR20W.
Figure 11-24. Example of PWM Output Using TM2W
FFFFH
TM2W
count value
0H
INTC20
INTC21
TO2
FFFFH
CR21W
CR20W
CR21W
FFFFH
CR20W
CR20W
TO3
Remark ALV2 = 0, ALV3 = 0
Figure 11-25. Example of PWM Output when CR20W = FFFFH
FFFFH
FFFFH
FFFEH
FFFFH
FFFEH
Count clock cycle T
TM2W
count value
2
2
1
1
0
0
0
INTC20
OVF2
TO2
Pulse width
T
Pulse cycle = 256T
Remarks 1. ALV2 = 0
2. T = x/fXX (x = 4, 8, 16, 32, 64, 128, 256, 512, 1,024)
Preliminary User’s Manual U13987EJ1V0UM00
Duty
=. .
255
256
× 100 = 99.6 (%)
337