© Koninklijke Philips Electronics N.V. 2006. All rights reserved.
User manual
Rev. 01 — 12 January 2006
161
Philips Semiconductors
UM10161
Volume 1
Chapter 12: SPI
12.2.9 Mode
fault
The SSEL signal must always be inactive when the SPI block is a master. If the SSEL
signal goes active, when the SPI block is a master, this indicates another master has
selected the device to be a slave. This condition is known as a mode fault. When a mode
fault is detected, the mode fault (MODF) bit in the status register will be activated, the SPI
signal drivers will be de-activated, and the SPI mode will be changed to be a slave.
12.2.10 Slave
abort
A slave transfer is considered to be aborted, if the SSEL signal goes inactive before the
transfer is complete. In the event of a slave abort, the transmit and receive data for the
transfer that was in progress are lost, and the slave abort (ABRT) bit in the status register
will be activated.
12.3 Pin description
12.4 Register description
The SPI contains 5 registers as shown in
. All registers are byte, half word and
word accessible.
Table 139: SPI pin description
Pin Name
Type
Pin Description
SCK0
Input/Output
Serial Clock.
The SPI is a clock signal used to synchronize the transfer of data across the
SPI interface. The SPI is always driven by the master and received by the slave. The clock is
programmable to be active HIGH or active LOW. The SPI is only active during a data transfer.
Any other time, it is either in its inactive state, or tri-stated.
SSEL0
Input
Slave Select.
The SPI slave select signal is an active LOW signal that indicates which slave
is currently selected to participate in a data transfer. Each slave has its own unique slave
select signal input. The SSEL must be LOW before data transactions begin and normally
stays LOW for the duration of the transaction. If the SSEL signal goes HIGH any time during
a data transfer, the transfer is considered to be aborted. In this event, the slave returns to
idle, and any data that was received is thrown away. There are no other indications of this
exception. This signal is not directly driven by the master. It could be driven by a simple
general purpose I/O under software control.
On the LPC2101/02/03 the SSEL0 pin can be used for a different function when the
SPI0 interface is only used in Master mode. For example, the pin hosting the SSEL0
function can be configured as an output digital GPIO pin or used to select one of the
Match outputs.
MISO0
Input/Output
Master In Slave Out.
The MISO signal is a unidirectional signal used to transfer serial data
from the slave to the master. When a device is a slave, serial data is output on this signal.
When a device is a master, serial data is input on this signal. When a slave device is not
selected, the slave drives the signal high impedance.
MOSI0
Input/Output
Master Out Slave In.
The MOSI signal is a unidirectional signal used to transfer serial data
from the master to the slave. When a device is a master, serial data is output on this signal.
When a device is a slave, serial data is input on this signal.