TSR0—Timer Status Register 0
H'67
ITU0
Bit
Initial value
Read/Write
7
—
1
—
6
—
1
—
5
—
1
—
4
—
1
—
3
—
1
—
0
IMFA
0
R/(W)
2
OVF
0
R/(W)
1
IMFB
0
R/(W)
Input capture/compare match flag A
0
[Clearing condition]
Overflow flag
*
*
*
Read IMFA when IMFA = 1, then write 0 in IMFA
1
[Setting conditions]
TCNT = GRA when GRA functions as an output compare
register.
TCNT value is transferred to GRA by an input capture
signal, when GRA functions as an input capture register.
Input capture/compare match flag B
0
[Clearing condition]
Read IMFB when IMFB = 1, then write 0 in IMFB
1
[Setting conditions]
TCNT = GRB when GRB functions as an output compare
register.
TCNT value is transferred to GRB by an input capture
signal, when GRB functions as an input capture register.
0
[Clearing condition]
Read OVF when OVF = 1, then write 0 in OVF
1
[Setting condition]
TCNT overflowed from H'FFFF to H'0000 or
underflowed from H'0000 to H'FFFF
Note: Only 0 can be written, to clear the flag.
*
773
www.DataSheet4U.com