Datasheet

Appendix B Internal I/O Register
Page 1296 of 1434 R01UH0166EJ0600 Rev. 6.00
Mar 02, 2011
H8S/2633 Group, H8S/2633 F-ZTAT
TM
,
H8S/2633R F-ZTAT
TM
, H8S/2695
TSR4—Timer Status Register 4
TSR5—Timer Status Register 5
TSR1—Timer Status Register 1
TSR2—Timer Status Register 2
H'FE95
H'FEA5
H'FF25
H'FF35
TPU4
TPU5
TPU1
TPU2
7
TCFD
1
R
6
1
5
TCFU
0
R/(W)*
1
4
TCFV
0
R/(W)*
1
3
0
0
TGFA
0
R/(W)*
1
2
0
1
TGFB
0
R/(W)*
1
Notes: 1. Only 0 can be written to these bits (to clear these flags).
2. This function is not available in the H8S/2695.
Channel 1: TSR1
Channel 2: TSR2
Channel 4: TSR4
Channel 5: TSR5
Input capture/output compare flag A
Input capture/output compare flag B
[Clearing conditions]
(1) When the DTC*
2
is started by a TGIB interrupt and the DTC*
2
MRB DISEL
bit is 0;
(2) Writing 0 to TGFB after reading TGFB=1.
[Setting conditions]
(1) When TGRB is functioning as the output compare register and TCNT=
TGRB;
(2) When TGRB is functioning as the input capture register and the value
of TCNT is sent to TGRB by the input capture signal.
0
1
[Clearing conditions]
(1) When the DTC*
2
is started by a TGIA interrupt and the DTC*
2
MRB DISEL
bit is 0;
(2) When the DMAC*
2
is started by a TGIA interrupt and the DMAC*
2
DMABCR
DTA bit is 1;
(3) Writing 0 to TGFA after reading TGFA=1.
[Setting conditions]
(1) When TGRA is functioning as the output compare register and TCNT=
TGRA;
(2) When TGRA is functioning as the input capture register and the value
of TCNT is sent to TGRA by the input capture signal.
0
1
Count direction flag
Underflow flag
TCNT counts down.
TCNT counts up.
0
1
Overflow flag
[Clearing condition]
Writing 0 to TCFV after reading TCFV=1.
[Setting condition]
When the TCNT value overflows (H’FFFF H’0000).
0
1
0
[Clearing condition]
Writing 0 to TCFU after reading TCFU=1.
[Setting condition]
When the TCNT value underflows (H’0000 H’FFFF).
0
1
0
Bit
Initial value
R/W
:
:
: