Section 9 8-Bit PWM Timer (PWM)
9.4.1
PWM Setting Example
PWDR
setting example
0
1
2
H'7F
H'80
H'81
H'82
: Pulse added
Combination of the basic pulse and added pulse outputs 0/256 to 255/256 of dudty cycle as low ripple wave form.
9.4.2
Diagram of PWM Used as D/A Converter
Figure 9.4 shows the diagram example when using the PWM pulse as the D/A converter. Analog
signal with low ripple can be generated by connecting the low pass filter.
Figure 9.4 Example when PWM is Used as D/A Converter
Rev. 3.00 Jul. 14, 2005 Page 256 of 986
REJ09B0098-0300
1-conversion cycle
3
4
5
6
7
8
Figure 9.3 Example of PWM Setting
Resistor : 120 kΩ
This LSI
9
10
11
12
13
14
Capacitor : 0.1 µF
Low pass filter
Reference value
Basic
Duty cycle
waveform
15
127/256
112 pulses
128/256
128 pulses
129/256
128 pulses
130/256
128 pulses
Additiona
pulse
15 pulses
0 pulses
1 pulse
2 pulses