IDE and Flash Media Interface
MCF5253 Reference Manual, Rev. 1
13-14
Freescale Semiconductor
The processor interface sends
commands
to the interface shift register. One command instructs the
interface shift register to do one of the following:
•
Transmit a packet of N bits to the Flash Media device. The number of bits N is programmable. It
is also programmable if bits 15:0, or bits 47:0 in SD wide bus mode, need to be replaced with a
valid CRC or not. CRC insertion is possible for Memory Stick data packet and SecureDigital data
packets. CRC insertion is not possible for SecureDigital command packets.
•
Receive a packet of N bits from the Flash Media device. The number of bits N is programmable.
After reception of all bits, the interface shift register will display on status line CRC_IS_0 if CRC
check was successful or not. CRC check is done for Memory Stick data packets and for
SecureDigital data packets. No CRC check is available for SD command packets.
•
Wait for an interrupt event from the Flash Media device.
After writing a command to the interface shift register, the processor needs to monitor TxBUFFEREMPTY
or RxBUFFERFULL, and read or write data to the interface as required.
•
When the transmit shift register is empty, new data is loaded from the TxBUFFERREG. If the
transmit buffer register is empty, the interface shift register will stop the SCLKOUT
clock, and wait
for new data to be written in the TxBUFFERREG.
•
When the receive shift register is full, data is transferred to the RxBUFFERREG. If the receive
buffer register is full, the interface shift register will stop the SCLKOUT clock, and wait until the
RxBUFFERREG is read.
•
If the number of bits in the packet to send/receive from the Flash Media is greater than 32, multiple
longword transfers to the buffer register are needed. All of these, except the first, contain 32 packet
bits. The last data word for the transfer always contains packet bits 31-0, even if CRC transmit or
check is on.
If e.g. a 48-bit transfer is requested to the Flash Media, the first data word will contain 16 bits, the
second one will contain 32 bits. The first word is LSB aligned for receive data, MSB aligned for
transmit data.
This is also true if CRC insertion is involved. If a 4096 bit 16 bit CRC need to be
transmitted to the Flash Media, 129 long-word transfers are needed. The first long-word will
contain packet bits 4095:4080, MSB aligned. The last longword will contain packet bits 15:0
padded with 16 zeros or ones. The padded value will be replaced with the CRC by the transmit
interface (if the interface is programmed to do so).
During and after transmission of a command, the processor can monitor the Interface Shift Register status
by looking at some status signals.
•
SHIFT_BUSY This signal is high while the data transmission is in progress.
•
INT_LEVEL During interrupt commands, a high on this signal indicates an interrupt event coming
from the Flash Media.
•
CRC_IS_0 After a read transmission is completed, this signal indicates if the packet CRC was 0 or
not.
•
BITCOUNTER. This counter indicates the number of bits still to be exchange with the Flash Media
card.
Summary of Contents for MCF5253
Page 1: ...Document Number MCF5253RM Rev 1 08 2008 MCF5253 Reference Manual...
Page 26: ...MCF5253 Reference Manual Rev 1 xxvi Freescale Semiconductor...
Page 32: ...MCF5253 Reference Manual Rev 1 xxxii Freescale Semiconductor...
Page 46: ...MCF5253 Introduction MCF5253 Reference Manual Rev 1 1 14 Freescale Semiconductor...
Page 62: ...Signal Description MCF5253 Reference Manual Rev 1 2 16 Freescale Semiconductor...
Page 98: ...Instruction Cache MCF5253 Reference Manual Rev 1 5 10 Freescale Semiconductor...
Page 104: ...Static RAM SRAM MCF5253 Reference Manual Rev 1 6 6 Freescale Semiconductor...
Page 128: ...Synchronous DRAM Controller Module MCF5253 Reference Manual Rev 1 7 24 Freescale Semiconductor...
Page 144: ...Bus Operation MCF5253 Reference Manual Rev 1 8 16 Freescale Semiconductor...
Page 176: ...System Integration Module SIM MCF5253 Reference Manual Rev 1 9 32 Freescale Semiconductor...
Page 198: ...Analog to Digital Converter ADC MCF5253 Reference Manual Rev 1 12 6 Freescale Semiconductor...
Page 246: ...DMA Controller MCF5253 Reference Manual Rev 1 14 18 Freescale Semiconductor...
Page 282: ...UART Modules MCF5253 Reference Manual Rev 1 15 36 Freescale Semiconductor...
Page 344: ...Audio Interface Module AIM MCF5253 Reference Manual Rev 1 17 46 Freescale Semiconductor...
Page 362: ...I2 C Modules MCF5253 Reference Manual Rev 1 18 18 Freescale Semiconductor...
Page 370: ...Boot ROM MCF5253 Reference Manual Rev 1 19 8 Freescale Semiconductor...