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.

TMS570LC4357: Interfacing ADS1158 with T570LC43x processor example code

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN, ADS1158

Hi,

does TI have an example code for getting started with ADS1158 and TM570LC43x?

I have been trying to find something that can help me get started specially with settings regarding SPI Interface. 

Thanks! 

  • Hello Patel,

    No, we don't have sample code for TMS570LC43x to communicate with ADS1158. The ADS1158 is operated via a SPI-compatible serial interface by writing data to the configuration registers, using commands to control the converter and finally reading back the channel data. The interface consists of nCS, CLK, DIN, and DOUT. TMS570LC43x supports SPI-compatible mode, and supports 3-pin, 4-pin, and 5-pin modes. You can use you can use our HALCoGen to generate SPI code.
  • Is there any document that describes HALCOGen SPI settings required to interface ADS1158 with TMS570LC43x?

    Thanks
  • Hello,

    This is a short video training of configuring mibspi with HALCoGen.

    training.ti.com/hercules-tutorial-mibspi-overview
  • Hi,

    Thanks for you reply.

    We have been using SPI in compatibility mode with following settings.  

    I am trying to read my Device ID using register read command. I can see my SCLK, CS, and DIN signal going into ADS1158 as they are supposed to be. But I haven't been able to read anything on DOUT signal.

    Doesn't TI have any more specific support regarding ADS1158 and interface than that generic mibspi video? (that video was very helpful in early stages to get started! Thanks for that!)  

    These are the SPI settings I am using. 

    Any kind of help would be greatly appreciated. 

    Thanks