
IDE and Flash Media Interface
MCF5253 Reference Manual, Rev. 1
Freescale Semiconductor
13-25
data. The first word contains the remainder. The data in the first word is right-justified. No CRC logic is
present in hardware, so CRC must be inserted by software.
The writing of RSPBITCOUNT
+
DRIVEC DRIVEDATAMASK to FLASHMEDIACMD2
must take place after SHIFTBUSY2 has gone high.
13.5.6.2
Write Data to Card
The following two timing diagrams show writing data with and without a busy response from the card.
Figure 13-24. Writing to Card With Busy
Figure 13-25. Writing to Card Without Busy
The write sequence sends out a packet on the DATA line, receives a CRC STATUS response from the card,
and then looks for a potential busy.
write
FLASHMEDIACMD1 =
0
wideShiftMask
write one or more
times to
FLASHMEDIADATA1
P
P
S
E
dataBitCount
P P
P
Host driving bus
write
FLASHMEDIACMD1 =
0x
dataBi
wideShiftMask
DATA lines
shift_busy1
Note 3: Host interface will stop SCLK_OUT clock when needed to prevent transmit underrun or receive overrun. (not shown)
Data
CRC
bitcounter1
Note 1: For 4-bit wide bus, wideShiftMask is 0x400000, CRC length is 64 bits
For 1-bit wide bus, wideShiftMask = 0, CRC length is 16 bits.
Note 2: If read data packet followed by another read data packet (block read), set
readDataMask = 0x40000. If only one read data packet, set readDataMask = 0.
Z
Z
S crc status
Z
Z
P
E
Card driving bus
write
FLASHMEDIACMD1 =
0x
read
FLASHMEDIA-
DATA1
(get CRC status)
Host driving
bus
write
FLASHMEDIACMD1 =
0
wideShiftMask
write one or more
times to
FLASHMEDIADATA1
P P
S
E
dataBitCount
P P P
Host driving bus
write
FLASHMEDIACMD1 =
0x
dataBi
wideShiftMask
DATA lines
shift_busy1
Note 3: Host interface will stop SCLK_OUT clock when needed to prevent transmit underrun or receive overrun. (not shown)
Data
CRC
bitcounter1
Note 1: For 4-bit wide bus, wideShiftMask is 0x400000, CRC length is 64 bits
For 1-bit wide bus, wideShiftMask = 0, CRC length is 16 bits.
Note 2: If read data packet followed by another read data packet (block read), set
readDataMask = 0x40000. If only one read data packet, set readDataMask = 0.
Z Z S crc status
E
Card driving bus
write
FLASHMEDIACMD1 =
0x
read
FLASHMEDIA-
DATA1
(get CRC status)
Host driving
bus
S
interrupt1
write
FLASHMEDIACMD1=
0x80000
Check
interrupt1 in
FLASHMEDIASTATUS
write
FLASHMEDIACMD1=
0
L .. L
E
Z
P
Z
Card signals busy
Содержание MCF5253
Страница 1: ...Document Number MCF5253RM Rev 1 08 2008 MCF5253 Reference Manual...
Страница 26: ...MCF5253 Reference Manual Rev 1 xxvi Freescale Semiconductor...
Страница 32: ...MCF5253 Reference Manual Rev 1 xxxii Freescale Semiconductor...
Страница 46: ...MCF5253 Introduction MCF5253 Reference Manual Rev 1 1 14 Freescale Semiconductor...
Страница 62: ...Signal Description MCF5253 Reference Manual Rev 1 2 16 Freescale Semiconductor...
Страница 98: ...Instruction Cache MCF5253 Reference Manual Rev 1 5 10 Freescale Semiconductor...
Страница 104: ...Static RAM SRAM MCF5253 Reference Manual Rev 1 6 6 Freescale Semiconductor...
Страница 128: ...Synchronous DRAM Controller Module MCF5253 Reference Manual Rev 1 7 24 Freescale Semiconductor...
Страница 144: ...Bus Operation MCF5253 Reference Manual Rev 1 8 16 Freescale Semiconductor...
Страница 176: ...System Integration Module SIM MCF5253 Reference Manual Rev 1 9 32 Freescale Semiconductor...
Страница 198: ...Analog to Digital Converter ADC MCF5253 Reference Manual Rev 1 12 6 Freescale Semiconductor...
Страница 246: ...DMA Controller MCF5253 Reference Manual Rev 1 14 18 Freescale Semiconductor...
Страница 282: ...UART Modules MCF5253 Reference Manual Rev 1 15 36 Freescale Semiconductor...
Страница 298: ...Queued Serial Peripheral Interface QSPI Module MCF5253 Reference Manual Rev 1 16 16 Freescale Semiconductor...
Страница 344: ...Audio Interface Module AIM MCF5253 Reference Manual Rev 1 17 46 Freescale Semiconductor...
Страница 362: ...I2 C Modules MCF5253 Reference Manual Rev 1 18 18 Freescale Semiconductor...
Страница 370: ...Boot ROM MCF5253 Reference Manual Rev 1 19 8 Freescale Semiconductor...