HD6417021 Hitachi Semiconductor, HD6417021 Datasheet - Page 280

no-image

HD6417021

Manufacturer Part Number
HD6417021
Description
SuperH RISC engine
Manufacturer
Hitachi Semiconductor
Datasheet
5. GRA3 is the waveform period register. Set the upper limit of TCNT3–1*. Set the transition
6. Set the STR3 and STR4 bits in the TSTR to 1 to let TCNT3 and TCNT4 start counting.
Complementary PWM Mode Operation: Figure 10.34 shows an example of operation in the
complementary PWM mode. TCNT3 and TCNT4 operate as up/downcounters, counting down
from compare match of TCNT3 and GRA3 and counting up when TCNT4 underflows. PWM
waveforms are output by repeated compare matches with each of the general registers in the
266 HITACHI
Note
times of the PWM output waveforms in GRB3, GRA4, and GRB4. Set times within the
compare match range of TCNT3 and TCNT4.
Note:
T
(X: initial setting of GRB3, GRA4, and GRB4; T: initial setting of TCNT3)
To re-engage the complementary PWM mode after it has been aborted, start settings
from step 1.
Figure 10.33 Procedure for Selecting the Complementary PWM Mode
GRA3 = [cycle count/2] + [count of non-overlaps] – 2cyc=[upper limit of TCNT3] – 1
X
Complementary PWM mode
Complementary PWM mode
Select complementary
Set general registers
Select counter clock
Stop counting
Start counting
PWM mode
Set TCNT
(1)
(4)
(6)
(2)
(3)
(5)

Related parts for HD6417021