R01UH0136EJ0210 Rev.2.10
Page 355 of 800
Jul 31, 2012
M16C/64A Group
19. Three-Phase Motor Control Timer Function
Figure 19.7
Example of Three-Phase Mode 1 Operation
Triangular Waveform as a Carrier Wave
Carrier wave
Timer A1
reload control signal
(1)
TB2S bit
in the TABSR register
Signal wave
Timer B2
Timer A4
start trigger signal
(1)
TA4 register
TA41 register
Reload register
Timer A4
one-shot pulse
(1)
U-phase output signal
(1)
U-phase output signal
(1)
INV14 = 0
(active low)
INV14 = 1
(active high)
U-pin output
U-pin output
a
a’
b’
a’
a
b
IR bit in the TB2IC register
(timer B2 interrupt request)
b
c’
c
d’
d
c
d’
d
a’
a
b’
b
c’
c
d’
d
d’
c’
c’
b’
b’
a’
Dead time timer output
(1)
The above assumes the following:
In the INVC0 register
- The INV01 bit is 0 and the ICTB2 register is 2h (timer B2 interrupt at every second timer B2 underflow)
or bits INV01 to INV00 are 11b and the ICTB2 register is 1h (timer B2 interrupt at timer B2 underflow
while the timer A1 reload control signal is 1).
In the INVC1 register
- The INV16 bit is 1 (the dead time timer is triggered on the rising edge of the three-phase output shift register).
- The INV15 bit is 0 (dead time timer enabled).
- The INV10 bit is 0 (timer B2 underflow is a start trigger for timers A1, A2 and A4 ).
The PWCON bit in the TB2SC register is 0 (timer B2 reload at the timing of timer B2 underflow).
Bits PFC1 to PFC0 in the PFCR register are 11b (U-, U-phase outputs).
In registers TA4 and TA41
- Initial value: TA41 = a’, TA4 = a
- Registers TA4 and TA41 change at every timer B2 interrupt
1st : TA41 = b’; TA4 = b; 2nd : TA41 = c’; TA4 = c; 3rd: TA41 = d’; TA4 = d
In registers IDB0 and IDB1
- Initial values: DU0 = 1; DUB0 = 0; DU1 = 0; DUB1 = 1
- At the third timer B2 interrupt, the values are changed to: DU0 = 1; DUB0 = 0; DU1 = 1; DUB1 = 0 .
Dead time
INV13 bit
U-pin output
U-pin output
Rewrite registers IDB0 and IDB1
The rewritten values are
reflected at this point.
Note:
1. Internal signal. Refer to Figure 19.1.
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...