Advantech Carbon Monoxide Alarm PCI-1718 Series User Manual

Page of 94
PCI-1718 Series  User Manual
76
C.18  FIFO Status — BASE+19H
The register at BASE+19H clears the FIFO buffer and sets its empty flag 
(EF). The FIFO status register, address BASE+19H, has flags which you 
can read to determine the current state of the FIFO buffer, including full 
flag, half-full flag, and empty flag.
EF  FIFO empty flag
FIFO is empty
FIFO is not empty
HF FIFO 
half-full 
flag
FIFO is half-full or more than half-full
FIFO is less than half-full
FF  FIFO full flag
FIFO is full
FIFO is not full
C.19  FIFO Clear — BASE+19H
Writing any value to BASE+19H clears all data in the FIFO and sets the 
empty flag (EF) to 1.
Table C.19: Register for FIFO Status
Read
FIFO status
Bit  #
7
6
5
4
3
2
1
0
BASE + 19H
FF
HF
EF
Table C.20: Register for FIFO Clear
Write
FIFO clear
Bit  #
7
6
5
4
3
2
1
0
BASE + 19H X
X
X
X
X
X
X
X