English
Language : 

D12320VF25V Datasheet, PDF (441/1146 Pages) Renesas Technology Corp – Old Company Name in Catalogs and Other Documents
Section 10 8-Bit Timers
10.5 Sample Application
In the example below, the 8-bit timer is used to generate a pulse output with a selected duty cycle,
as shown in figure 10.9. 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
cleared when its value matches the constant in TCORA.
[2] In TCSR, bits OS3 to OS0 are set to B'0110, causing the output to change to 1 at a TCORA
compare match and to 0 at a TCORB compare match.
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.
H'FF
TCORA
TCORB
H'00
TMO
TCNT
Counter clear
Figure 10.9 Example of Pulse Output
Rev.7.00 Feb. 14, 2007 page 407 of 1108
REJ09B0089-0700