beautypg.com

Figure 67 summ – Rainbow Electronics AT89C5132 User Manual

Page 93

background image

93

AT8xC5132

4173A–8051–08/02

Figure 67. Data Stream Transmission Flows

Send

STOP Command

Data Stream

Transmission

Start Transmission

DATEN = 1
DATEN = 0

FIFO Empty?

F1EI or F2EI = 1?

FIFO Filling

Write 8 Data to MMDAT

No More Data

To Send?

FIFOs Filling

Write 16 Data to MMDAT

a. Polling Mode

Data Stream
Initialization

FIFOs Filling

Write 16 Data to MMDAT

Data Stream

Transmission ISR

FIFO Filling

Write 8 Data to MMDAT

Send

STOP Command

No More Data

to Send?

b. Interrupt Mode

FIFO Empty?

F1EI or F2EI = 1?

Start Transmission

DATEN = 1
DATEN = 0

Unmask FIFOs Empty

F1EM = 0
F2EM = 0

Mask FIFOs Empty

F1EM = 1
F2EM = 1