H8S-2350 RENESAS [Renesas Technology Corp], H8S-2350 Datasheet - Page 491

no-image

H8S-2350

Manufacturer Part Number
H8S-2350
Description
16-Bit Single-Chip Microcomputer
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
When compare match is selected as the TCNT clearing source, the TCNT counter for the relevant
channel performs periodic count operation. The TGR register for setting the period is designated
as an output compare register, and counter clearing by compare match is selected by means of bits
CCLR2 to CCLR0 in TCR. After the settings have been made, TCNT starts up-count operation as
periodic counter when the corresponding bit in TSTR is set to 1. When the count value matches
the value in TGR, the TGF bit in TSR is set to 1 and TCNT is cleared to H'0000.
If the value of the corresponding TGIE bit in TIER is 1 at this point, the TPU requests an interrupt.
After a compare match, TCNT starts counting up again from H'0000.
Figure 10.8 illustrates periodic counter operation.
H'FFFF
H'0000
CST bit
TCFV
TGR
H'0000
CST bit
TGF
TCNT value
TCNT value
Figure 10.7 Free-Running Counter Operation
Figure 10.8 Periodic Counter Operation
Counter cleared by TGR
compare match
Section 10 16-Bit Timer Pulse Unit (TPU)
Rev. 3.00 Sep 15, 2006 page 457 of 988
Flag cleared by software or
DTC/DMAC activation
REJ09B0330-0300
Time
Time

Related parts for H8S-2350