Chapter 20: lpc24xx ssp interface ssp0/1, Basic configuration, Features – NXP Semiconductors LPC24XX UM10237 User Manual

Page 536: Description

Advertising
background image

UM10237_4

© NXP B.V. 2009. All rights reserved.

User manual

Rev. 04 — 26 August 2009

536 of 792

1.

Basic configuration

The SSP0/1 interfaces are configured using the following registers:

1. Power: In the PCONP register (

Table 4–63

), set bit PCSSP0/1.

Remark: On reset, both SSP interfaces are enabled (PCSSP0/1 = 1).

2. Clock: In PCLK_SEL0 select PCLK_SSP1; in PCLK_SEL1 select PCLK_SSP0 (see

Section 4–3.3.4

. In master mode, the clock must be scaled down (see

Section 20–6.5

).

3. Pins: Select SSP pins and their modes in PINSEL0 to PINSEL4 and PINMODE0 to

PINMODE4 (see

Section 9–5

).

4. Interrupts: Interrupts are enabled in the SSPnIMSC register

Table 20–476

. Interrupts

are enabled in the VIC using the VICIntEnable register (

Table 7–106

).

Remark: In the VIC, the SSP0 shares its interrupts with the SPI interface.

5. Initialization: see

Table 20–471

and

Table 20–472

.

2.

Features

Compatible with Motorola SPI, 4-wire TI SSI, and National Semiconductor Microwire
buses.

Synchronous Serial Communication.

Master or slave operation.

8 frame FIFOs for both transmit and receive.

4 to 16 bits frame.

DMA transfers supported by GPDMA.

3.

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 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.

LPC2400 has two Synchronous Serial Port controllers -- SSP0 and SSP1.

UM10237

Chapter 20: LPC24XX SSP interface SSP0/1

Rev. 04 — 26 August 2009

User manual

Advertising