HD6417021 Hitachi Semiconductor, HD6417021 Datasheet - Page 279

no-image

HD6417021

Manufacturer Part Number
HD6417021
Description
SuperH RISC engine
Manufacturer
Hitachi Semiconductor
Datasheet
Table 10.14 Output Pins for Complementary PWM Mode
Channel
3
4
Table 10.15 Register Settings for Complementary PWM Mode
Register
TCNT3
TCNT4
GRA3
GRB3
GRA4
GRB4
Procedure for Selecting the Complementary PWM Mode (figure 10.33):
1. Clear STR3 and STR4 bits in the TSTR to halt the timer counters. The complementary PWM
2. Set bits TPSC2–TPSC0 in the TCR to select the same counter clock source for channels 3 and
3. Set bits CMD1 and CMD0 in TMDB to select the complementary PWM mode. TIOCA3–
4. Reset TCNT4 (to H'0000). Set the non-overlap offset in TCNT3. Do not set TCNT3 and
mode must be set up while TCNT3 and TCNT4 are halted.
4. If an external clock source is selected, select the external clock edges with bits CKEG1 and
CKEG0 in the TCR. Do not select any counter clear source with bits CCLR1 and CCLR0 in
the TCR.
TIOCB4, TOCXA4, and TOCXB4 automatically become PWM pins.
TCNT4 to the same value.
Description of Contents
Initial setting of non-overlap cycle (the difference with TCNT4)
Initial setting of H'0000
Set upper limit of TCNT3–1
Sets the turning point for PWM waveform output by the TIOCA3 and TIOCB3 pins.
Sets the turning point for PWM waveform output by the TIOCA4 and TOCXA4 pins.
Sets the turning point for PWM waveform output by the TIOCB4 and TOCXB4 pins.
Output Pin
TIOCA3
TIOCB3
TIOCA4
TOCXA4
TIOCB4
TOCXB4
Description
PWM output 1
PWM output 1' (non-overlapping negative-phase waveform of
PWM output 1)
PWM output 2
PWM output 2' (non-overlapping negative-phase waveform of
PWM output 2)
PWM output 3
PWM output 3' (non-overlapping negative-phase waveform of
PWM output 3)
HITACHI 265

Related parts for HD6417021