English
Language : 

HD6473032F16 Datasheet, PDF (382/847 Pages) Renesas Technology Corp – Hardware Manual Renesas 16-Bit Single-Chip Microcomputer H8 Family/H8/300H Series
Section 10 16-Bit Integrated Timer Unit (ITU)
Table 10.4 PWM Output Pins and Registers
Channel
0
1
2
3
4
Output Pin
TIOCA0
TIOCA1
TIOCA2
TIOCA3
TIOCA4
1 Output
GRA0
GRA1
GRA2
GRA3
GRA4
0 Output
GRB0
GRB1
GRB2
GRB3
GRB4
Sample Setup Procedure for PWM Mode: Figure 10.28 shows a sample procedure for setting
up PWM mode.
PWM mode
Select counter clock
Select counter clear source
Set GRA
Set GRB
Select PWM mode
Start counter
1. Set bits TPSC2 to TPSC0 in TCR to select
the counter clock source. If an external
clock source is selected, set bits CKEG1
and CKEG0 in TCR to select the desired
edge(s) of the external clock signal.
1 2. Set bits CCLR1 and CCLR0 in TCR to
select the counter clear source.
3. Set the time at which the PWM waveform
2
should go to 1 in GRA.
4. Set the time at which the PWM waveform
should go to 0 in GRB.
3 5. Set the PWM bit in TMDR to select PWM
mode. When PWM mode is selected,
regardless of the TIOR contents, GRA and
GRB become output compare registers
4
specifying the times at which the PWM
output goes to 1 and 0. The TIOCA pin
automatically becomes the PWM output
pin. The TIOCB pin conforms to the
5
settings of bits IOB1 and IOB0 in TIOR. If
TIOCB output is not desired, clear both
IOB1 and IOB0 to 0.
6 6. Set the STR bit to 1 in TSTR to start the
timer counter.
PWM mode
Figure 10.28 Setup Procedure for PWM Mode (Example)
Rev. 3.00 Mar 21, 2006 page 352 of 814
REJ09B0302-0300