English
Language : 

HD6413008VF25 Datasheet, PDF (266/688 Pages) Renesas Technology Corp – Old Company Name in Catalogs and Other Documents
8. 16-Bit Timer
Table 8.4 PWM Output Pins and Registers
Channel
0
1
2
Output Pin
TIOCA
0
TIOCA
1
TIOCA
2
1 Output
GRA0
GRA1
GRA2
0 Output
GRB0
GRB1
GRB2
Sample Setup Procedure for PWM Mode: Figure 8.26 shows a sample procedure for setting up
PWM mode.
PWM mode
Select counter clock
1. Set bits TPSC2 to TPSC0 in 16TCR to
select the counter clock source. If an
external clock source is selected, set
bits CKEG1 and CKEG0 in 16TCR to
1
select the desired edge(s) of the
external clock signal.
Select counter clear source
2. Set bits CCLR1 and CCLR0 in 16TCR
2
to select the counter clear source.
3. Set the time at which the PWM
waveform should go to 1 in GRA.
Set GRA
3
4. Set the time at which the PWM
waveform should go to 0 in GRB.
Set GRB
Select PWM mode
Start counter
5. Set the PWM bit in TMDR to select
4
PWM mode. When PWM mode is
selected, regardless of the TIOR
contents, GRA and GRB become
output compare registers specifying
5
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
6
to the settings of bits IOB1 and IOB0
in TIOR. If TIOCB output is not
desired, clear both IOB1 and IOB0 to 0.
PWM mode
6. Set the STR bit to 1 in TSTR to start
the timer counter.
Figure 8.26 Setup Procedure for PWM Mode (Example)
Rev.4.00 Aug. 20, 2007 Page 220 of 638
REJ09B0395-0400