36.3.6.2 Clock and Data Change Alignment

The CKP, CKE and SMP bits control the relationship between the SCK clock output, SDO output data changes, and SDI input data sampling. The bit functions are as follows:
  • CKP controls SCK output polarity
  • CKE controls SDO output change relative to the SCK clock
  • SMP controls SDI input sampling relative to the clock edges

The CKE bit, when set, inverts the low Idle state of the SCK output to a high Idle state.

The following figures illustrate the eight possible combinations of the CKP, CKE and SMP bit selections.
Important: All timing diagrams assume the LSBF bit is cleared.
Figure 36-7. Clocking Detail - Host Mode, CKE = 0, SMP = 0
Figure 36-8. Clocking Detail - Host Mode, CKE = 1, SMP = 1
Figure 36-9. Clocking Detail - Host Mode, CKE = 0, SMP = 1
Figure 36-10. Clocking Detail - Host Mode, CKE = 1, SMP = 0