You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In SPI Mode 0 (CPOL=0, CPHA=0 and SSPOL=0), the first 32 Bits are interpreted correct. But the following 32 Data Bits are interpreted as shifted one position to the right. Because of this, the LSB is lost.
The picture below shows the capture of a failed read 4 GPIO state read:
The first 32 Address- and Read-Bit where just sent.
SS goes high and low again
32 Clock cycles are sent by Master
The interpreted value is 0x0007 instead of the expected 0x000F.
In SPI Mode 0 (CPOL=0, CPHA=0 and SSPOL=0), the first 32 Bits are interpreted correct. But the following 32 Data Bits are interpreted as shifted one position to the right. Because of this, the LSB is lost.
The picture below shows the capture of a failed read 4 GPIO state read:
(CH1/ye = SS, CH2/gn = MOSI, CH3/bl = MISO, CH4/rd = CLK)
As a workaround for this issue, a SPI driver modification was necessary:
The text was updated successfully, but these errors were encountered: