Hitachi H8S/2678 Series Reference Manual page 527

16-bit single-chip microcomputer
Table of Contents

Advertisement

TSR4—Timer Status Register 4
Bit
7
TCFD
Initial value
1
Read/Write
R
Count Direction Flag
0 TCNT counts down
1
Note: * Can only be written with 0, to clear the flag.
510
6
5
TCFU
1
0
R/(W)*
Overflow Flag
0 [Clearing condition]
When 0 is written to TCFV after reading TCFV = 1
1
[Setting condition]
When the TCNT value overflows (from H'FFFF to H'0000)
Underflow Flag
0 [Clearing condition]
When 0 is written to TCFU after reading TCFU = 1
1
[Setting condition]
When the TCNT value underflows (from H'0000 to H'FFFF)
TCNT counts up
H'FE95
4
3
TCFV
0
0
R/(W)*
Input Capture/Output Compare Flag A
0
[Clearing conditions]
• When DTC is activated by TGIA interrupt
and DISEL bit in DTC's MRB register is 0
• When DMAC is activated by TGIA
interrupt and DTA bit in DMAC's
DMABCR register is 1
• When 0 is written to TGFA after reading
TGFA = 1
1
[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
Input Capture/Output Compare Flag B
[Clearing conditions]
0
• When DTC is activated by TGIB interrupt
and DISEL bit in DTC's MRB register is 0
• When 0 is written to TGFB after reading
TGFB = 1
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
2
1
TGFB
TGFA
0
0
R/(W)*
R/(W)*
TPU4
0
0

Advertisement

Table of Contents
loading

Table of Contents