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.

CCS/TMS570LS1224: TMS570LS1224 : ADXL345 SPI gyroscope sensor

Part Number: TMS570LS1224

Tool/software: Code Composer Studio

Hello,

I need help in getting my gyroscope to work with SPI interface The datasheet is here: https://www.analog.com/media/en/technical-documentation/data-sheets/ADXL345.pdf

My microcontroller is a TMS570LS1224.

I am trying to figure out how to read the X, Y and Z data from this device. I have CS mapped to Pin J9.3, MISO mapped to Pin J9.7, MOSI to Pin J9.6 and CLK to J6.7.




Thank You!

  • Hello,

    TI does not provide driver for communication between  Hercules MCUs and ADXL345 . You should write your own driver following the datasheet of the device.According to datasheet you can use both I2C and SPI interfaces. HALCoGen generates APIs for both Hercules MCUs modules and you can use this APIs while following the datasheet of ADXL345.

    MIBSPI1NCS[0] is exposed to J9.3
    MIBSPI1SIMO is exposed to J9.6
    MIBSPI1SOMI is exposed to J9.7
    MIBSPI1CLK is exposed to J6.7