![](http://datasheet.mmic.net.cn/30000/M30260M3A-XXXGP-U5_datasheet_2358673/M30260M3A-XXXGP-U5_135.png)
12. Timer
page 121
8
2
3
f
o
5
0
2
,
5
1
.
r
a
M
0
.
1
.
v
e
R
0
1
0
-
2
0
2
0
B
9
0
J
E
R
)
T
6
2
/
C
6
1
M
,
A
6
2
/
C
6
1
M
(
p
u
o
r
G
A
6
2
/
C
6
1
M
Start trigger signal
for timer A4*
Timer B2
U phase
Carrier wave
Signal wave
U phase
output signal *
m
nn
p
m
U phase
INV14 = 0
Timer A4
one-shot pulse*
INV14 = 1
Dead time
Transfer to three-phase
output shift register
Rewriting IDB0, IDB1 registers
* Internal signals. See the block diagram of the three-phase motor control timer function.
An example for changing PWM outputs is shown below.
(1)When INV11=1(three-phase mode 1)
INV01=0, ICTB2=216(timer B2 interrupt is generated at every 2’th
occurrence of a timer B2 underflow), or INV01=1, INV00=1,
ICTB2=116(The timer B2 interrupt is generated on the falling
edge of the timer A1 reload control signal)
Initial timer value: TA41=m, TA4=m. The TA4 and TA41 registers
are modified every time a timer B2 interrupt occurs. First time,
TA41= n, TA4 = n. Second time, TA41 = p, TA4 = p.
Initial values of IDB0 and IDB1 registers: DU0 = 1, DUB0 = 0,
DU1 = 0, DUB1 = 1.The register values are changed to DU0 = 1,
DUB0 = 0, DU1= 1 and DUB1 = 0 the third time a timer B2
interrupt occurs.
(2)When INV11=0(three-phase mode 0)
INV01=0, ICTB2=116(timer B2 interrupt is generated at every
occurrence of a timer B2 underflow)
Initial timer value: TA4 = m. The TA4 register is modified each time
a timer B2 interrupt occurs. First time, TA4 = m. Second time, TA4 = n.
Third time, TA4 = n. Fourth time, TA4 = p. Fifth time, TA4 = p.
Initial values of IDB0 and IDB1 registers: DU0=1, DUB0=0, DU1=0,
DUB1=1.The register values are changed to DU0 = 1, DUB0 = 0, DU1=
1 and DUB1 = 0 the sixth time a timer B2 interrupt occurs.
TB2S bit in the
TABSR register
INV13
(INV11=1(three-phase
mode 1))
Shown here is a typical waveform for the case where INVC0 = 00XX11XX2 (X = set as suitable for the system) and INVC1 = 010XXXX02.
U phase
output signal *
(“L” active)
(“H” active)
The value written to the TA4 register and TA41 register are transferred on the rising edge of the timer A1 reload signal.
Figure 12.3.9. Triangular Wave Modulation Operation
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.