DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10316_0
© NXP B.V. 2008. All rights reserved.
User manual
Rev. 00.06 — 17 December 2008
266 of 571
NXP Semiconductors
UM10316
Chapter 18: LPC29xx SPI0/1/2
3.9 SPI slave-settings 1 register
The 1st slave-settings register configures the serial clock rate, the number of words and
the inter-frame delay for each slave of the SPI module.
[1]
This register is only relevant in master mode, and each individual slave has its own parameters.
[2]
The serial-clock frequency is derived from BASE_SPI_CLK (CLK_SPI) using the values programmed in the
CLK_DIVISOR1 and CLK_DIVISOR2 fields:
1
TX_FIFO_FULL
R
Transmit FIFO full bit
1
Transmit FIFO full
0*
Transmit FIFO not full
0
TX_FIFO_EMPTY
R
Transmit FIFO empty bit
1*
Transmit FIFO empty
0
Transmit FIFO not empty
Table 222. SPI status-register bit description (STATUS0/1/2, addresses: 0xE004 701C (SPI0),
0xE004 801C (SPI1), 0xE004 901C (SPI2))
…continued
* = reset value
Bit
Symbol
Access
Value
Description
Table 223. SLVn_SETTINGS1 register bit description (SLV0/1/2_SETTINGS1, addresses:
0xE004 7024/2C/34/3C (SPI0), 0xE004 8024/2C/34/3C (SPI1), 0xE004 9024/2C/34/3C
(SPI2))
* = reset value
Bit
Symbol
Access
Value Description
31 to 24
INTER_TRANSFER_DLY
R/W
The delay between transfers to this
slave, measured in serial clock cycles.
This delay is a minimum of 0 serial clock
cycles
00h*
23 to 16
NUMBER_WORDS
R/W
Number of words to send in sequential-
slave mode.
After this number of words has been
transmitted to the slave the master will
start transmitting to the next slave. If
sequential-slave mode is disabled this
field is not used (minus 1 encoded)
.
00h*
15 to 8
CLK_DIVISOR2
R/W
A value from 2 to 254 (lsb bit is
hard-coded 0)
02h*
7 to 0
CLK_DIVISOR1
R/W
A value from 0 to 255
00h*
fserialclk
f CLK
_
SPI
(
)
clkdivisor2
1
clkdivisor1
+
(
)
×
---------------------------------------------------------------------------------
=