HD643303x Hitachi, HD643303x Datasheet - Page 226

no-image

HD643303x

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

Related parts for HD643303x