Digi NS9215 Computer Hardware User Manual


 
. . . . .
SERIAL CONTROL MODULE: SPI
SPI clocking modes
www.digiembedded.com 435
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SPI clocking modes
There are four SPI clocking modes. Each mode’s characteristics are defined by the
idle value of the clock, which clock edge captures data, and which clock edge drives
data. The MODE field in the SPI Configuration register specifies the timing mode.
Timing modes
Clocking mode
diagrams
The next two diagrams show the four SPI clocking modes. SPI Mode0 and SPI Mode3
are the most commonly used modes.
SPI Mode0 and Mode3 functional timing
SPI Mode1 and Mode2 functional timing
SPI mode SPI CLK Idle SPI DATA IN
capture edge
SPI DATA OUT
drive edge
0 Low Rising Falling
1 High Falling Rising
2 Low Falling Rising
3 High Rising Falling
Mode
3
Mode
0
Mode
3
Mode
0
CS#
CLK
SIN
/
SOUT
Capture Edge
Launch Edge
Mode
1
Mode
2
Mode
1
Mode
2
CS#
CLK
SIN
/
SOUT
Capture EdgeLaunch Edge