CHAPTER 7 INVERTER CONTROL FUNCTIONS
User’s Manual U19678EJ1V1UD
423
TCRp of slave channels 2, 4, 6 operate in the up and down count mode, and counts the duty. TCRp loads the
value of TDRp at the first count clock, after the channel start trigger bit (TSp) is set to 1. Hereafter, counting up and
counting down is switched in accordance with the operation of the master channel. INTTMp is output when TCRp
becomes 0001H.
TCRp loads the value of TDRp again when INTTM00 is generated in an up status of the master channel. Similar
operation is continued hereafter.
TCRq of slave channels 3, 5, 7 operate in the one-count mode, and counts the dead time.
TCRq loads the value of TDRq and counts down by using count start timing and INTTMp of slave channels 2, 4, 6
as the start trigger. When TCRq becomes 0000H, it outputs INTTMq and stops counting until the next start trigger is
input (INTTMq of slave channels 3, 5, 7). INTTMq of slave channels 3, 5, 7 cannot be used, because the number of
times it occurs within the carrier cycle period cannot be specified (0 to 3 times).
A 6 triangular wave modulation PWM waveform is output by changing TOp and TOq by the count operations
(INTTMp, INTTMq) of slave channels 2, 4, 6 (duty) and slave channels 3, 5, 7 (dead time).
A positive-phase
waveform and a reverse-phase waveform are output by controlling the TOLp and TOLq bits of the TOL0 registers of
slave channels 2, 4, 6 and slave channels 3, 5, 7.
It is also possible to specify whether to add dead time to the positive logic output or the inverted logic output by
setting TOLp and TOLq. When TOLp and TOLq are set to 0, a positive-phase waveform to which dead time has been
added on the positive logic side of the PWM duty is output. When TOLp and TOLq are set to 1, a reverse-phase
waveform to which dead time has been added on the inverted logic side of the PWM duty is output (TOLq = 1 when
TOLp = 0, and TOLq = 0 when TOLp = 1).
Note that the active level of TOp and TOq can be changed by setting the TLS2 to TLS7 bits of the OPMR register.
The set condition of TOp (TOLp = 0) is the generation of INTTMq by the operation of slave channels 3, 5, 7, which
uses the generation of INTTMp while the TCRp register counts down as the start trigger. The reset condition of TOp
(TOLp = 0) is the generation of INTTMp of slave channels 2, 4, 6 while TCRp counts up.
The set condition of TOq (TOLq = 1) is the generation of INTTMp while the TCRp register counts down. The reset
condition of TOq (TOLq = 0) is the generation of INTTMq by the operation of slave channels 3, 5, 7, which uses the
generation of INTTMp while TCRp counts up as the start trigger.
If the set conditions and reset conditions of TOp and TOq conflict, the set conditions take precedence.
The PWM waveform with dead time can be switched between positive and negative phases for slave channels 2, 4,
6 and 3, 5, 7 by setting TOLp and TOLq.
Cautions 1.
TDR00 of the master channel must be rewritten during an up status period of slave channels
2, 4, 6 (The count status is judged by CSF (TSRp register) of the slave channel or the TO00
output level of the master channel). When the value of TDR00 is rewritten during a down
status period, the periods of the down status and up status differ and an expected waveform
cannot be output, because the value of TDRn of the rewritten master channel becomes valid
at the next period.
2. TS00, TSp, or TSq cannot be set to “1” (forcible restart) while TE00 = 1, TEp = 1, or TEq = 1. If
TS00, TSp, or TSq is set to “1” while TE00 = 1, TEp = 1, or TEq = 1, the counter value (TCR00,
TCRp, or TCRq) will be illegal and TO00, TOp, or TOq will not be able to output the expected
waveform.
Remark
p = 02, 04, 06
q = 03, 05, 07