Rev.6.00 Oct.28.2004 page 859
of 1016
REJ09B0138-0600H
TSR4—Timer Status Register 4
H'FE95
TPU4
7
TCFD
1
R
6
—
1
—
5
TCFU
0
R/(W)
*
4
TCFV
0
R/(W)
*
3
—
0
—
0
TGFA
0
R/(W)
*
2
—
0
—
1
TGFB
0
R/(W)
*
Bit
Initial value
Read/Write
:
:
:
0
1
TCNT counts down
TCNT counts up
Count Direction Flag
0
[Clearing condition]
When 0 is written to TCFU after reading TCFU = 1
Underflow Flag
1
[Setting condition]
When the TCNT value underflows (changes from H'0000 to H'FFFF)
0
[Clearing condition]
When 0 is written to TCFV after reading TCFV = 1
Overflow Flag
1
[Setting condition]
When the TCNT value overflows (changes from H'FFFF to H'0000)
0
Input Capture/Output Compare Flag B
1
0
[Clearing conditions]
• When DTC is activated by TGIA interrupt while
DISEL bit of MRB in DTC is 0
• When DMAC is activated by TGIA interrupt while
DTA bit of DMABCR in DMAC is 1
• When 0 is written to TGFA after reading TGFA = 1
Input Capture/Output Compare Flag A
1
[Setting conditions]
Note:
*
Can only be written with 0 for flag clearing.
• 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 TGIB interrupt while DISEL
bit of MRB in DTC is 0
• When 0 is written to TGFB after reading TGFB = 1
[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
TCNT4—Timer Counter 4
H'FE96
TPU4
15
0
R/W
14
0
R/W
13
0
R/W
12
0
R/W
11
0
R/W
8
0
R/W
10
0
R/W
9
0
R/W
Bit
Initial value
Read/Write
:
:
:
7
0
R/W
6
0
R/W
5
0
R/W
4
0
R/W
3
0
R/W
0
0
R/W
2
0
R/W
1
0
R/W
Note:
*
This timer counter can be used as an up/down-counter only in phase counting
mode or when performing overflow/underflow counting on another channel. In
other cases it functions as an up-counter.
Up/down-counter
*
Summary of Contents for ZTAT H8S/2357F
Page 4: ......
Page 28: ...Rev 6 00 Oct 28 2004 page xxiv of xxiv REJ09B0138 0600H...
Page 82: ...Rev 6 00 Oct 28 2004 page 54 of 1016 REJ09B0138 0600H...
Page 108: ...Rev 6 00 Oct 28 2004 page 80 of 1016 REJ09B0138 0600H...
Page 364: ...Rev 6 00 Oct 28 2004 page 336 of 1016 REJ09B0138 0600H...
Page 438: ...Rev 6 00 Oct 28 2004 page 410 of 1016 REJ09B0138 0600H...
Page 566: ...Rev 6 00 Oct 28 2004 page 538 of 1016 REJ09B0138 0600H...
Page 588: ...Rev 6 00 Oct 28 2004 page 560 of 1016 REJ09B0138 0600H...
Page 688: ...Rev 6 00 Oct 28 2004 page 660 of 1016 REJ09B0138 0600H...
Page 694: ...Rev 6 00 Oct 28 2004 page 666 of 1016 REJ09B0138 0600H...
Page 708: ...Rev 6 00 Oct 28 2004 page 680 of 1016 REJ09B0138 0600H...
Page 1044: ...Rev 6 00 Oct 28 2004 page 1016 of 1016 REJ09B0138 0600H...