cancel
Showing results for 
Search instead for 
Did you mean: 

I'm not receiving any data on the MISO line when using SPI communication mode 3.

yshdnz
Visitor

I'm currently working on an embedded project with stm32f469 microcontroller and trying to communicate with dps368 sensor using SPI communication. DPS368 is operating in mode 3 and now I'm facing an issue where I'm not receiving any data when I'm transmitting a command (0x8D) to get dps368's id. All I get is a flat line (0x00) for the MISO line from my logic analyzer.

 

Also, I noticed that when I'm in mode 3 (In the stm32cubdeide: CPOL high, CPHA 2Edge), the clock is not operating based on the expected operation of SPI communication. The expected operation of SPI in mode 3 is that when the chip select that's idle high is triggered (changes state to low), the clock will start with a high-level pulse. What I'm getting is, for the first time of transmission of the data, the clock is still initially low even if the chip select already changed its state to low. The clock will only become initially high when there's a transmission of data.

0 REPLIES 0