Clock Phase And Polarity (Cpha And Cpol)-Bits; Figure 5-6 Spi Data-To-Clock Timing Diagram - Motorola DSP56012 User Manual

24-bit digital signal processor
Table of Contents

Advertisement

Serial Host Interface
Serial Host Interface Programming Model
Note: The maximum-allowed internally generated bit clock frequency is
the SPI mode and
generated bit clock frequency is
mode). The programmer should not use the combination HRS = 1 and
HDM[5:0] = 000000, since it may cause synchronization problems and
improper operation (it is therefore considered an illegal combination).
Note: The HCKR bits are cleared during hardware reset or software reset, except for
CPHA, which is set. The HCKR is not affected by the Stop state.
The HCKR bits are described in the following paragraphs.
5.4.5.1
Clock Phase and Polarity (CPHA and CPOL)—Bits 1–0
The programmer may select any of four combinations of Serial Clock (SCK) phase
and polarity when operating in the SPI mode (refer to Figure 5-6 on page 5-10). The
clock polarity is determined by the Clock Polarity (CPOL) control bit, which selects
an active-high or active-low clock. When CPOL is cleared, it produces a steady-state
low value at the SCK pin of the master device whenever data is not being transferred.
If the CPOL bit is set, a high value is produced at the SCK pin of the master device
whenever data is not being transferred.
SS
SCK
(CPOL = 0, CPHA = 0)
SCK
(CPOL = 0, CPHA = 1)
SCK
(CPOL = 1, CPHA = 0)
SCK
(CPOL = 1, CPHA = 1)
MISO/
MOSI

Figure 5-6 SPI Data-To-Clock Timing Diagram

The Clock Phase (CPHA) bit controls the relationship between the data on the MISO
and MOSI pins and the clock produced or received at the SCK pin. This control bit is
5-10
fosc
2
/
for the I
C mode (the maximum-allowed externally
6
fosc
/
3
MSB
6
5
Internal Strobe for Data Capture
DSP56012 User's Manual
for the SPI mode and
4
3
2
1
fosc
/
for
4
fosc
2
/
for the I
C
5
LSB
AA0421
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents