101
µ
PD17062
10.5.5 PWM Data Register
Fig. 10-8 shows how the PWM data register functions.
The PWM data register sets the duty cycle of the 6-bit D/A converter (PWM output) output.
The 6-bit D/A converter has four channels (pins PWM3, PWM2, PWM1, and PWM0). Because the duty cycle
can be set independently for each channel, four independent PWM duty cycle registers are also provided.
Fig. 10-8 PWM Data Register Functions
DBF3
0CH
DBF2
0DH
DBF1
0EH
DBF0
0FH
b15 b14 b13 b12 b11 b10 b9b8b7b6b5b4b3b2b1b0
b7b6b5b4b3b2b1b0
0
PWMR0 05H
Set the PWM output duty of each pin.
0
x
63
8
Use PWM pins as D/A converter.
Duty D = x + 0.75
64
PWM0 pin
PWM0
data register
PWMR1 06H
0PWM1 pin
PWM1
data register
PWMR2 07H
0PWM2 pin
PWM2
data register
PWMR3 08H
0PWM3 pin
PWM3
data register
(%)
0
0Use PWM as 1-bit output pin.
Output contents of b5.
Symbol Peripheral
address Peripheral hardware
Name
Peripheral register
Name Data buffer
Symbol
Address
Bit
Data Don't care Don't care Transfer data
GET
PUT
Valid data
Frequency f = 15.625 kHz
(f: PWM output repetition frequency)