Timer Counter (Tcnt) - Renesas H8S/2368 Series Hardware Manual

16-bit single-chip microcomputer
Table of Contents

Advertisement

Bit
Bit Name
Initial value
1
TGFB
0
0
TGFA
0
Notes: *1 Only 0 can be written, for flag clearing.
*2 Not supported by the H8S/2366.
10.3.6

Timer Counter (TCNT)

The TCNT registers are 16-bit readable/writable counters. The TPU has six TCNT counters, one
for each channel.
The TCNT counters are initialized to H'0000 by a reset, or in hardware standby mode.
Rev. 2.00, 05/03, page 408 of 820
R/W
Description
1
R/(W)*
Input Capture/Output Compare Flag B
Status flag that indicates the occurrence of TGRB
input capture or compare match.
[Setting conditions]
When TCNT = TGRB while TGRB is functioning
as output compare register
When TCNT value is transferred to TGRB by
input capture signal while TGRB is functioning as
input capture register
[Clearing conditions]
When DTC is activated by TGIB interrupt while
DISEL bit of MRB in DTC is 0
When 0 is written to TGFB after reading TGFB =
1
1
R/(W)*
Input Capture/Output Compare Flag A
Status flag that indicates the occurrence of TGRA
input capture or compare match.
[Setting conditions]
When TCNT = TGRA while TGRA is functioning
as output compare register
When TCNT value is transferred to TGRA by
input capture signal while TGRA is functioning as
input capture register
[Clearing conditions]
When DTC is activated by TGIA interrupt while
DISEL bit of MRB in DTC is 0
When 0 is written to TGFA after reading TGFA =
1
When DMAC is activated by TGIA interrupt while
DTE bit of DMABCR in DMAC is set to 1*
2

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s seriesH8s/2300 series

Table of Contents