MITSUBISHI DIGITAL ASSP
M66242P/FP
4-CH 12-BIT PWM GENERATOR
Upper byte register
b7
Lower byte register
b7
b0
0
b0
0
1
0
0
1
0
1
0
1
1
0
?
?
?
?
PWM register
b11
b4
0
b3
0
b0
0
1
0
0
1
0
1
1
1
0
4A616
Determines “H” width of basic waveform
(In this case, “H” width is 4A16 = 74)
Determines subsections t
“H” width is increased by
the minimum bit width of τ
m whose
(Refer to Table 2.)
(In this case, m = 2, 4, 6, 10, 12 and 14.)
Basic waveform
2
XIN
τ × 74
τ × 74
τ
τ =
f
τ
(e.g. When fXIN is 4 MHz,
= 0.5µs)
One subsection
t = τ × 256
(8-bit resolution)
Designated subsection
t
m
(In this case, m = 2, 4, 6, 10, 12 and 14.)
Output waveform
τ
τ × 74
τ × 74
τ × 75
t
0
t
4
t
5
t
6
t
7
t
8
t
9
t
10
t
11
t
12
t
13
t15
Subsection
One cycle
Fig. 2 PWM Waveform Output Example (Input data: 4A6 16)
OPERATION
PWM Waveform Output
Serial Data Input
(1)12-bit PWM output
When chip select CS is “L” and write control input WR is “L”,
data input to SIN at the edge where write clock input SCLK sta-
tus shifts from “L” to “H” is written. (See Fig. 3.)
One PWM waveform cycle is divided into 16(24) subsec-
tions t, and each subsection is further divided into 256 (28)
minimum resolution bits τ (= 2/fXIN)
At the edge where WR rises from “L” to “H”, the latest 8-bit
data writing is completed, and input data is stored in lower (or
upper) byte register. When writing on the lower byte or writing
on both upper and lower bytes is completed, data on the
lower byte register or, in the latter case, data on both lower
and upper byte registers is written on the PWM register of the
channel designated by lower bytes b2 and b1. All setting pro-
cess ends with this writing, and PWM waveform changes ac-
cording to the setting from the next cycle.
The “H” width of subsection t basic waveform is deter-
mined by the upper 8 bits of PWM data.
(In Fig. 2 above, “H” width is 4A16 = 74 × τ)
Among these 16 subsections t, subsections tm designated
by the lower 4 bits of PWM data have “H” width that is
longer by τ.
[In Fig. 2 above, the “H” width of designated 6 subsections
(m =2, 4, 6, 10, 12 and 14) is 4B16 = 75 × τ.]
4