h8s-2138 Renesas Electronics Corporation., h8s-2138 Datasheet - Page 388

no-image

h8s-2138

Manufacturer Part Number
h8s-2138
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 12 8-Bit Timers
12.5
In the example below, the 8-bit timer is used to generate a pulse output with a selected duty cycle,
as shown in figure 12.12. The control bits are set as follows:
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. 4.00 Jun 06, 2006 page 334 of 1004
REJ09B0301-0400
In TCR, CCLR1 is cleared to 0 and CCLR0 is set to 1 so that the timer counter is cleared by a
TCORA compare-match.
In TCSR, bits OS3 to OS0 are set to B'0110, causing 1 output at a TCORA compare-match and
0 output at a TCORB compare-match.
TCORA
TCORB
TMO
8-Bit Timer Application Example
H'FF
H'00
Figure 12.12 Pulse Output (Example)
TCNT
Counter clear

Related parts for h8s-2138