30.01.2015 Views

UM10211 - Standard ICs

UM10211 - Standard ICs

UM10211 - Standard ICs

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

NXP Semiconductors<br />

<strong>UM10211</strong><br />

Chapter 16: LPC2300 SPI0<br />

5. Pin description<br />

Table 342. SPI Pin Description<br />

Pin Type Pin Description<br />

Name<br />

SCK0 Input/<br />

Output<br />

Serial Clock. The SPI is a clock signal used to synchronize the transfer of data<br />

across the SPI interface. The SPI is always driven by the master and received<br />

by the slave. The clock is programmable to be active high or active low. The SPI<br />

is only active during a data transfer. Any other time, it is either in its inactive<br />

state, or tri-stated.<br />

SSEL0 Input Slave Select. The SPI slave select signal is an active low signal that indicates<br />

which slave is currently selected to participate in a data transfer. Each slave has<br />

its own unique slave select signal input. The SSEL must be low before data<br />

transactions begin and normally stays low for the duration of the transaction. If<br />

the SSEL signal goes high any time during a data transfer, the transfer is<br />

considered to be aborted. In this event, the slave returns to idle, and any data<br />

that was received is thrown away. There are no other indications of this<br />

exception. This signal is not directly driven by the master. It could be driven by a<br />

simple general purpose I/O under software control.<br />

On the LPC2300 (unlike earlier NXP ARM devices) the SSEL0 pin can be used<br />

for a different function when the SPI0 interface is only used in Master mode. For<br />

example, pin hosting the SSEL0 function can be configured as an output digital<br />

GPIO pin and used to select one of the SPI0 slaves.<br />

MISO0<br />

MOSI0<br />

Input/<br />

Output<br />

Input/<br />

Output<br />

Master In Slave Out. The MISO signal is a unidirectional signal used to transfer<br />

serial data from the slave to the master. When a device is a slave, serial data is<br />

output on this signal. When a device is a master, serial data is input on this<br />

signal. When a slave device is not selected, the slave drives the signal high<br />

impedance.<br />

Master Out Slave In. The MOSI signal is a unidirectional signal used to transfer<br />

serial data from the master to the slave. When a device is a master, serial data<br />

is output on this signal. When a device is a slave, serial data is input on this<br />

signal.<br />

6. Register description<br />

The SPI contains 5 registers as shown in Table 16–343. All registers are byte, half word<br />

and word accessible.<br />

Table 343. SPI Register Map<br />

Name Description Access Reset Address<br />

Value [1]<br />

S0SPCR SPI Control Register. This register controls the R/W 0x00 0xE002 0000<br />

operation of the SPI.<br />

S0SPSR SPI Status Register. This register shows the<br />

status of the SPI.<br />

RO 0x00 0xE002 0004<br />

<strong>UM10211</strong>_1<br />

© NXP B.V. 2007. All rights reserved.<br />

User manual Rev. 01 — 27 March 2007 370 of 613

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!