R01UH0092EJ0110 Rev.1.10
Page 334 of 807
Jul 31, 2012
M16C/64C Group
19. Three-Phase Motor Control Timer Function
19.2.3
Three-Phase PWM Control Register 0 (INVC0)
Set the INVC0 register after the PRC1 bit in the PRCR register is set to 1 (write enabled). Rewrite bits
INV00 to INV02, INV04, and INV06 when timers A1, A2, A4, and B2 are stopped.
INV01 and INV00 (ICTB2 count condition select bit) (b1-b0)
Bits INV00 and INV01 are enabled only when the INV11 bit in the INVC1 register is 1 (three-phase
mode 1).
To set the INV01 bit to 1, set the ICTB2 register first, and then set the INV01 bit to 1. Set the TA1S bit in
the TABSR register (timer A1 count start flag) to 1 prior to the first timer B2 underflow.
When the INV11 bit is 0 (three-phase mode 0), the timer B2 underflow is counted regardless of the
values of bits INV01 to INV00.
INV02 (Three-phase motor control timer function enable bit) (b2)
Set the INV02 bit to 1 to operate the dead time timer, U-, V- and, W-phase output control circuits, and
the ICTB2 counter.
b7 b6 b5 b4
b1
b2
b3
Three-Phase PWM Control Register 0
Symbol
INVC0
Address
0308h
Bit Symbol
Bit Name
RW
INV00
Reset Value
00h
RW
b0
Function
INV01
RW
RW
INV02
Three-phase motor control
timer function enable bit
0 : Three-phase motor control timer function not
used
1 : Three-phase motor control timer function used
INV03
Three-phase motor control
timer output control bit
0 : Three-phase motor control timer output disabled
1 : Three-phase motor control timer output enabled
Modulation mode select bit
0 : Triangular wave modulation mode
1 : Sawtooth wave modulation mode
INV06
RW
RW
Software trigger select bit
A transfer trigger is generated when the
INV07 bit is set to 1. A trigger to the dead
time timer is also generated when setting the
INV06 bit to 1. The read value is 0.
INV07
RW
ICTB2 count condition select
bit
b1 b0
0 0 :
0 1 :
1 0 : Timer B2 underflow when timer
A1 reload control signal is 0
1 1 : Timer B2 underflow when timer
A1 reload control signal is 1
INV05
High- and low-side
simultaneous turn-on detect
flag
0 : Not detected
1 : Detected
RW
RW
INV04
High- and low-side
simultaneous turn-on disable
bit
0 : Simultaneous turn-on enabled
1 : Simultaneous turn-on disabled
Timer B2 underflow
Summary of Contents for M16C Series
Page 846: ...M16C 64C Group R01UH0092EJ0110...