616
TSR0—Timer Status Register 0
H'FFD5
TPU0
Bit
Initial value
Read/Write
7
—
1
—
6
—
1
—
5
—
0
—
4
TCFV
0
R/(W)
*
3
TGFD
0
R/(W)
*
2
TGFC
0
R/(W)
*
1
TGFB
0
R/(W)
*
0
TGFA
0
R/(W)
*
0
TGRA Input Capture/Output Compare Flag
1
0
TGRB Input Capture/Output Compare Flag
1
0
TGRC Input Capture/Output Compare Flag
1
Note:
*
Can only be written with 0, to clear the flag.
0
TGRD Input Capture/Output Compare Flag
1
0
[Clearing condition]
When 0 is written to TCFV after reading TCFV = 1
[Setting condition]
When the TCNT value overflows (from H'FFFF to H'0000)
Overflow Flag
1
[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
[Clearing conditions]
• 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
[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 TGIC interrupt and DISEL bit in DTC’s MRB register is 0
• When 0 is written to TGFC after reading TGFC = 1
[Setting conditions]
• When TCNT = TGRC while TGRC is functioning as output compare register
• When TCNT value is transferred to TGRC by input capture signal while TGRC is
functioning as input capture register
[Clearing conditions]
• When DTC is activated by TGID interrupt and DISEL bit in DTC’s MRB register is 0
• When 0 is written to TGFD after reading TGFD = 1
[Setting conditions]
• When TCNT = TGRD while TGRD is functioning as output compare register
• When TCNT value is transferred to TGRD by input capture signal while TGRD is
functioning as input capture register
[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
Summary of Contents for H8S/2670
Page 5: ......
Page 9: ......
Page 199: ...182 ...
Page 361: ...344 ...
Page 393: ...376 ...
Page 647: ...630 ...