This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADS1232: ADS1232 interfacing with stm32f429

Part Number: ADS1232
Other Parts Discussed in Thread: MSP430F449,

I have to interface ADS1232 with STM32F429ZI. I need some sample code for this using HAL drivers of STM32

  • Hi Nikhil,

    Welcome to the forum! Unfortunately I cannot give you example code for ST devices nor tell you how to connect or communicate with the ADS1232.  You may find that using a bit-bang approach with GPIO is actually easier than using an SPI hardware peripheral due to the odd number of clocks involved for offset calibration and monitoring of DOUT/DRDY for a high to low transition.

    We do have project code for the MSP430F449 used in the ADS1232REF.  It may be a little hard to follow as the code uses freeRTOS.  The most helpful code will be in the ADS1232.c and .h files. 

    ftp://ftp.ti.com/pub/data_acquisition/ADS123xREF/ADS123x_CDROM/Firmware/Firmware_Source_Code/Source_for_123XREF_firmware-1.1.0d.zip

    Best regards,

    Bob B

  • Hii,

    I got some reference with provided information and interfaced the ads1232 with stm. Now i want to read both channels one by onewhich is done by toggling A0 pin.

    Tried to read it in while loop with some delay. but on switching it not shows the valid reading.

    What the precautions need to be taken for switching. so that readings will be correct.

  • Hi Nikhil,

    Because of the nature of the SINC filter, there needs to be several conversion cycles completed before the result is valid.  On page 17 of the ADS1232 datasheet there shows a graph and a table as Figure 32.  Note that DOUT/DRDY will go high for t1 time.  You must wait this amount of time or you must monitor DOUT/DRDY to transition from high to low before attempting to read the data.

    Best regards,

    Bob B