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.

ADS1298 connection with MSP430

Other Parts Discussed in Thread: ADS1298, MSP430F5438, ADS1299

Do you have ay source code to Ads1298 for MSP430?

my email: asusm6nb@'gee'mail.com

  • **TI EDIT February 20th 2019; FOR GENERAL ADS129x ASSISTANCE, PLEASE SEE NEW BIOPOTENTIAL FAQ LOCATED HERE**

    I have attached some of our source code for the ADS1298. Note that this code will not compile, as it needs to be modified to work in your specific application. However, it should point you in the right direction to get your ADS1298 configured and running.

    File summaries:

    init_ADS1x9x.c,  ADS1x9x_Device_Status.c, ADS1x9x_Functions.c, and ADS1x9x_SPI_Functions.c: These files provide functions for initializing and operating the ADS1298. These files should give you a good idea of the flow required to configure the device.

    F5438_ADS1x9x_Device_Interface.c, F5438_Modular_EVM_IO_Functions.c: These files provide some of the application-specific functions that support the code in the ADS1x9x files. This is just an example of how we implemented it on our MSP430F5438 board, you will need to setup the pins, interrupts, etc. for your specific application.

    ADS1x9x_Main_Shell.c: This is a shell for the main file of the project. It should give you an idea of how the functions provided in the above files are used to operate the device.

     

    I hope this helps,

    Luke Duncan

     

    ADS1298_Code.zip
  • Why this file(ADS1298_Code.zip ) does not  #include "msp430x54x.h"??  

     Do you have the complete file for MSP430F5438?

  • Please keep in mind that the code I posted for the MSP430 and ADS1298 is not meant to compile. It is meant to give you an idea of the flow required to configure and use the ADS1298. You will need to rewrite portions of the code (especially the code that deals with specific IO pins, which will likely be different in your application). You will also need to add the includes for msp430x54x.h and any other files as needed for your specific application. Finally, you should include your own support functions such as for the SPI interface so that you can communicate with the ADS1298.

    Sorry, the code I posted is for a platform that is under heavy development and is not ready to be released, so I can not give you a complete project. However, we will be releasing the complete source code when the product is released.

     

    Regards,

    Luke Duncan.

  • Dear Sirs,

    Please point me to the source of routine that actualy reads data from ADS1298 to MSP430 via SPI. I've carefully read ADS1x9x_SPI_Functions.c from sources above - but can't find the point where something like "data = *(ADS1x9x_SPI_RX_BUFFER);" is done. May be I'm not too familiar with C, but how does the line " while (ADS1x9x_Interrupt_Flags->SPI_Data_Received_Flag == CLEAR);" read data? It seems  that somewhere should be an ISR (or something else) that fills the read buffer with the data incomming from ADS1298.

    Regards,

    Ilia V. Davidov

     

  • Hi Ilia,

    The line " while (ADS1x9x_Interrupt_Flags->SPI_Data_Received_Flag == CLEAR);" provides a little delay so that the recieve buffer is filled before continuing through the next steps of the code.  The last line in returns conversion results to the ADS1x9x_Data array in the calling function found in ADS1x9x_Main_Shell.c. 

    for (i = 0; i < ADS1298_DATA_LENGTH; i++)                        // Read ADC Data (status + all channels)
       {
        ADS1x9x_Data [i] = ADS1x9x_SPI_Burst (device_slot, SPI_TEST_DATA);
       }

  • May I ask a stupid question please?

    I have looked into the files, in init_ADS1x9x.c, the default value for Config2 is 0x20, but looking back the datasheet of ADS1298, BIT 5 must always be set to '0', so why the value here is set to 0x20 please?

    And also, what are we expected to input as device_slot please

  • Dir sir,

    I am graduate student and I am developing EEG acquisition device using ADS1299 and MSP430.

    Above posts are posted 3 years ago.

    Is there any updated codes for ADS1299 and MSP430?

    I don't know how to program MSP430 for ADS1299.

    Please help me. Thanks.

  • Hi Seung Chan,

    I am on the same situation than you, I have the source code they gave me and will go over it. I started a topic a year ago but the project got suspended and until last week I kept asking stuff. The link is this http://e2e.ti.com/support/data_converters/precision_data_converters/f/73/t/177852.aspx . You can contact me to efraingaxiola@gmail.com and we can help each other. I am just starting with the MSP430 connection with the ADS1298, I have nothing functional yet.

    Regards,

    Efrain

  • Dear Efrain,

    Thanks for your reply.

    You also develping wireless ECG system. I am developing wireless EEG acquisition system.

    I think so. we can help each other.

    I studied ADS1299 evaluation board well and now I am just starting MSP430 study.

  • Hi, Seung Chan,

    I have attached a document that may be helpful for you. Please keep me posted about your progress, specially with the use of the source code provided on this thread. I will do the same. Feel free to contact me to the email on the file.

    Efrain

    Interfacing the MSP430 with the ADS1298.pdf