R01UH0136EJ0210 Rev.2.10
Page 352 of 800
Jul 31, 2012
M16C/64A Group
19. Three-Phase Motor Control Timer Function
19.3.3
Triangular Wave Modulation Three-Phase Mode 1
Triangular wave modulation uses twice the cycles of timer B2 as a reference cycle. Table 19.12 lists
Three-Phase Mode 1 Specifications, and Figure 19.7 shows Example of Three-Phase Mode 1
Operation.
Table 19.12
Three-Phase Mode 1 Specifications
Item
Specification
Carrier wave cycle
m: Setting value of the TB2 register, 0000h to FFFFh
fi: Count source frequency (f1TIMAB, f2TIMAB, f8TIMAB, f32TIMAB,
f64TIMAB, fOCO-S, fC32)
Three-phase PWM output width
n, n’: Setting value of the TAi register, 0001h to FFFFh
fi: Count source frequency (f1TIMAB, f2TIMAB, f8TIMAB, f32TIMAB,
f64TIMAB, fOCO-S, fC32)
Dif
fe
re
nc
es
fr
om
th
re
e-
pha
se mod
e
0
Reference cycle
Twice the cycle of timer B2 (cycle of the carrier wave)
Timer B2 reload timing
Select either of the following:
•
Timer B2 underflow
•
Timer A output at an odd number of times
Three-phase PWM
waveform control
Counts the values of registers TAi and TAi1 alternately every time a
timer Ai start trigger is generated
Timer B2 interrupt
Select a count timing for the ICTB2 register by bits INV01 to INV00 in
the INVC0 register:
•
Timer B2 underflow (each time)
•
Timer B2 underflow when the INV13 bit in the INVC1 register is 0
•
Timer B2 underflow when the INV13 bit is 1
When the setting value in the ICTB2 register is n, a timer B2 interrupt
request is generated every nth time of the timing selected by setting bits
INV01 to INV00.
Detection of a carrier
wave cycle
(first half or last half)
Detected
(The INV13 bit in the INVC1 register is enabled.)
i = 1, 2, 4
m
1
+
(
)
2
×
fi
-----------------------------
m
1
n
–
n
′
+
+
fi
-----------------------------------
m+1
n
n'
m+1-n+n'
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...