Nxp semiconductors – NXP Semiconductors LPC24XX UM10237 User Manual
Page 786
![background image](/manuals/190592/786/background.png)
UM10237_4
© NXP B.V. 2009. All rights reserved.
User manual
Rev. 04 — 26 August 2009
786 of 792
NXP Semiconductors
UM10237
Chapter 36: LPC24XX Supplementary information
SPI peripheral details . . . . . . . . . . . . . . . . . . 528
General information . . . . . . . . . . . . . . . . . . . 528
Master operation. . . . . . . . . . . . . . . . . . . . . . 528
Slave operation. . . . . . . . . . . . . . . . . . . . . . . 529
Exception conditions. . . . . . . . . . . . . . . . . . . 529
Pin description . . . . . . . . . . . . . . . . . . . . . . . . 530
Register description . . . . . . . . . . . . . . . . . . . 531
SPI Control Register (S0SPCR -
0xE002 0000) . . . . . . . . . . . . . . . . . . . . . . . . 531
SPI Status Register (S0SPSR -
0xE002 0004) . . . . . . . . . . . . . . . . . . . . . . . . 532
SPI Data Register (S0SPDR - 0xE002 0008) 533
SPI Clock Counter Register (S0SPCCR -
0xE002 000C) . . . . . . . . . . . . . . . . . . . . . . . 533
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
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
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