HD6417320 RENESAS [Renesas Technology Corp], HD6417320 Datasheet - Page 591

no-image

HD6417320

Manufacturer Part Number
HD6417320
Description
Renesas 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7700 Series
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
15.4.2
(1)
When one of bits CST0 to CST3 is set to 1 in TSTR, the TCNT counter for the corresponding
channel starts counting. TCNT can operate as a free-running counter, periodic counter, and so on.
(a)
Figure 15.2 shows an example of the count operation setting procedure.
Select output compare register
Select counter clearing source
Counter Operation
Example of count operation setting procedure
Set external pin function
Select counter clock
Operation selection
<Periodic counter>
Basic Functions
Periodic counter
Start count
Set period
Figure 15.2
Example of Counter Operation Setting Procedure
[1]
[2]
[3]
[4]
[5]
[6]
Set external pin function
<Free-running counter>
Free-running counter
Start count
Rev. 3.00 Jan. 18, 2008 Page 529 of 1458
Section 15
[5]
[6]
[1]
[2]
[3]
[4]
[5]
[6]
Select the counter clock
with bits TPSC2 to TPSC0
in TCR. At the same time
select the input clock edge
with bits CKEG1 and
CKEG0 in TCR.
For periodic counter
operation, select the TGRA
to be used as the TCNT
clearing source with bits
CCLR2 to CCLR0 in TCR.
Designate the output compare
register by means of TIOR.
Set the periodic counter cycle
in the TGRA.
Set the external pin function
in pin function controller (PFC).
Set the CST bit in TSTR to 1
to start the counter operation.
16-Bit Timer Pulse Unit (TPU)
REJ09B0033-0300

Related parts for HD6417320