English
Language : 

AT83SND2CMP3_0605 Datasheet, PDF (58/97 Pages) ATMEL Corporation – Single-Chip MP3 Decoder with Full Audio Interface
Command Line
Controller
As shown in Figure 48, the command line controller is divided in 2 channels: the com-
mand transmitter channel that handles the command transmission to the card through
the MCMD line and the command receiver channel that handles the response reception
from the card through the MCMD line. These channels are detailed in the following
sections.
Figure 48. Command Line Controller Block Diagram
TX Pointer
CTPTR
MMCON0.4
5-Byte FIFO
MMCMD
Write
CFLCK
MMSTA.0
Command Transmitter
RX Pointer
CRPTR
MMCON0.5
17 - Byte FIFO
MMCMD
Read
Command Receiver
Data Converter
// -> Serial
CRC7
Generator
TX COMMAND Line
Finished State Machine
MMINT.5
EOCI
CMDEN
MMCON1.0
MMSTA.2 MMSTA.1
CRC7S RESPFS
Data Converter
Serial -> //
CRC7 and Format
Checker
RX COMMAND Line
Finished State Machine
RESPEN RFMT CRCDIS
MMCON1.1 MMCON0.1 MMCON0.0
MMINT.6
EORI
MCMD
Command Transmitter
For sending a command to the card, user must load the command index (1 Byte) and
argument (4 Bytes) in the command transmit FIFO using the MMCMD register. Before
starting transmission by setting and clearing the CMDEN bit in MMCON1 register, user
must first configure:
• RESPEN bit in MMCON1 register to indicate whether a response is expected or not.
• RFMT bit in MMCON0 register to indicate the response size expected.
• CRCDIS bit in MMCON0 register to indicate whether the CRC7 included in the
response will be computed or not. In order to avoid CRC error, CRCDIS may be set
for response that do not include CRC7.
Figure 49 summarizes the command transmission flow.
As soon as command transmission is enabled, the CFLCK flag in MMSTA is set indicat-
ing that write to the FIFO is locked. This mechanism is implemented to avoid command
overrun.
The end of the command transmission is signalled to you by the EOCI flag in MMINT
register becoming set. This flag may generate an MMC interrupt request as detailed in
Section "Interrupt", page 66. The end of the command transmission also resets the
CFLCK flag.
58 AT83SND2CMP3
7524B–MP3–05/06