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.
Tool/software:
Hi,
Does anyone know of any example code + library for ADS1120 ? I have LP-MSPM0G3507 and I work in CCS Version: 12.8.
I found example code for the ADS1120 on the product folder under the "Design & development" section:
https://www.ti.com/product/ADS1120#software-development
but this isn´t what I´m looking for.
Thank you
Jan
Hi Jan,
This is the only available example code for the ADS1120.
Although the example code was developed for the MSP430, the functions (such as ReadRegister, WriteRegister, ReadData etc. in the .c file) and command/register definitions (macros in the .h file) are agnostic to the microcontroller being used.
You can simply use the Sysconfig tool in CCS to configure the SPI peripheral on your MSPM0G3507 launchpad and use the driverlib functions (such as DL_SPI_transmitData8, DL_SPI_receiveData8, etc) to send and receive data through the SPI port and communicate with the ADS1120.
The ADS1120 data sheet shows detailed descriptions on how to read and write to the ADS1120 registers to configure the device and read data through SPI:
You can also access the MSPM0 academy through resource explorer for additional SPI code examples using the MSPM0G3507 launchpad:
Best Regards,
Angel