English
Language : 

HD64F3687HV Datasheet, PDF (246/538 Pages) Renesas Technology Corp – Renesas 16-Bit Single-Chip Microcomputer H8 Family/H8/300H Tiny Series
Section 13 Timer Z
Table 13.3 Initial Output Level of FTIOB0 Pin
TOB0
0
0
1
1
POLB
0
1
0
1
Initial Output Level
1
0
0
1
PWM mode
Select counter clock
[1]
Select counter clearing source [2]
Set PWM mode
[3]
Set initial output level
[4]
Select output level
[5]
Set GR
[6]
[1] Select the counter clock with bits TPSC2
to TOSC0 in TCR. When an external
clock is selected, select the external
clock edge with bits CKEG1 and CKEG0
in TCR.
[2] Use bits CCLR1 and CCLR0 in TCR to
select the counter clearing source.
[3] Select the PWM mode with bits PWMB0
to PWMD0 and PWMB1 to PWMD1 in
TPMR.
[4] Set the initial output value with bits
TOB0 to TOD0 and TOB1 to TOD1 in
TOCR.
[5] Set the output level with bits POLB to
POLD in POCR.
[6] Set the cycle in GRA, and set the duty in
the other GR.
[7] Enable or disable the timer output by
TOER.
[8] Set the STR bit in TSTR to 1 and start
the counter operation.
Enable waveform output
[7]
Start counter operation
[8]
<PWM mode>
Figure 13.21 Example of PWM Mode Setting Procedure
Rev.5.00 Nov. 02, 2005 Page 212 of 500
REJ09B0027-0500