
UM10237_2
© NXP B.V. 2008. All rights reserved.
User manual
Rev. 02 — 19 December 2008
786 of 792
NXP Semiconductors
UM10237
Chapter 36: LPC24XX Supplementary information
SPI Test Control Register (SPTCR -
0xE002 0010) . . . . . . . . . . . . . . . . . . . . . . . . 533
SPI Test Status Register (SPTSR - 0xE002 0014)
534
SPI Interrupt Register (S0SPINT - 0xE002 001C)
534
Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . 534
Chapter 20: LPC24XX SSP interface SSP0/1
Basic configuration . . . . . . . . . . . . . . . . . . . . 536
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 536
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 536
Pin descriptions . . . . . . . . . . . . . . . . . . . . . . . 537
Bus description . . . . . . . . . . . . . . . . . . . . . . . 537
SPI frame format . . . . . . . . . . . . . . . . . . . . . 538
Clock Polarity (CPOL) and Phase (CPHA) control
538
SPI format with CPOL=0,CPHA=0 . . . . . . . . 539
SPI format with CPOL=0,CPHA=1 . . . . . . . . 540
SPI format with CPOL = 1,CPHA = 0 . . . . . . 540
SPI format with CPOL = 1,CPHA = 1 . . . . . . 542
Semiconductor Microwire frame format . . . . 542
Setup and hold time requirements on CS with
respect to SK in Microwire mode . . . . . . . . . 544
Register description . . . . . . . . . . . . . . . . . . . 544
SSPn Control Register 0 (SSP0CR0 -
0xE006 8000, SSP1CR0 - 0xE003 0000) . . 545
SSPn Control Register 1 (SSP0CR1 -
0xE006 8004, SSP1CR1 - 0xE003 0004) . . 546
SSPn Data Register (SSP0DR - 0xE006 8008,
SSP1DR - 0xE003 0008) . . . . . . . . . . . . . . . 547
SSPn Status Register (SSP0SR - 0xE006 800C,
SSP1SR - 0xE003 000C). . . . . . . . . . . . . . . 548
SSPn Clock Prescale Register (SSP0CPSR -
0xE006 8010, SSP1CPSR - 0xE003 0010) . 548
SSPn Raw Interrupt Status Register (SSP0RIS -
0xE006 8018, SSP1RIS - 0xE003 0018) . . . 549
SSPn Interrupt Clear Register (SSP0ICR -
0xE006 8020, SSP1ICR - 0xE003 0020). . . 550
SSPn DMA Control Register (SSP0DMACR -
0xE006 8024, SSP1DMACR - 0xE003 0024). . .
550
Chapter 21: LPC24XX SD/MMC card interface
Basic configuration . . . . . . . . . . . . . . . . . . . . 551
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 551
Features of the MCI . . . . . . . . . . . . . . . . . . . . 551
SD/MMC card interface pin description . . . . 551
Functional overview . . . . . . . . . . . . . . . . . . . 552
Mutimedia card . . . . . . . . . . . . . . . . . . . . . . . 552
Secure digital memory card . . . . . . . . . . . . . 552
Secure digital memory card bus signals . . . . 553
MCI adapter . . . . . . . . . . . . . . . . . . . . . . . . . 553
Adapter register block. . . . . . . . . . . . . . . . . . 554
Control unit . . . . . . . . . . . . . . . . . . . . . . . . . . 554
Command path . . . . . . . . . . . . . . . . . . . . . . . 554
Command path state machine . . . . . . . . . . . 554
Command format . . . . . . . . . . . . . . . . . . . . . 556
Data path . . . . . . . . . . . . . . . . . . . . . . . . . . . 557
Data path state machine. . . . . . . . . . . . . . . . 557
Data counter . . . . . . . . . . . . . . . . . . . . . . . . . 559
Bus mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 560
CRC Token status. . . . . . . . . . . . . . . . . . . . . 560
Status flags . . . . . . . . . . . . . . . . . . . . . . . . . . 561
CRC generator . . . . . . . . . . . . . . . . . . . . . . . 561
Data FIFO . . . . . . . . . . . . . . . . . . . . . . . . . . . 561
Transmit FIFO. . . . . . . . . . . . . . . . . . . . . . . . 562
Receive FIFO . . . . . . . . . . . . . . . . . . . . . . . . 562
APB interfaces . . . . . . . . . . . . . . . . . . . . . . . 563
Interrupt logic . . . . . . . . . . . . . . . . . . . . . . . . 563
Register description . . . . . . . . . . . . . . . . . . . 563
Power Control Register (MCI Power -
0xE008 C000) . . . . . . . . . . . . . . . . . . . . . . . 564
Clock Control Register (MCIClock -
0xE008 C004) . . . . . . . . . . . . . . . . . . . . . . . 564
Argument Register (MCIArgument -
0xE008 C008) . . . . . . . . . . . . . . . . . . . . . . . 565
Command Register (MCICommand -
0xE008 C00C) . . . . . . . . . . . . . . . . . . . . . . . 565
Command Response Register
(MCIRespCommand - 0xE008 C010) . . . . . 566
Data Timer Register (MCIDataTimer -
0xE008 C024) . . . . . . . . . . . . . . . . . . . . . . . 567
Data Length Register (MCIDataLength -
0xE008 C028) . . . . . . . . . . . . . . . . . . . . . . . 567
Data Control Register (MCIDataCtrl -
0xE008 C02C) . . . . . . . . . . . . . . . . . . . . . . . 568
Data Counter Register (MCIDataCnt -
0xE008 C030) . . . . . . . . . . . . . . . . . . . . . . . 568
Status Register (MCIStatus - 0xE008 C034) 569
Clear Register (MCIClear - 0xE008 C038) . 570
Interrupt Mask Registers (MCIMask0 -
0xE008 C03C) . . . . . . . . . . . . . . . . . . . . . . . 570