© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
User manual
Rev. 01 — 15 August 2005
190
Philips Semiconductors
UM10139
Volume 1
Chapter 13: SSP
13.4.2 SSP
Control
Register 1 (SSPCR1 - 0xE006 8004)
This register controls certain aspects of the operation of the SSP controller.
6
CPOL
0
Clock Out Polarity. This bit is only used in SPI mode.
SSP controller captures serial data on the first clock transition
of the frame, that is, the transition away from the inter-frame
state of the clock line.
0
1
SSP controller captures serial data on the second clock
transition of the frame, that is, the transition back to the
inter-frame state of the clock line.
7
CPHA
0
Clock Out Phase. This bit is only used in SPI mode.
SSP controller maintains the bus clock low between frames.
0
1
SSP controller maintains the bus clock high between frames.
15:8
SCR
Serial Clock Rate. The number of prescaler-output clocks per
bit on the bus, minus one. Given that CPSDVR is the prescale
divider, and the VPB clock PCLK clocks the prescaler, the bit
frequency is PCLK / (CPSDVSR * [SCR+1]).
0x00
Table 163: SSP Control Register 0 (SSPCR0 - address 0xE006 8000) bit description
Bit
Symbol
Value
Description
Reset
value
Table 164: SSP Control Register 1 (SSPCR1 - address 0xE006 8004) bit description
Bit
Symbol
Value
Description
Reset
value
0
LBM
0
Loop Back Mode.
During normal operation.
0
1
Serial input is taken from the serial output (MOSI or MISO)
rather than the serial input pin (MISO or MOSI
respectively).
1
SSE
0
SSP Enable.
The SSP controller is disabled.
0
1
The SSP controller will interact with other devices on the
serial bus. Software should write the appropriate control
information to the other SSP registers and interrupt
controller registers, before setting this bit.
2
MS
0
Master/Slave Mode.This bit can only be written when the
SSE bit is 0.
The SSP controller acts as a master on the bus, driving the
SCLK, MOSI, and SSEL lines and receiving the MISO line.
0
1
The SSP controller acts as a slave on the bus, driving
MISO line and receiving SCLK, MOSI, and SSEL lines.
3
SOD
Slave Output Disable. This bit is relevant only in slave
mode (MS = 1). If it is 1, this blocks this SSP controller
from driving the transmit data line (MISO).
0
7:4
-
Reserved, user software should not write ones to reserved
bits. The value read from a reserved bit is not defined.
NA