
348
12.4.8
Reset-Synchronized PWM Mode
In the reset-synchronized PWM mode, three-phase output of positive and negative PWM
waveforms that share a common wave transition point can be obtained using channels 3 and 4.
When set for reset-synchronized PWM mode, the TIOC3B, TIOC3D, TIOC4A, TIOC4C,
TIOC4B, and TIOC4D pins become PWM output pins and TCNT3 becomes an upcounter.
Table 12.13 shows the PWM output pins used. Table 12.14 shows the settings of the registers.
Table 12.13 Output Pins for Reset-Synchronized PWM Mode
Channel
Output Pin
Description
3
TIOC3B
PWM output 1
TIOC3D
PWM output 1' (negative-phase waveform of PWM output 1)
4
TIOC4A
PWM output 2
TIOC4C
PWM output 2' (negative-phase waveform of PWM output 2)
TIOC4B
PWM output 3
TIOC4D
PWM output 3' (negative-phase waveform of PWM output 3)
Table 12.14 Register Settings for Reset-Synchronized PWM Mode
Register
Description of Contents
TCNT3
Initial setting of H'0000
TCNT4
Initial setting of H'0000
TGR3A
Set count cycle for TCNT3
TGR3B
Sets the turning point for PWM waveform output by the TIOC3B and TIOC3D pins
TGR4A
Sets the turning point for PWM waveform output by the TIOC4A and TIOC4C pins
TGR4B
Sets the turning point for PWM waveform output by the TIOC4B and TIOC4D pins
Procedure for Selecting the Reset-Synchronized PWM Mode (Figure 12.35):
1.Clear the CST3 and CST4 bits in the TSTR to 0 to halt TCNT3 and TCNT4. The reset-
synchronized PWM mode must be set up while TCNT3 and TCNT4 are halted.
2.Set bits TPSC2–TPSC0 and CKEG1 and CKEG0 in the TCR to select the counter clock and
clock edge for channel 3.
3.Set bits CCLR2–CCLR0 in the TCR3 to select TGRA compare-match as a counter clear
source.
Summary of Contents for SH7041 Series
Page 2: ......
Page 6: ......
Page 38: ...xvi ...
Page 44: ...6 ...
Page 46: ...8 ...
Page 48: ...10 ...
Page 82: ...44 ...
Page 114: ...76 ...
Page 118: ...80 ...
Page 124: ...86 ...
Page 170: ...132 ...
Page 250: ...212 ...
Page 492: ...454 ...
Page 506: ...468 ...
Page 604: ...566 ...
Page 684: ...646 ...
Page 706: ...668 ...
Page 778: ...740 ...
Page 780: ...742 ...
Page 818: ...780 ...
Page 850: ...812 ...
Page 923: ...SH7040 SH7041 SH7042 SH7043 SH7044 SH7045 Group Hardware Manual REJ09B0044 0600O ...