English
Language : 

M16C6NK Datasheet, PDF (158/404 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/60 SERIES
Under development
This document is under development and its contents are subject to change.
M16C/6N Group (M16C/6NK, M16C/6NM)
14. Three-Phase Motor Control Timer Function
Three-Phase PWM Control Register 0 (1)
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
INVC0
Address
01C8h
After Reset
00h
Bit
Symbol
Bit Name
INV00 Interrupt Enable Output
Polarity Select Bit
INV01
Interrupt Enable Output
Specification Bit (3)
Function
RW
0: The ICTB2 counter is incremented by one on the
rising edge of the timer A1 reload control signal
1: The ICTB2 counter is incremented by one on the RW
falling edge of the timer A1 reload control signal (2)
0: ICTB2 counter is incremented by one when
timer B2 underflows
RW
1: Selected by the INV00 bit (2)
INV02 Mode Select Bit (4)
0: No three-phase control timer functions
1: Three-phase control timer function (5)
RW
INV03 Output Control Bit
0: Disables three-phase control timer output (5)
1: Enables three-phase control timer output (6) RW
INV04
Positive and Negative-
Phases Concurrent Active
Disable Function Enable Bit
0: Enables concurrent active output
1: Disables concurrent active output
RW
INV05
Positive and Negative-
Phases Concurrent Active
Output Detect Flag
0: Not detected
1: Detected (7)
RW
INV06
Modulation Mode
Select (8)
0: Triangular wave modulation mode
1: Sawtooth wave modulation mode (9)
RW
INV07
Software Trigger Select
Bit
Transfer trigger is generated when the INV07
bit is set to "1". Trigger to the dead time timer
is also generated when setting the INV06 RW
bit to "1". Its value is "0" when read.
NOTES:
1. Set the INVC0 register after the PRC1 bit in the PRCR register is set to "1" (write enable).
Rewrite the INV00 to INV02 and INV06 bits when the timers A1, A2, A4 and B2 stop.
2. The INV00 and INV01 bits are enabled only when the INV11 bit is set to "1" (three-phase mode 1). The ICTB2
counter is incremented by one every time the timer B2 underflows, regardless of INV00 and INV01 bit settings,
when the INV11 bit is set to "0" (three-phase mode 0).
When setting the INV01 bit to "1", set the timer A1 count start flag before the first timer B2 underflow.
When the INV00 bit is set to "1", the first interrupt is generated when the timer B2 underflows n-1 times, if n is
the value set in the ICTB2 counter. Subsequent interrupts are generated every n times the timer B2 underflows.
3. Set the INV01 bit to "1" after setting the ICTB2 register .
4. Set the INV02 bit to "1" to operate the dead time timer, U-, V-and W-phase output control circuits and ICTB2
counter.
5. When the INV03 bit is set to "1", the pins applied to U/V/W output three-phase PWM.
The U, U, V, V, W and W pins, including pins shared with other output functions, are all placed in high-impedance
states when the following conditions are all met.
The INV02 bit is set to "1" (three-phase control timer function)
The INV03 bit to "0" (three-phase control timer output disabled)
Direction registers of each port are set to "0" (input mode)
6. The INV03 bit is set to "0" when the following conditions are all met.
Reset
A concurrent active state occurs while INV04 bit is set to "1"
The INV03 bit is set to "0" by program
A signal applied to the NMI pin changes "H" to "L"
When both the INV04 and INV05 bits are set to "1", the INV03 bit is set to "0".
7. The INV05 bit cannot be set to "1" by program. Set the INV04 bit to "0", as well, when setting the INV05 bit to "0".
8. The following table describes how the INV06 bit works.
Item
INV06 = 0
INV06 = 1
Mode
Triangular wave modulation mode Sawtooth wave modulation mode
Timing to Transfer from the IDB0 Transferred once by generating a
Transferred every time a transfer trigger
and IDB1 Registers to Three- transfer trigger after setting the IDB0 is generated
Phase Output Shift Register and IDB1 registers
Timing to Trigger the Dead Time On the falling edge of a one-shot pulse By a transfer trigger, or the falling edge of
Timer when the INV16 Bit=0 of the timer A1, A2 or A4
a one-shot pulse of the timer A1, A2 or A4
INV13 Bit
Enabled when the INV11 bit=1 and the Disabled
INV06 bit=0
Transfer trigger : Timer B2 underflows and write to the INV07 bit, or write to the TB2 register when INV10 = 1
9. When the INV06 bit is set to "1", set the INV11 bit to "0" (three-phase mode 0) and the PWCON bit in the TB2SC
register to "0" (reload timer B2 with timer B2 underflow).
Figure 14.2 INVC0 Register
Rev.2.00 Nov 28, 2005 page 140 of 378
REJ09B0124-0200