Modes of SPI
In SPI, the main can select clock polarity (CPOL) and clock phase (CPHA). Both parameters
have two states which results in four possible modes. These combinations are shown in
4.
MODE 0
CLK IDLE
LOW
MODE 2
CLK IDLE
Functional Description
Onyx USB-I²C/SPI Converter connects a PC to an embedded or a generic device which uses
the I²C/SPI protocol via USB. Onyx USB-I²C/SPI Converter can be used as master or slave for
I²C and SPI. I²C and SPI pins can also be used as GPIO or combined with I²C or SPI functionality.
Onyx USB-I²C/SPI Converter is powered directly from the PC's USB port.
Features
Plug and play with DEICO Serial Center
USB powered
Master or slave mode
I²C interface speeds up to 3.4MHz
I²C interface multi-master mode support
I²C interface internal pull-up resistors
SPI interface speeds up to 25MHz
Full duplex SPI interface
SPI interface software configurable slave select polarity
Configurable I²C and SPI pins as GPIO or combined with I²C or SPI
DE4001_USER MANUAL
Rev. No:0 Rev. Date: 05.08.2023
Sampling
Edge
Sampling
Edge
HIGH
Figure 4: Modes of SPI
www.deico.com.tr
Sampling
MODE 1
Edge
CLK IDLE
LOW
Sampling
MODE 3
Edge
CLK IDLE
HIGH
Figure
5 / 31