![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 1191](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_17218271191.webp)
UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2015. All rights reserved.
User manual
Rev. 2.1 — 10 December 2015
1191 of 1441
NXP Semiconductors
UM10503
Chapter 43: LPC43xx/LPC43Sxx SPI
[1]
Reset value reflects the data stored in used bits only. It does not include reserved bits content.
43.6.1 SPI Control Register
The SPCR register controls the operation of SPI through the configuration bits setting
shown in
.
TCR
R/W
0x010
SPI Test Control register. For functional testing
only.
0x00
TSR
R/W
0x014
SPI Test Status register. For functional testing
only.
0x00
-
R/W
0x018
Reserved.
-
INT
R/W
0x01C
SPI Interrupt Flag. This register contains the
interrupt flag for the SPI interface.
0x00
Table 988. Register overview: SPI (base address 0x4010 0000)
Name
Access
Address
offset
Description
Reset
value
[1]
Table 989: SPI Control Register (CR - address 0x4010 0000) bit description
Bit
Symbol
Value Description
Reset
value
1:0
-
Reserved, user software should not write ones to reserved
bits. The value read from a reserved bit is not defined.
-
2
BITENABLE 0
The SPI controller sends and receives 8 bits of data per
transfer.
0
1
The SPI controller sends and receives the number of bits
selected by bits 11:8.
3
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.
0
0
Data is sampled on the first clock edge of SCK. A transfer
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.
4
CPOL
Clock polarity control.
0
0
SCK is active high.
1
SCK is active low.
5
MSTR
Master mode select.
0
0
The SPI operates in Slave mode.
1
The SPI operates in Master mode.
6
LSBF
LSB First controls which direction each byte is shifted when
transferred.
0
0
SPI data is transferred MSB (bit 7) first.
1
SPI data is transferred LSB (bit 0) first.