HD6413003RVF RENESAS [Renesas Technology Corp], HD6413003RVF Datasheet - Page 341

no-image

HD6413003RVF

Manufacturer Part Number
HD6413003RVF
Description
microcontroller (MCU)
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
1.
2.
3.
4.
5.
Set bits TPSC2 to TPSC0 in TCR to select the counter clock source. If an external clock
source is selected, set bits CKEG1 and CKEG0 in TCR to select the desired edge(s) of the
external clock signal.
For periodic counting, set CCLR1 and CCLR0 in TCR to have TCNT cleared at GRA
compare match or GRB compare match.
Set TIOR to select the output compare function of GRA or GRB, whichever was selected in
step 2.
Write the count period in GRA or GRB, whichever was selected in step 2.
Set the STR bit to 1 in TSTR to start the timer counter.
Select counter clear source
Select output compare
Select counter clock
Type of counting?
Periodic counting
Periodic counter
register function
Counter setup
Start counter
Figure 10-14 Counter Setup Procedure (Example)
Set period
1
2
3
4
5
323
Free-running counting
Free-running counter
Start counter
5

Related parts for HD6413003RVF