Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed from November 25 through December 2. Thank you for your patience.

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.

TMS320F28379D: IMU Sensor Integration

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hi, I am trying to interface an IMU sensor, ADIS 16477. I was unable to find any header and source code for the sensor in the internet which is compatible with c2000 MCUs family. Can anyone help me to build a working header and source code for the sensor?

Thank You

  • Hello,

    Have you already referred to our C2000Ware SPI examples? They can be found at C:\ti\c2000\C2000Ware_5_02_00_00\driverlib\f2837xd\examples\cpu1\spi. These examples can be used as a reference or starting point for your project. 

    • A good one to start with may be the simple loopback SPI example (internal loopback means the SPI TX and RX are tied together internally so you can test the F2837xD SPI module independently of your other device(s)). 

    When developing your program, I would be sure to check the sensor datasheet for the data/clock format (for example, chip select behavior, clock mode, etc.) that the device is expecting so that you can match it with F2837xD SPI settings (assuming this will be the controller/master device). You can also refer to our TRM SPI chapter for details of the SPI module, and the datasheet for SPI timing diagrams. Let me know if you have any other specific questions! Hope this helps to start!

    Best Regards,

    Allison

  • Hello Allison, thank you for your reply. I have successfully integrated the sensor to MCU and I am able to read the sensor data. 

    Now I am facing one more issue with regards to protocol. The sensor uses the SPI protocol to send data, I am trying to send this data to a host computer using SCI/UART, but there seems to be a conflict between these two protocols, due to which wrong data is being read. Is there way to optimize such that both the protocol work independently. 

    Thank You

  • Hi Deepan,

    So glad to hear you successfully integrated the IMU!

    Could you please expand a bit on what issue you are seeing and what steps you have taken already to debug? What do you mean by "conflict", are you referring to conflicting timings/ISRs? Where are you reading incorrect data and what is the nature of the incorrect data? Could you explain how you are passing data between SPI and SCI?

    Best Regards,

    Allison