English
Language : 

UPD784938 Datasheet, PDF (241/733 Pages) NEC – 16-Bit Single-Chip Microcontrollers
CHAPTER 9 TIMER/EVENT COUNTER 0
Figure 9-18 shows an example of 2-channel PWM output, and Figure 9-19 shows the operation of the case where FFFFH
is set in the CR00.
Figure 9-18. Example of PWM Output Using TM0
FFFFH
TM0
count value
0H
INTC00
INTC01
TO0
FFFFH
CR01
CR00
FFFFH
CR01
CR00
CR00
TO1
Remark ALV0 = 0, ALV1 = 0
Figure 9-19. Example of PWM Output when CR00 = FFFFH
FFFFH
FFFFH
FFFEH
FFFFH
FFFEH
Count clock cycle T
TM0
count value
2
2
1
1
0
0
0
INTC00
OVF flag
TO0
Pulse width
T
Pulse cycle = 65,536T
Remarks 1. ALV0 = 0
2. T = x/fXX (x = 4, 8, 16, 32, 64, 128, 256, 512, 1,024)
Duty
=..
65,535
65,536
× 100 = 99.998 (%)
Preliminary User’s Manual U13987EJ1V0UM00
241