English
Language : 

M32C8A Datasheet, PDF (206/372 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M32C/80 Series
M32C/8A Group
16. Three-Phase Motor Control Timer Function
16.1 Triangular Wave Modulation Mode
In triangular wave modulation mode, one cycle of carrier waveform consists of two timer B2 underflow cycles.
A timer Ai one-shot pulse (i = 1, 2, and 4) is generated by using a timer B2 underflow signal as a trigger. Two of
the timer Ai one-shot pulses are used to output one cycle of the PWM waveform. Table 16.3 lists specifications
and settings of triangular wave modulation mode.
Triangular wave modulation mode has two operation modes, three-phase mode 0 and three-phase mode 1.
TAi register is used in three-phase mode 0. Every time a timer B2 underflow interrupt occurs, the one-shot pulse
width is set in the TAi register.
Registers TAi and TAi1 are used in three-phase mode 1. Two different widths of the one-shot pulse can be set in
these registers. If a setting value of the ICTB2 register is n, a timer B2 underflow interrupt is generated every n-th
or every 2n-th timer B2 underflow to set values in registers TAi and TAi1.
Table 16.3 Specifications and Settings of Triangular Wave Modulation Mode
Item
INV06 bit
INV11 bit
Bits INV01 and
INV00
PWCON bit
ICTB2 register
Carrier wave cycle
Upper arm active
level output width
INV13 bit
Timer B2 interrupt
generation timing
Timer B2 reload
timing
Transfer timing from
IDBp register to
three-phase output
shift register
Dead time timer start
timing
Three-Phase Mode 0
0
0
Three-Phase Mode 1
0
1
00b or 01b
00b
10b
11b
0
0 or 1
1
n
2 × (m + 1)
f1
2 × (m+1)
f1
1
f1
×(m+1 - a2k-1+a2k)
1
f1
× (m+1 - bk+ak)
−
Indicates the timer A1 reload control signal state.
Timer B2 underflow
Every nth timer B2
underflow
Every 2nth timer B2 underflow
Every odd-numbered Every even-
(2n × j - 1) timer B2 numbered (2n × j)
underflow
timer B2 underflow
Timer B2 underflow
• Timer B2 underflow (PWCON = 0)
• Timer B2 underflow at the rising edge of the timer A1 reload control
signal (PWCON = 1)
When a value is written to the IDBp register (p = 0, 1), the value is transferred only once by the
first transfer trigger.
• At the falling edge of the one-shot pulse of timer A1, A2 and A4 (INV16 = 0)
• At the rising edge of the three-phase output shift register (INV16 = 1)
−: Can be either 0 or 1.
m: Value of the TB2 register
a2k-1: Value set to the TAi register at odd-numbered time.
a2k: Value set to the TAi register at even-numbered time.
bk: Value set to the TAi1 register at k-th time.
ak: Value set to the TAi register at k-th time.
j: the number of interrupts
Rev.1.00 Jul 15, 2007 Page 189 of 352
REJ09B0385-0100