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
169 of 268
NXP Semiconductors
UM10413
MPT612 User manual
18.4.2 SSP Control register 1 (SSPCR1 - 0xE006 8004)
This register controls certain aspects of the operation of the SSP controller.
18.4.3 SSP Data register (SSPDR - 0xE006 8008)
Software can write data to be transmitted to this register, and read data that has been
received.
7
CPHA
clock out phase. Only used in SPI mode.
0
0
SSP controller captures serial data on the first clock
transition of frame, that is, the transition
away from
the
inter-frame state of the clock line.
1
SSP controller captures serial data on second clock
transition of frame, that is, the transition
back to
the
inter-frame state of the clock line.
15:8
SCR
serial clock rate. Number of prescaler-output clocks per bit
on bus, minus one. Given that CPSDVR is the prescale
divider, and APB clock PCLK clocks the prescaler, the bit
frequency is PCLK / (CPSDVSR
[SCR+1]).
0x00
Table 149. SSP Control register 0 (SSPCR0 - address 0xE006 8000)
bit description
…continued
Bit
Symbol
Value
Description
Reset
value
Table 150: SSP Control register 1 (SSPCR1 - address 0xE006 8004) bit description
Bit
Symbol
Value
Description
Reset
value
0
LBM
Loop back Mode
0
0
during normal operation
1
serial input is taken from serial output (MOSI or MISO)
rather than serial input pin (MISO or MOSI respectively)
1
SSE
SSP enable
0
0
SSP controller is disabled
1
SSP controller interacts with other devices on serial bus.
Software must write appropriate control information to
other SSP registers and interrupt controller registers
before setting this bit.
2
MS
Master/Slave mode. Can only be written when bit SSE is
logic 0.
0
0
SSP controller acts as a master on the bus, driving
SCLK, MOSI, and SSEL lines and receiving MISO line\
1
SSP controller acts as a slave on the bus, driving MISO
line and receiving SCLK, MOSI, and SSEL lines
3
SOD
slave output disable. Relevant only in slave mode
(MS = 1). If it is logic 1, this blocks this SSP controller from
driving transmit data line MISO.
0
7:4
-
reserved, user software must not write logic 1s to reserved
bits; value read from a reserved bit is not defined
n/a