UM10413
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2011. All rights reserved.
User manual
Rev. 1 — 16 December 2011
156 of 268
NXP Semiconductors
UM10413
MPT612 User manual
Table 142: SPI Control register (S0SPCR - address 0xE002 0000) bit description
Bit
Symbol
Value Description
Reset
value
1:0
-
reserved, user software must not write logic 1s to
reserved bits; value read from a reserved bit is not
defined
n/a
2
BitEnable
0
SPI controller sends and receives 8 bits of data per
transfer
0
3
CPHA
clock phase control determines relationship between
data and 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 SCK second clock edge. A transfer
starts with the first clock edge, and ends with the last
sampling edge when 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
SPI operates in Slave mode
1
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
7
SPIE
serial peripheral interrupt enable
0
0
SPI interrupts are inhibited
1
a hardware interrupt is generated each time the SPIF
or MODF bits are activated
11:8
BITS
when bit 2 of this register is logic 1 this field controls the
number of bits per transfer:
0000
1000
8 bits per transfer
1001
9 bits per transfer
1010
10 bits per transfer
1011
11 bits per transfer
1100
12 bits per transfer
1101
13 bits per transfer
1110
14 bits per transfer
1111
15 bits per transfer
0000
16 bits per transfer
15:12
-
reserved, user software must not write logic 1s to
reserved bits; value read from a reserved bit is not
defined
n/a