English
Language : 

HD6413008VF25 Datasheet, PDF (317/688 Pages) Renesas Technology Corp – Old Company Name in Catalogs and Other Documents
9. 8-Bit Timers
9.6 8-Bit Timer Application Example
Figure 9.17 shows how the 8-bit timer module can be used to output pulses with any desired duty
cycle. The settings for this example are as follows:
• Clear the CCLR1 bit to 0 and set the CCLR0 bit to 1 in 8TCR so that 8TCNT is cleared by a
TCORA compare match.
• Set bits OIS3, OIS2, OS1, and OS0 to (0110) in 8TCSR so that 1 is output on a TCORA
compare match and 0 is output on a TCORB compare match.
The above settings enable a waveform with the cycle determined by TCORA and the pulse width
detected by TCORB to be output without software intervention.
H'FF
TCORA
8TCNT
Counter clear
TCORB
H'00
TMO
Figure 9.17 Example of Pulse Output
Rev.4.00 Aug. 20, 2007 Page 271 of 638
REJ09B0395-0400