
DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10360_0
© NXP B.V. 2009. All rights reserved.
User manual
Rev. 00.06 — 5 June 2009
799 of 808
continued >>
NXP Semiconductors
UM10360
Chapter 35: LPC17xx Supplementary information
Chapter 18: LPC17xx SSP0/1 interface
Basic configuration . . . . . . . . . . . . . . . . . . . . 387
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 387
Pin descriptions . . . . . . . . . . . . . . . . . . . . . . . 388
Bus description . . . . . . . . . . . . . . . . . . . . . . . 388
SPI frame format . . . . . . . . . . . . . . . . . . . . . 389
Clock Polarity (CPOL) and Phase (CPHA) control
389
SPI format with CPOL=0,CPHA=0 . . . . . . . . 390
SPI format with CPOL=0,CPHA=1 . . . . . . . . 391
SPI format with CPOL = 1,CPHA = 0 . . . . . . 391
SPI format with CPOL = 1,CPHA = 1 . . . . . . 393
National Semiconductor Microwire frame format .
393
Setup and hold time requirements on CS with
respect to SK in Microwire mode . . . . . . . . . 395
Register description . . . . . . . . . . . . . . . . . . . 395
SSPn Control Register 0 (SSP0CR0 -
0x4008 8000, SSP1CR0 - 0x4003 0000). . . 396
SSPn Control Register 1 (SSP0CR1 -
0x4008 8004, SSP1CR1 - 0x4003 0004). . . 397
SSPn Data Register (SSP0DR - 0x4008 8008,
SSP1DR - 0x4003 0008) . . . . . . . . . . . . . . . 398
SSPn Status Register (SSP0SR - 0x4008 800C,
SSP1SR - 0x4003 000C) . . . . . . . . . . . . . . . 398
SSPn Clock Prescale Register (SSP0CPSR -
0x4008 8010, SSP1CPSR - 0x4003 0010) . 399
SSPn Raw Interrupt Status Register (SSP0RIS -
0x4008 8018, SSP1RIS - 0x4003 0018) . . . 400
SSPn Interrupt Clear Register (SSP0ICR -
0x4008 8020, SSP1ICR - 0x4003 0020) . . . 401
SSPn DMA Control Register (SSP0DMACR -
0x4008 8024, SSP1DMACR - 0x4003 0024) 401
Chapter 19: LPC17xx I2C0/1/2 interface
Basic configuration . . . . . . . . . . . . . . . . . . . . 402
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402
Applications . . . . . . . . . . . . . . . . . . . . . . . . . . 403
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 403
C FAST Mode Plus. . . . . . . . . . . . . . . . . . . 404
Pin description . . . . . . . . . . . . . . . . . . . . . . . . 404
2
C operating modes . . . . . . . . . . . . . . . . . . . 405
Master Transmitter mode . . . . . . . . . . . . . . . 405
Master Receiver mode . . . . . . . . . . . . . . . . . 406
Slave Receiver mode . . . . . . . . . . . . . . . . . . 407
Slave Transmitter mode . . . . . . . . . . . . . . . . 408
2
C implementation and operation . . . . . . . . 408
Input filters and output stages. . . . . . . . . . . . 408
Address Registers, I2ADR0 to I2ADR3 . . . . 410
Address mask registers, I2MASK0 to I2MASK3. .
410
Comparator. . . . . . . . . . . . . . . . . . . . . . . . . . 410
Shift register, I2DAT . . . . . . . . . . . . . . . . . . . 410
Arbitration and synchronization logic . . . . . . 410
Serial clock generator . . . . . . . . . . . . . . . . . . 411
Timing and control . . . . . . . . . . . . . . . . . . . . 412
Control register, I2CONSET and I2CONCLR 412
Status decoder and status register . . . . . . . . 412
Register description . . . . . . . . . . . . . . . . . . . 412
2
C Control Set register (I2CONSET: I
2
C0,
I2C0CONSET - 0x4001 C000; I
2
C1,
I2C1CONSET - 0x4005 C000; I
2
C2,
I2C2CONSET - 0x400A 0000). . . . . . . . . . . 414
2
C Control Clear register (I2CONCLR: I
2
C0,
I2C0CONCLR - 0x4001 C018; I
2
C1,
I2C1CONCLR - 0x4005 C018; I
2
C2,
I2C2CONCLR - 0x400A 0018). . . . . . . . . . . 416
2
C Status register (I2STAT: I
2
C0, I2C0STAT -
0x4001 C004; I
2
C1, I2C1STAT - 0x4005 C004;
I
2
C2, I2C2STAT - 0x400A 0004) . . . . . . . . . 417
2
C Data register (I2DAT: I
2
C0, I2C0DAT -
0x4001 C008; I
2
C1, I2C1DAT - 0x4005 C008;
I
2
C2, I2C2DAT - 0x400A 0008) . . . . . . . . . . 417
2
C Monitor mode control register (I2MMCTRL:
I
2
C0, I2CMMCTRL0 - 0x4001 C01C; I
2
C1,
I2C1MMCTRL- 0x4005 C01C; I
2
C2,
I2C2MMCTRL- 0x400A 001C). . . . . . . . . . . 418