On-Chip Peripheral Components
C513AO
User’s Manual
6-50
05.99
6.4.6 Data/Clock Timing Relationships
The SSC provides four different clocking schemes for clocking the data in and out of the shift
register. The clocking scheme is controlled by two bits in SSCCON: clock polarity (idle state of the
clock, control register bit CPOL) and clock/data relationship (phase control, control register bit
CPHA). These bits control which clock edges will be used for sample and shift. The following figures
show the various possibilities.
6.4.6.1
Master Mode Operation
Figure 6-29 shows the clock-data/control relationship of the SSC in Master Mode. When CPHA is
set to “1”, the MSB (or LSB) of the data that was written into the shift register will be provided on the
transmitter output after the first clock edge; and the receiver input will sample with the next clock
edge. The direction (rising or falling) of the respective clock edge depends on the clock polarity
selected. After the last bit has been shifted out, the data output STO will go to the high output level
(logic 1) and remain there until the next transmission is started. However, when enabling the SSC
after reset, the logic level of STO will be undefined until the first transmission starts.
When CPHA is “0”, the MSB (or LSB) will output immediately after the data is written into the shift
register. The first clock edge of SCLK will be used for sampling the input data; the next to shift out
the next bit. Between transmissions, the data output STO will be “1”.
Figure 6-29
Master Mode Operation of SSC
CPHA = 1
MSB
MSB
SCLK
(CPOL = 0)
(CPOL = 1)
SCLK
Write to
STB Register
STO
at SRI
Input Sample
at SRI
Input Sample
STO
STB Register
Write to
MCS02440
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Bit 6
Bit 5
Bit 0
Bit 4
Bit 3
Bit 1
Bit 2
CPHA = 0
1) MSB shift first mode is assumed (Bit LSBSM in register SCCMOD is 0)