cancel
Showing results for 
Search instead for 
Did you mean: 

SPI pin MISO not going to low after sending data to ADC

Kolab
Senior

Hello! I am trying to communicate with ads1118 through spi3 using HAL library and STM32F205. According to datasheet, after sending the configuration data, we must wait for MISO to go low then we'll be able to retrieve data from the chip. But the MISO pin is high all the time and I can't read anything. Below I leave the algorithm that I wrote and the block diagram from datasheet:

(DOUT/DRDY is tied to MISO )

0693W00000Bc4WuQAJ.pngthe function that transmits and receives (the program gets stuck in the cicle while:(

0693W00000Bc4WzQAJ.pngthe main function:

0693W00000Bc4XJQAZ.pngon the top are the configurations bits. Here I retrieve data from 4 channels.

the configurations of spi3 on CubeMX :

0693W00000Bc4Y7QAJ.png

0 REPLIES 0