2021-06-26 05:42 AM
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 )
the function that transmits and receives (the program gets stuck in the cicle while:(
the main function:
on the top are the configurations bits. Here I retrieve data from 4 channels.
the configurations of spi3 on CubeMX :