41.6.2 Serial Clock Phase and Polarity

Four combinations of polarity and phase are available for data transfers. The clock polarity is programmed with the CPOL bit in the QSPI Serial Clock register (QSPI_SCR). The CPHA bit in the QSPI_SCR programs the clock phase. These two parameters determine the edges of the clock signal on which data is driven and sampled. Each of the two parameters has two possible states, resulting in four possible combinations that are incompatible with one another. Thus, the interfaced Client must use the same parameter values to communicate.

The table below shows the four modes and corresponding parameter settings.

Table 41-2. QSPI Bus Clock Modes
QSPI Clock ModeQSPI_SCR.CPOLQSPI_SCR.CPHAShift QSCK
EdgeCapture QSCK EdgeQSCK Inactive Level
000FallingRisingLow
101RisingFallingLow
210RisingFallingHigh
311FallingRisingHigh

The following figures show examples of data transfers.

Figure 41-2. QSPI Transfer Format (QSPI_SCR.CPHA = 0, 8 bits per transfer)
Figure 41-3. QSPI Transfer Format (QSPI_SCR.CPHA = 1, 8 bits per transfer)