beautypg.com

Rainbow Electronics AT89C5132 User Manual

Page 95

background image

95

AT8xC5132

4173A–8051–08/02

This time-out may be disarmed after receiving 8 data (F1FI flag set) or after receiving
end of frame (EOFI flag set) in case of block length less than 8 data (1, 2 or 4).

Data Reading

Data is read from the FIFO by reading to MMDAT register. Each time one FIFO
becomes full (F1FI or F2FI set), user is requested to flush this FIFO by reading 8 data.

Figure 69. Data Stream Reception Flows

Data Stream

Reception

FIFO Full?

F1FI or F2FI = 1?

FIFO Reading

read 8 data from MMDAT

No More Data

To Receive?

a. Polling Mode

Data Stream
Initialization

Data Stream

Reception ISR

FIFO Reading

read 8 data from MMDAT

Send

STOP Command

No More Data

To Receive?

b. Interrupt Mode

FIFO Full?

F1FI or F2FI = 1?

Unmask FIFOs Full

F1FM = 0
F2FM = 0

Send

STOP Command

Mask FIFOs Full

F1FM = 1
F2FM = 1