h8s-2172 Renesas Electronics Corporation., h8s-2172 Datasheet - Page 302

no-image

h8s-2172

Manufacturer Part Number
h8s-2172
Description
Renesas 16-bit Single-chip Microcomputer H8s Family H8s-2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
9.4
9.4.1
Figure 9.2 shows an example that the 8-bit timer is used to generate a pulse output with a selected
duty cycle. The control bits are set as follows:
1 In TCR, bit CCLR1 is cleared to 0 and bit CCLR0 is set to 1 so that the timer counter is
2 In TCSR, bits OS3 to OS0 are set to B'0110, causing the output to change to 1 at a TCORA
With these settings, the 8-bit timer provides output of pulses at a rate determined by TCORA with
a pulse width determined by TCORB. No software intervention is required.
Rev. 2.00, 03/04, page 270 of 534
cleared at a TCORA compare match.
compare match and to 0 at a TCORB compare match.
TCORA
TCORB
TMO
Operation
Pulse Output
H'FF
H'00
Figure 9.2 Example of Pulse Output
TCNT
Counter clear

Related parts for h8s-2172