cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to Communicate with ADS7038 ADC over SPI

Avid
Associate II

Hello,

I am having issues communicating over SPI with an external ADC the ADS7038. I am using an STM32H750VB and sourced the code from github (precision-adc-examples/devices/ads7038 at main · TexasInstruments/precision-adc-examples). I am unable to read data from the ADC when it is connected to a thermocouple and only get a return of 0. I have tried reading from individual registers but have been unable to return a value. The STM32 pins all have correct continuity, but the ADS7038 is difficult to probe since it has a QFN package. I was able to get a signal on SCK and MOSI but MISO was just high. SPI is set as Full-Duplex master using CS pins to enable with a Baud rate of 2 Mbits/s. Attached is the entire code but also here are some screenshots of the main programs used to communicate SPI and read from the ADC. Any ideas for other things to try for debugging? 

Avid_0-1744261130460.png

Avid_1-1744261167889.png

Avid_2-1744261338199.png

Avid_9-1744262385851.png

 

Avid_5-1744262162471.png

Avid_8-1744262351886.png

Avid_7-1744262312052.png

Avid_6-1744262245283.png

 

 

 

1 REPLY 1

Please see How to insert source code - not as screenshots.

 

So have you used a logic analyser on the SPI to see what's actually happening on the wires.

Does that match the requirements stated in the TI datasheet?

If it looks OK, present it to TI for their opinion:

https://e2e.ti.com/support/data-converters-group/data-converters/f/data-converters-forum

 


@Avid wrote:

the ADS7038 is difficult to probe since it has a QFN package.


That's why it's always best to start by using a dev kit and/or breakout boards.

Or design your custom PCB with test points to access critical signals

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.