30.01.2015 Views

UM10211 - Standard ICs

UM10211 - Standard ICs

UM10211 - Standard ICs

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

NXP Semiconductors<br />

<strong>UM10211</strong><br />

Chapter 18: LPC2300 SD_MMC<br />

<strong>UM10211</strong>_1<br />

The receive FIFO is accessible via 16 sequential addresses (see Section 18–5.16 “Data<br />

FIFO Register (MCIFIFO - 0xE008 C080 to 0xE008 C0BC)”).<br />

If the receive FIFO is disabled, all status flags are deasserted, and the read and write<br />

pointers are reset. The data path subunit asserts RxActive when it receives data.<br />

Table 18–371 lists the receive FIFO status flags.<br />

4.3.16 APB interfaces<br />

The APB interface generates the interrupt and DMA requests, and accesses the MCI<br />

adapter registers and the data FIFO. It consists of a data path, register decoder, and<br />

interrupt/DMA logic. DMA is controlled by the General Purpose DMA controller, see that<br />

chapter for details.<br />

4.3.17 Interrupt logic<br />

5. Register description<br />

Table 371. Receive FIFO status flags<br />

Symbol<br />

RxFifoFull<br />

RxFifoEmpty<br />

RxHalfFull<br />

RxDataAvlbl<br />

RxOverrun<br />

The interrupt logic generates an interrupt request signal that is asserted when at least one<br />

of the selected status flags is HIGH. A mask register is provided to allow selection of the<br />

conditions that will generate an interrupt. A status flag generates the interrupt request if a<br />

corresponding mask flag is set.<br />

This section describes the MCI registers and provides programming details.<br />

5.1 Summary of MCI Registers<br />

Description<br />

Set to HIGH when all 16 receive FIFO words contain valid data.<br />

Set to HIGH when the receive FIFO does not contain valid data.<br />

Set to HIGH when 8 or more receive FIFO words contain valid data. This<br />

flag can be used as a DMA request.<br />

Set to HIGH when the receive FIFO is not empty. This flag is the inverse<br />

of the RxFifoEmpty flag.<br />

Set to HIGH when an overrun error occurs. This flag is cleared by writing<br />

to the MCIClear register.<br />

The MCI registers are shown in Table 18–372.<br />

Table 372. SPI register map<br />

Name Description Access Width Reset Address<br />

Value [1]<br />

MCIPower Power control register. R/W 8 0x00 0xE008 C000<br />

MCIClock Clock control register. R/W 12 0x000 0xE008 C004<br />

MCIArgument Argument register. R/W 32 0x00000000 0xE008 C008<br />

MMCCommand Command register. R/W 11 0x000 0xE008 C00C<br />

MCIRespCmd Response command register. RO 6 0x00 0xE008 C010<br />

MCIResponse0 Response register. RO 32 0x00000000 0xE008 C014<br />

MCIResponse1 Response register. RO 32 0x00000000 0xE008 C018<br />

MCIResponse2 Response register. RO 32 0x00000000 0xE008 C01C<br />

© NXP B.V. 2007. All rights reserved.<br />

User manual Rev. 01 — 27 March 2007 402 of 613

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!