37.6.5 Serial Clock Phase and Polarity
Four combinations of polarity and phase are available for data transfers. Writing the Clock
Polarity bit in the QSPI Baud register (BAUD.CPOL) selects the polarity. The Clock Phase
bit in the BAUD register programs the clock phase (BAUD.CPHA). 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.
Note: The polarity/phase combinations are
incompatible. Therefore, the interfaced Client must use the same parameter values to
communicate.
All combinations of polarity and phase are available when QSPI operates in SPI mode (CTRLB.MODE = 0).
In QSPI Serial Memory mode (CTRLB.MODE = 1), only Mode 0 is supported.
in QSPI Dual Data Rate transfer mode (INSTRFRAME.DDREN = 1), only Mode 0 is supported.
Mode | BAUD.CPOL | BAUD.CPHA | Shift SCK Edge | Capture SCK Edge | SCK Inactive Level |
---|---|---|---|---|---|
0 | 0 | 0 | Falling | Falling | Low |
1 | 0 | 1 | Rising | Rising | Low |
2 | 1 | 0 | Rising | Rising | High |
3 | 1 | 1 | Falling | Falling | High |