|
M30222 Datasheet, PDF (98/237 Pages) Mitsubishi Electric Semiconductor – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER | |||
|
◁ |
deUvnedloepr ment
MITSUBISHI MICROCOMPUTERS
Specifications in this manual are tentative and subject to change
M30222 Group
Rev. G
Timer Functions for Three-phase Motor Control
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Delta modulation
To generate a PWM waveform of triangular wave modulation, set â0â in the modulation mode select
bit (bit 6 at 034816). Also, set â1â in the Timers A4-1, A1-1, A2-1 control bit (bit 1 at 034916). In this
mode, each of Timers A4, A1, and A2 has two timer registers, and alternately reloads the timer
registerâs content to the counter every time Timer B2 counterâs content becomes 000016. If â1â is set to
the effective interrupt output specification bit (bit 1 at 034816), the frequency of interrupt requests that
occur every time the Timer B2 counterâs value becomes 000016 can be set by use of the Timer B2
counter (034D16) . The frequency of occurrences is dependent on the reload value of Timer B2. The
reload value cannot be "0".
Setting â1â in the effective interrupt output specification bit (bit 1 at 034816) provides the means to
choose which value of the Timer A1 reload control signal to use, â0â or â1â, to cause Timer B2âs
interrupt request to occur. To make this selection, use the effective interrupt output polarity selection
bit (bit 0 at 034816).
An example of U phase waveform is shown in Figure 1.74, and the description of waveform output
workings is given below. Set â1â in DU0 (bit 0 at 034A16). And set â0â in DUB0 (bit 1 at 034A16). In
addition, set â0â in DU1 (bit 0 at 034B16) and set â1â in DUB1 (bit 1 at 034B16). Also, set â0â in the
effective interrupt output specification bit (bit 1 at 034816) to set a value in the timer B2 interrupt
occurrence frequency set counter. By this setting, a Timer B2 interrupt occurs when the Timer B2
counterâs content becomes 000016 as many as (setting) times. Furthermore, set â1â in the effective
interrupt output specification bit (bit 1 at 034816), set in the effective interrupt polarity select bit (bit 0
at 034816) and set "1" in the interrupt occurrence frequency set counter (034D16). These settings
cause a Timer B2 interrupt to occur every other interval when the U phase output goes to âHâ.
When the Timer B2 counterâs content becomes 000016, Timer A4 starts outputting one-shot pulses. In
this instance, the content of DU1 (bit 0 at 034B16) and that of DU0 (bit 0 at 034A16) are set in the three-
phase output shift register (U phase), the content of DUB1 (bit 1 at 034B16) and that of DUB0 (bit 1 at
034A16) are set in the three-phase shift register (U phase). After triangular wave modulation mode is
selected, however, no setting is made in the shift register even though the Timer B2 counterâs content
becomes 000016.
The value of DU0 and that of DUB0 are output to the U terminal (P80) and to the U terminal (P81)
respectively. When the Timer A4 counter counts the value written to Timer A4 (038F16, 038E16) and
when Timer A4 finishes outputting one-shot pulses, the three-phase shift registerâs content is shifted
one position, and the value of DU1 and that of DUB1 are output to the U phase output signal and to U
phase output signal respectively. At this time, one-shot pulses are output from the timer for setting
dead time used for setting the time over which the âLâ level of the U phase waveform does not lap over
the âLâ level of the U phase waveform, which has the opposite phase of the former. The U phase
waveform output that started from the âHâ level keeps its level until the timer for setting dead time
finishes outputting one-shot pulses even though the three-phase output shift registerâs content
changes from â1â to â0â by the effect of the one-shot pulses. When the timer for setting dead time
1-99
|
▷ |