Three-phase Motor Control Timer Functions
131
Mitsubishi microcomputers
M16C / 62P Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
development
Preliminary Specifications Rev.1.0
Specifications in this manual are tentative and subject to change.
Three-phase PWM control register 0 (Note 1)
b7 b6
b5
b4
b3
b2
b1 b0
Symbol
INVC0
Address
0348
16
After reset
00
16
Effective interrupt output
polarity select bit
INV00
Bit symbol
Bit name
Description
RW
INV01
Effective interrupt output
specification bit
INV02
Mode select bit
INV04
Positive and negative
phases concurrent output
disable function enable bit
INV07
Software trigger select bit
INV06
Modulation mode select
bit
INV05
Positive and negative
phases concurrent output
detect flag
INV03
Output control bit
0: ICTB2 counter incremented by 1 at
odd-numbered occurrences of a timer
B2 underflow
1: ICTB2 counter incremented by 1 at
even-numbered occurrences of a timer
B2 underflow
0:
ICTB2 counter incremented by 1 at a
timer B2 underflow
1: Selected by INV00 bit
0: Three-phase motor control timer
function unused
1: Three-phase motor control timer
function
0: Three-phase motor control timer output
disabled
1: Three-phase motor control timer output
enabled
0: Simultaneous active output enabled
1: Simultaneous active output disabled
0: Not detected yet
1: Already detected
0: Triangular wave modulation mode
1: Sawtooth wave modulation mode
Setting this bit to “1” generates a transfer
trigger. If the INV06 bit is “1”, a trigger for
the dead time timer is also generated.
The value of this bit when read is “0”.
(Note 9)
(Note 3)
(Note 3)
(Note 7)
(Note 2)
Note 1: Write to this register after setting the PRC1 bit of PRCR register to “1” (write enable). Note also that this register
can only be rewritten when timers A1, A2, A4 and B2 are idle.
Note 2: If this bit needs to be set to “1”, set any value in the ICTB2 register before writing to it.
Note 3: Effective when the INV11 bit is “1” (three-phase mode 1). If INV11 is “0” (three-phase mode 0), the ICTB2 counter
is incremented by “1” each time the timer B2 underflows, regardless of whether the INV00 and INV01 bits are set.
Note 4: Setting the INV02 bit to “1” activates the dead time timer, U/V/W-phase output control circuits and ICTB2 counter.
Note 5: All of the U, U, V, V, W and W pins are placed in the high-impedance state by setting the INV02 bit to 1 (three-
phase motor control timer function) and setting the INV03 bit to “0” (three-phase motor control timer output
disable).
Note 6: The INV03 bit is set to “0” in the following cases:
When reset
When positive and negative go active simultaneously while INV04 bit is “1”
When set to “0” in a program
When input on the NMI pin changes state from “H” to “L” (The INV03 bit cannot be set to “1” when NMI input is
“L”.)
Note 7: Can only be set by writing “0” in a program, and cannot be set to “1”.
Note 8: The effects of the INV06 bit are described in the table below.
Item
Mode
Triangular wave modulation mode
Transferred only once synchronously
with the transfer trigger after writing to
the IDB0 to IDB1 registers
(Note 4)
RW
RW
RW
RW
RW
RW
RW
RW
(Note 5)
(Note 8)
Timing at which transferred from IDB0 to
IDB1 registers to three-phase output shift
register
Timing at which dead time timer trigger is
generated when INV16 bit is “0”
INV13 bit
INV06=0
Synchronous with the falling edge of
timer A1, A2, or A4 one-shot pulse
Effective when INV11 is “1” and INV06
is “0”
INV06=1
Sawtooth wave modulation mode
Transferred every transfer trigger
Synchronous with the transfer
trigger and the falling edge of timer
A1, A2, or A4 one-shot pulse
Has no effect
Transfer trigger: Timer B2 underflow, write to the INV07 bit or write to the TB2 register when INV10 is “1”
Note 9: If the INV06 bit is “1”, set the INV11 bit to “0” (three-phase mode 0) and set the PWCON bit to “0” (timer B2
reloaded by a timer B2 underflow).
(Note 6)
(Note 5)
Figure 1.16.2. INVC0 Register