Mode Fault; Slave Abort; Pin Description; Register Description - Philips LPC214 Series User Manual

Table of Contents

Advertisement

Philips Semiconductors
Volume 1

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

Table 154: SPI pin description
Pin Name
Type
SCK0
Input/Output
SSEL0
Input
MISO0
Input/Output
MOSI0
Input/Output

12.4 Register description

The SPI contains 5 registers as shown in
word accessible.
User manual
Pin Description
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.
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 LPC2141/2/4/6/8 (unlike earlier Philips ARM devices) the SSEL0 pin can be
used for a different function when the SPI0 interface is only used in Master mode. For
example, pin hosting the SSEL0 function can be configured as an output digital GPIO
pin and used to select one of the SPI0 slaves.
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.
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.
Rev. 01 — 15 August 2005
Table
155. All registers are byte, half word and
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
UM10139
Chapter 12: SPI
175

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2148Lpc2141Lpc2142Lpc2144Lpc2146

Table of Contents