4. Using the I/O Address Map
24
ADI16-4(FIT)GY
Number of data items stored in FIFO memory
You can check the number of data items remaining in FIFO memory.
Starting
I/O
address
D7
D6
D5
D4
D3
D2
D1
D0
Output
Command
+24
(18h)
0
0
0
0
1
0
0
0
D7
D6
D5
D4
D3
D2
D1
D0
Output
FIFO Flag
+28
(1Ch)
0
Number of
Data6
Number of
Data5
Number of
Data4
Number of
Data3
Number of
Data2
Number of
Data1
Number of
Data0
Figure 4.12. Number of data items stored in FIFO memory
The following example can be used to check the number of data items stored in FIFO memory.
outp( ADR+24, 0x8 );
NumberOfData = inp( ADR+28 );
FIFO memory clearance
Stored data is cleared.
Starting
I/O
address
D7
D6
D5
D4
D3
D2
D1
D0
Output
Command
+24
(18h)
0
0
0
0
1
0
0
1
Figure 4.13. FIFO memory clear
The following example can be used to set the FIFO memory clear.
outp( ADR+24, 0x9 );