At8xc51snd1c – Rainbow Electronics AT89C51SND1C User Manual

Page 122

Advertising
background image

122

AT8xC51SND1C

4109E–8051–06/03

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 87. 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

Advertising