
To activate the SPI interface, select 'SPI' in the 'Data Interface' option on the page 'general'.
See
here on a detailed describtion of the SPI interface.
The settings of the SPI interface controll the bus timing:
| CPOL and CPHA settings | First data driven | Other data driven | Data sampled |
|---|---|---|---|
| CPOL = 0, CPHA = 0 | Prior to first SCK rising edge | SCK falling edge | SCK rising edge |
| CPOL = 0, CPHA = 1 | First SCK rising edge | SCK rising edge | SCK falling edge |
| CPOL = 1, CPHA = 0 | Prior to first SCK falling edge | SCK rising edge | SCK falling edge |
| CPOL = 1, CPHA = 1 | First SCK falling edge | SCK falling edge | SCK rising edge |
See the following timing diagrams for details (click to enlarge):