
UM10375
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2011. All rights reserved.
User manual
Rev. 3 — 14 June 2011
250 of 368
14.1 How to read this chapter
The SSP0 block is identical for all LPC13xx parts. The SSP1 block is available on part
LPC1313FBD48/01 only.
14.2 Basic configuration
The SSP is configured using the following registers:
1. Pins: The SSP pins must be configured in the IOCONFIG register block (
).
The SCK0 function must also be configured in the IOCON_SCK0_LOC register
(
2. Power: In the SYSAHBCLKCTRL register, set bit 11 (
3. Peripheral clock: Enable the SSP peripheral clock by writing to the SSP0CLKDIV
register (see
4. Reset: Before accessing the SSP block, ensure that the SSP_RST_N bits (bit 0 and
bit 2) in the PRESETCTRL register (
) are set to 1. This de-asserts the reset
signal to the SSP block.
14.3 Features
•
Compatible with Motorola SPI, 4-wire TI SSI, and National Semiconductor Microwire
buses.
•
Synchronous Serial Communication.
•
Supports master or slave operation.
•
Eight frame FIFOs for both transmit and receive.
•
4-bit to 16-bit frame.
14.4 General description
The SSP is a Synchronous Serial Port (SSP) controller capable of operation on a SPI,
4-wire SSI, or Microwire bus. It can interact with multiple masters and slaves on the bus.
Only a single master and a single slave can communicate on the bus during a given data
transfer. Data transfers are in principle full duplex, with frames of 4 bits to 16 bits of data
flowing from the master to the slave and from the slave to the master. In practice it is often
the case that only one of these data flows carries meaningful data.
The LPC13xx has one Synchronous Serial Port controller.
UM10375
Chapter 14: LPC13xx SSP0/1
Rev. 3 — 14 June 2011
User manual