R01UH0092EJ0110 Rev.1.10
Page 361 of 807
Jul 31, 2012
M16C/64C Group
19. Three-Phase Motor Control Timer Function
19.3.4
Sawtooth Wave Modulation Mode
In this mode, the sawtooth wave is modulated. Table 19.16 lists Sawtooth Wave Modulation Mode
Specifications, and Figure 19.9 shows Example of Sawtooth Wave Modulation Mode Operation.
Table 19.16
Sawtooth Wave Modulation Mode 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: 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
tria
ng
ular
wa
ve
mod
u
lation
m
ode
Reference cycle
Timer B2 cycle (cycle of the carrier wave)
Timer B2 reload timing
Timer B2 underflow
Three-phase PWM
waveform control
Counts the value of the TAi register every time a timer Ai start trigger is
generated (the TAi1 register is not used).
The output levels set in registers IDB0 and IDB1 are transferred to the
three-phase output shift register at every timer B2 underflow.
Timer B2 interrupt
When the setting value in the ICTB2 register is n, a timer B2 interrupt
request is generated every nth time of timer B2 underflow (not
influenced by bits INV00 and INV01 in the INVC0 register).
Dead time timer trigger
Both of the following:
•
Transfer trigger (generated at every timer B2 underflow)
•
Falling edge of timer Ai one-shot pulse
Detection of a carrier
wave cycle
(first half or last half)
-
i = 1, 2, 4
m
1
+
fi
--------------
n
fi
---
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...