Spi Control Register - Philips LPC214 Series User Manual

Table of Contents

Advertisement

Philips Semiconductors
Volume 1
Table 155: SPI register map
Name
S0SPCR
S0SPSR
S0SPDR
S0SPCCR SPI Clock Counter Register. This register
S0SPINT
[1]
12.4.1 SPI Control Register (S0SPCR - 0xE002 0000)
The S0SPCR register controls the operation of the SPI0 as per the configuration bits
setting.
Table 156: SPI Control Register (S0SPCR - address 0xE002 0000) bit description
Bit
1:0
2
3
4
5
User manual
Description
SPI Control Register. This register controls the
operation of the SPI.
SPI Status Register. This register shows the
status of the SPI.
SPI Data Register. This bi-directional register
provides the transmit and receive data for the
SPI. Transmit data is provided to the SPI0 by
writing to this register. Data received by the SPI0
can be read from this register.
controls the frequency of a master's SCK0.
SPI Interrupt Flag. This register contains the
interrupt flag for the SPI interface.
Reset value reflects the data stored in used bits only. It does not include reserved bits content.
Symbol
Value Description
-
Reserved, user software should not write ones to
reserved bits. The value read from a reserved bit is not
defined.
BitEnable
0
The SPI controller sends and receives 8 bits of data per
transfer.
1
The SPI controller sends and receives the number of bits
selected by bits 11:8.
CPHA
Clock phase control determines the relationship between
the data and the clock on SPI transfers, and controls
when a slave transfer is defined as starting and ending.
Data is sampled on the first clock edge of SCK. A transfer
0
starts and ends with activation and deactivation of the
SSEL signal.
1
Data is sampled on the second clock edge of the SCK. A
transfer starts with the first clock edge, and ends with the
last sampling edge when the SSEL signal is active.
CPOL
Clock polarity control.
0
SCK is active high.
1
SCK is active low.
MSTR
Master mode select.
0
The SPI operates in Slave mode.
1
The SPI operates in Master mode.
Rev. 01 — 15 August 2005
UM10139
Chapter 12: SPI
Access
Reset
Address
[1]
value
R/W
0x00
0xE002 0000
RO
0x00
0xE002 0004
R/W
0x00
0xE002 0008
R/W
0x00
0xE002 000C
R/W
0x00
0xE002 001C
Reset
value
NA
0
0
0
0
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
176

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2148Lpc2141Lpc2142Lpc2144Lpc2146

Table of Contents