ST10R272L - SYNCHRONOUS SERIAL PORT
241/320
SSPCCON0 (00’EF00h)
Reset Value: 0000h
Bit
Function
SSPCKS
SSP Clock Rate Selection Baud Rate
000:
SSP clock = CPU clock divided by 2
MBit/s.
001:
SSP clock = CPU clock divided by 4
MBit/s.
010:
SSP clock = CPU clock divided by 8
MBit/s.
011:
SSP clock = CPU clock divided by 16
MBit
100:
SSP clock = CPU clock divided by 32
KBit/s.
101:
SSP clock = CPU clock divided by 64KBit/s.
KBit/s.
110:
SSP clock = CPU clock divided by 128
KBit/s.
111:
SSP clock = CPU clock divided by 256
KBit/s.
SSPSEL
SSP Chip Enable Selection
00:
No chip enable line selected.
01:
Chip enable line 0 (SSPCE0) selected.
10:
Chip enable line 1 (SSPCE1) selected.
11:
Both chip enable lines selected. Can be used for broadcast messages.
Improper use for read operations may cause line conflicts among several
selected slaves.
SSPCM
SSP Continuous Mode Selection
0:
Single Transfer Mode. Chip enable line deactivated after end of transfer.
1:
Continuous Mode. Chip enable line remains active between transfers.
SSPHB
SSP Heading Control Bit
0:
Transmit/Receive LSB First
1:
Transmit/Receive MSB First
SSPRW
SSP Read/Write Control Bit
0:
Write Operation selected
1:
Read Operation selected.
SSPCKE
SSP Clock Edge Control Bit
0:
Shift transmit data on the leading clock edge, latch on trailing edge.
1:
Latch receive data on leading clock edge, shift on trailing edge.
SSPCKP
SSP Clock Polarity Control Bit
0:
Idle clock is high, leading clock edge is high-to-low transition.
1:
Idle clock is low, leading clock edge is low-to-high transition.
5
4
3
2
1
0
11
10
9
8
7
6
15
14
13
12
rw
rw
rw
-
rw
rw
rw
-
-
-
-
-
SSP
CM
SSP
HB
-
rw
SSP
CKP
SSP
CKE
SSP
RW
SSPCKS
-
SSP
BSY
-
-
SSPSEL
-