
639
TCSR—Timer Control/Status Register
H'91
FRT
Bit
Initial value
Read/Write
7
ICFA
0
R/(W)
6
ICFB
0
R/(W)
5
ICFC
0
R/(W)
4
ICFD
0
R/(W)
3
OCFA
0
R/(W)
0
CCLRA
0
R/W
2
OCFB
0
R/(W)
1
OVF
0
R/(W)
Counter Clear A
0
1
FRC count is cleared by compare-match A.
FRC count is not cleared.
Timer Overflow Flag
0
1
Set when FRC changes from H'FFFF to H'0000.
Output Compare Flag B
0
1
Set when FRC = OCRB.
Cleared by reading OCFB = 1, then writing 0 in OCFB.
Output Compare Flag A
0
1
Set when FRC = OCRA.
Cleared by reading OCFA = 1, then writing 0 in OCFA.
Input Capture Flag D
0
1
Set when FTID input signal is received.
Cleared by reading ICFD = 1, then writing 0 in ICFD.
Input Capture Flag C
0
1
Set when FTIC input signal is received.
Cleared by reading ICFC = 1, then writing 0 in ICFC.
Input Capture Flag B
0
1
Set when FTIB input causes FRC to be copied to ICRB.
Cleared by reading ICFB = 1, then writing 0 in ICFB.
Input Capture Flag A
0
1
Set when FTIA input causes FRC to be copied to ICRA.
Cleared by reading ICFA = 1, then writing 0 in ICFA.
*
*
*
*
*
Note:
*
Software can write a 0 in bits 7 to 1 to clear the flags, but cannot write a 1 in these bits.
Cleared by reading OVF = 1, then writing 0 in OVF.
*
*