Serial host interface
STLC4420A
4.2
SPI mode selection
As shown in Table 4, the 12 modes of operation are controlled by 4 variables in the device
status/control register.
Table 4. Serial host modes of operation
Invert Clock Phase Shift 3-Wire-Mode 3-Wire-Adr DataWait
Name
0
0
0
X
1
0
0
X
0
1
0
X
1
1
0
X
0
0
1
0
1
0
1
0
0
1
1
0
1
1
1
0
0
0
1
1
1
0
1
1
0
1
1
1
1
1
1
1
4-Wire
4-WireInv
4WShft
4-WireInvShft
3-Wire
3-WireInv
3-WireShft
3-WireInvShft
3-WireWait1
3-WireInvWait1
3-WireShftWait1
3-WireInvShftWait1
When Invert Clock = 0, SPI_CLK receive edge is the rising edge and SPI_CLK transmit
edge is the falling edge.
The SPI_CLK polarity can be reversed by a host write to device status/control register to
change the Invert Clock = 1.
In this case, the SPI_CLK transmit edge becomes the rising edge and SPI_CLK receive
edge becomes the falling edge.
Figure 6. Single Word Read 4-WireInvMode
Figure 7. Single Word Read 4-WireShftMode
22/40