English
Language : 

M16C26A Datasheet, PDF (143/352 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/Tiny SERIES
M16C/26A Group (M16C/26A, M16C/26B, M16C/26T)
12. Timer
The three-phase motor control timer function is enabled by setting the INV02 bit in the VC0 register to “1”.
When this function is on, timer B2 is used to control the carrier wave, and timers A4, A1 and A2 are used to
__
___
___
control three-phase PWM outputs (U, U, V, V, W and W). The dead time is controlled by a dedicated dead-
time timer. Figure 12.3.9 shows the example of triangular modulation waveform, and Figure 12.3.10 shows
the example of sawtooth modulation waveform.
Triangular waveform as a Carrier Wave
Triangular wave
Signal wave
TB2S bit in the
TABSR register
Timer B2
Start trigger signal
for timer A4(1)
Timer A4
one-shot pulse(1)
m
m
n
n
pp
Rewrite registers IDB0 and IDB1
U phase
output signal (1)
U phase
output signal (1)
INV14 = 0
(“L” active)
U phase
U phase
INV14 = 1
(“H” active)
U phase
U phase
Dead time
Dead time
Transfer the values
to the three-phase
output shift register
INV13
(INV11=1(three-phase
mode 1))
NOTE:
1. Internal signals. See Figure 12.3.1.
The above applies under the following conditions:
INVC0 = 00XX11XX2 (X varies depending on each system) and INVC1 = 010XXXX02.
Examples of PWM output change are:
(1)When INV11 = 1 (three-phase mode 1)
(2)When INV11 = 0 (three-phase mode 0)
· INV01 = 0 and ICTB2 = 216 (the timer B2 interrupt is generated
· INV01 = 0, ICTB2 = 116 (the timer B2 interrupt is generated
every two times the timer B2 underflows),
whenever timer B2 underflows)
or INV01 = 1, INV00 = 1, and ICTB2=116 (the timer B2 interrupt is · Default value of the timer: TA4 = m. The TA4 register is changed
generated at the falling edge of the timer A1 reload control signal.) whenever the timer B2 interrupt is generated.
· Default value of the timer: TA41 = m, TA4 = m.
First time: TA4 = m. Second tim:, TA4 = n.
Registers TA4 and TA41 are changed whenever the timer B2
Third time: TA4 = n. Fourth time: TA4 = p.
interrupt is generated.
Fifth time: TA4 = p.
First time, TA41 = n, TA4 = n. Second time, TA41 = p, TA4 = p.
· Default values of registers IDB0 and IDB1:
· Default values of registers IDB0 and IDB1:
DU0 = 1, DUB0 = 0, DU1 = 0, DUB1 = 1.
DU0 = 1, DUB0 = 0, DU1 = 0, DUB1 = 1.
They are changed to DU0 = 1, DUB0 = 0, DU1 = 1, and DUB1 = 0
They are changed to DU0 = 1, DUB0 = 0, DU1= 1 and DUB1 = 0
when the sixth timer B2 interrupt is generated.
when the third timer B2 interrupt is generated.
The value written to registers TA4 and TA41 becomes effective at the rising edge of the timer A1 reload control signal.
Figure 12.3.9. Triangular Wave Modulation Operation
Rev. 2.00 Feb.15, 2007 page 126 of 329
REJ09B0202-0200