at85c51snd3 ATMEL Corporation, at85c51snd3 Datasheet - Page 199

no-image

at85c51snd3

Manufacturer Part Number
at85c51snd3
Description
At85c51snd3 Single-chip Digital Audio Decoder - Encoder With Usb 2.0 Interface
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
at85c51snd3B1-7FTUL
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
at85c51snd3B1-RTTUL
Manufacturer:
Atmel
Quantity:
10 000
Figure 92. Data Block Transmission Flows
Data Receiver
Configuration
Data Reception
7632D–MP3–01/07
write 16 data to MMDAT
write 8 data to MMDAT
a. Polling mode
Start Transmission
Transmission
No More Data
FIFO Empty?
Data Block
FIFO Filling
FIFO Filling
DATEN = 1
HFRS = 1?
To Send?
To receive data from the card the data controller must be configured in reception mode
by clearing the DATDIR bit in MMCON1 register.
Figure 93 summarizes the data stream reception flows in both polling and interrupt
modes while Figure 94 summarizes the data block reception flows in both polling and
interrupt modes, these flows assume that block length is greater than 16 Bytes.
Reception is enabled by setting DATEN bit in MMCON1 register. The end of a data
frame (block(s) or stream) reception is signalled by the EOFI flag in MMINT register. In
multiblock mode, OEBI flag signals the reception of one block. These flags may gener-
ate an interrupt request as detailed in Section “Interrupt”. When EOFI flag is set, 2 other
flags in MMSTA register: DATFS and CRC16S give a status on the frame received.
DATFS indicates if the frame format is correct or not: a valid End bit has been received,
and CRC16S indicates if the CRC16 computation is correct or not. CRC16S must by
reset by software by setting DCR bit in MMCON2 register. In case of data stream
CRC16S has no meaning and stays cleared. DATEN flag is cleared when EOFI is set.
According to the MMC specification data transmission from the card starts after the
access time delay (formally N
mand. To avoid any locking of the MMC controller when card does not send its data
(e.g. physically removed from the bus), a time-out timer must be launched to recover
write 16 data to MMDAT
Unmask FIFO Empty
Start Transmission
Initialization
Data Block
FIFO Filling
AC
DATEN = 1
HFRM = 0
parameter) beginning from the End bit of the read com-
b. Interrupt mode
write 8 data to MMDAT
Transmission ISR
Mask FIFO Empty
No More Data
FIFO Empty?
Data Block
FIFO Filling
HFRI = 1?
To Send?
HFRM = 1
199

Related parts for at85c51snd3