Download Print this page

Renesas M16C/50 Series User Manual page 347

Advertisement

M16C/5L Group, M16C/56 Group
17.2.3
Three-Phase PWM Control Register 0 (INVC0)
Three-Phase PWM Control Register 0
b7 b6 b5 b4
b3
b2
b1
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.
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
b0
Symbol
INVC0
Bit Symbol
Bit Name
INV00
ICTB2 count condition select
bit
INV01
Three-phase motor control
INV02
timer function enable bit
Three-phase motor control
INV03
timer output control bit
High- and low-side
INV04
simultaneous turn-on disable
bit
High- and low-side
simultaneous turn-on detect
INV05
flag
INV06
Modulation mode select bit
INV07
Software trigger select bit
17. Three-Phase Motor Control Timer Function
Address
0308h
Function
b1
b0
0
0 :
Timer B2 underflow
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
0 : Three-phase motor control timer function not
used
1 : Three-phase motor control timer function used
0 : Three-phase motor control timer output disabled
1 : Three-phase motor control timer output enabled
0 : Simultaneous turn-on enabled
1 : Simultaneous turn-on disabled
0 : Not detected
1 : Detected
0 : Triangular wave modulation mode
1 : Sawtooth wave modulation mode
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.
Reset Value
00h
RW
RW
RW
RW
RW
RW
RW
RW
RW
Page 310 of 803

Advertisement

loading