參數(shù)資料
型號(hào): M37221M6-079SP
廠商: Mitsubishi Electric Corporation
英文描述: SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER
中文描述: 單芯片8位CMOS微機(jī)電壓合成
文件頁數(shù): 26/61頁
文件大?。?/td> 1386K
代理商: M37221M6-079SP
MITSUBISHI MICROCOMPUTERS
M37221M6-XXXSP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER
with ON-SCREEN DISPLAY CONTROLLER
26
PWM OUTPUT FUNCTION
The M37221M6-XXXSP is equipped with a 14-bit PWM (DA) and six
8-bit PWMs (PWM0–PWM5). DA has a 14-bit resolution with the
minimum resolution bit width of 0.25
μ
s (for f(X
IN
) = 8 MHz) and a
repeat period of 4096
μ
s. PWM0–PWM5 have the same circuit struc-
ture and an 8-bit resolution with minimum resolution bit width of 4
μ
s
(for f(X
IN
) = 8 MHz) and repeat period of 1024
μ
s.
Figure 23 shows the PWM block diagram. The PWM timing generat-
ing circuit applies individual control signals to PWM0–PWM5 using
f(X
IN
) divided by 2 as a reference signal.
(1) Data Setting
When outputting DA, first set the high-order 8 bits to the DA-H regis-
ter (address 00CE
16
), then the low-order 6 bits to the DA-L register
(address 00CF
16
). When outputting PWM0–PWM5, set 8-bit output
data in the PWMi register (i means 0 to 5; addresses 00D0
16
to
00D4
16
, 00F6
16
).
(2) Transmitting Data from Register to PWM circuit
Data transfer from the 8-bit PWM register to 8-bit PWM circuit is
executed at writing data to the register.
The signal output from the 8-bit PWM output pin corresponds to the
contents of this register.
Also, data transfer from the DA register (addresses 00CE
16
and
00CF
16
) to the 14-bit PWM circuit is executed at writing data to the
DA-L register (address 00CF
16
). Reading from the DA-H register
(address 00CE
16
) means reading this transferred data. Accordingly,
it is possible to confirm the data being output from the D-A output pin
by reading the DA register.
(3) Operating of 8-bit PWM
The following is the explanation about PWM operation.
At first, set the bit 0 of PWM output control register 1 (address 00D5
16
)
to “0” (at reset, bit 0 is already set to “0” automatically), so that the
PWM count source is supplied.
PWM0–PWM5 are also used as pins P0
0
–P0
5
respectively. For
PWM0–PWM5, set the corresponding bits of the port P0 direction
register to “1” (output mode). And select each output polarity by bit 3
of the PWM output control register 2(address 00D6
16
). Then, set
bits 2 to 7 of the PWM output control register 1 to “1” (PWM output).
The PWM waveform is output from the PWM output pins by setting
these registers.
Figure 24 shows the 8-bit PWM timing. One cycle (T) is composed
of 256 (2
8
) segments. The 8 kinds of pulses relative to the weight of
each bit (bits 0 to 7) are output inside the circuit during 1 cycle. Refer
to Figure 24 (a). The 8-bit PWM outputs waveform which is the logi-
cal sum (OR) of pulses corresponding to the contents of bits 0 to 7 of
the 8-bit PWM register. Several examples are shown in Figure 24
(b). 256 kinds of output (“H” level area: 0/256 to 255/256) are se-
lected by changing the contents of the PWM register. A length of
entirely “H” output cannot be output, i.e. 256/256.
(4) Operating of 14-bit PWM
As with 8-bit PWM, set the bit 0 of the PWM output control register 1
(address 00D5
16
) to “0” (at reset, bit 0 is already set to “0” automati-
cally), so that the PWM count source is supplied. Next, select the
output polarity by bit 2 of the PWM output control register 2 (address
00D6
16
). Then, the 14-bit PWM outputs from the D-A output pin by
setting bit 1 of the PWM output control register 1 to “0” (at reset, this
bit already set to “0” automatically) to select the DA output.
The output example of the 14-bit PWM is shown in Figure 25.
The 14-bit PWM divides the data of the DA latch into the low-order 6
bits and the high-order 8 bits.
The fundamental waveform is determined with the high-order 8-bit
data “D
H
.” A “H” level area with a length
τ
D
H
(“H” level area of
fundamental waveform) is output every short area of “t” = 256
τ
=
64
μ
s (
τ
is the minimum resolution bit width of 0.25
μ
s). The “H” level
area increase interval (t
m
) is determined with the low-order 6-bit data
“D
L
.” The “H” level are of smaller intervals “t
m
” shown in Table 6 is
longer by
τ
than that of other smaller intervals in PWM repeat period
“T” = 64t. Thus, a rectangular waveform with the different “H” width is
output from the D-A pin. Accordingly, the PWM output changes by
τ
unit pulse width by changing the contents of the DA-H and DA-L
registers. A length of entirely “H” output cannot be output, i. e. 256/
256.
(5) Output after Reset
At reset, the output of port P0
0
–P0
5
is in the high-impedance state,
and the contents of the PWM register and the PWM circuit are unde-
fined. Note that after reset, the PWM output is undefined until setting
the PWM register.
相關(guān)PDF資料
PDF描述
M37221M6-286SP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER
M37221M6 Single Chip 8 Bits Microcomputer(8位單片機(jī))
M37221 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER
M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER
M37266ME-XXXSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
M37221M6-286SP 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER
M37221M6H 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER
M37221M6H-XXXFP 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER
M37221M6H-XXXSP 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER
M37221M6-XXXSP 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER