
32
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
3827 Group
MITSUBISHI MICROCOMPUTERS
Fig. 32 PWM output timing when PWM register or PWM prescaler is changed
Fig. 31 Structure of PWM control register
b7
b0
PWM control register
(PWMCON : address 002B
16
)
Count source selection bit
0: f(X
IN
)
1: f(X
IN
)/2
PWM
0
function enable bit
0: PWM
0
disabled
1: PWM
0
enabled
PWM
1
function enable bit
0: PWM
1
disabled
1: PWM
1
enabled
Not used (return “0” when read)
T
T2
C
B
T
PWM register
write signal
PWM prescaler
write signal
(Changes from “A” to “B” during “H” period)
(Changes from “T” to “T2” during PWM period)
PWM
(internal)
A
B
T
C
T2
=
stop
PWM
0
function
enable bit
PWM
1
function
enable bit
PWM
0
output
Port
Port
PWM
1
output
Port
stop
Port
When the contents of the PWM register or PWM prescaler have changed, the PWM
output will change from the next period after the change.