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.
Hi Everyone,
I am trying to use 430Boost-ADS1118 on the MSP430FR5969 for the temperature reading. There is a demo that i found from the ADS118 Firmware but that program is for MSP430G2553. What are the changes i have to make inorder to use the same program for MSP430FR5969. I already changed the link command file to MSP430FR5969 and also changed the code a bit according to the correct pins used. But still it is showing errors. What are the other changes that i am supposed to do if i want to use the 430Boost-ADS1118 on the MSP430FR5969? Could some help me on this?
Thanks and Regards,
Chintu
Hi Chintu,
There will be some different for the register use between FR5969 and G2553.
I advise you to refer to the SPI communication code and rewrite the configuration and setting code by yourself.
https://dev.ti.com/tirex/explore/node?node=AITPWIl5axu0gZLl0.w09g__IOGqZri__LATEST
You can choose register level or driverlib level code.
Hi Eason,
Thanks for the fast reply. I had some more questions on it.
Why do you recommend the SPI interface here instead of UART?
The file i downloaded was ADS1118 Firmware demo and i am still trying to understand the code. Could you kindly help me with the steps by mentioning it ? What are the files that needs to be changed in it? I am a beginner in microcontroller programming. I have attached the file to this email.
Thanks & Regards,
Chintu
Hi Chintu,
You can see that ADS1118 only support SPI not UART. I think UART is used to communicate with PC.
Here is the code you need to change:
I advise you to build the code by yourself. First make SPI to communicate with ADC successfully. Here is all the functions you need to check and rewrite:
Hi Eason,
I have a doubt on the UART communication part. I can only find the UART.h hearder file in the LCD_Driver.c. Does it mean that if i were to use only the LCD Screen on the 430Boost-ADS118 Boosterpack to display something and not the other components like Thermocouple or the buzzer, can i do it without establishing the SPI Interface?
I have attached the program to this message. Could you take a look at it and let me know what are the modifications that i should do to establish a connection with the LCD Screen?
Thanks and Regards,
Chintu
SPI is used to communicate with ADC
UART is used to communicate with LCD. You can this part of code.
Hi Eason,
I have changed the code and now it is running but i dont see anything on the lcd display. I have attached the code to this message as well. Could you kindly take a Iook at it and see if there is anything wrong.
I have made the following changes in the code. The changes have been made in both UART.c as well as LCD_Driver.c file.
this are the pinout changes made:
this is the whole program file.
Thanks and Regards,
Chintu
Hi Chintu,
You can see that you choose the wrong UART register(UCA0 or UCB0?)
To make LCD work, I think you need to first configure the UART to make the right port to output the signal you want. You can use an oscilloscope to check it.
Eason
Hi Eason,
I configured it the right port and it still isnt working.
Thanks & Regards,
Chintu
What about refer to the UART code examples for FR5969:https://dev.ti.com/tirex/explore/node?node=AEU.rmYlGOlt8rcOU34sqg__IOGqZri__LATEST
**Attention** This is a public forum