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.

ADS130E08 Sample Code

Other Parts Discussed in Thread: ADS130E08, ADS130E08EVM-PDK, LM3S3748, ADS131E08, TIDA-00753

Does anyone have sample setup and conversion SPI code for the ADS130E08 that they would like to share. I am interested in a continuous conversion / read application of the ADS130.

 

 

Thanks

  • Hi Geoff,

    I'm not sure that we have anything outside of the code we provide with the ADS131E08EVM-PDK.  What sort of processor are you using and what application are you working on?

  • Tom,

    I didn't find any sample / source code in the ADS130E08EVM-PDK download - only the executable application code. I am currently using a LM3S3748 evaluation board tied to the ADS130E08 module from the EVM. I am using it in an instrumentation logging application. If you have the ADS130/131 setup/acquisition code from the EVM that would be helpful.

     

    Thanks,

    Geoff

     

  • Hi, I am trying to use the ADS130E08EVM-PDK right now.  I messed around with the jumpers and now I am trying to get back to the default settings to use the evaluation software.  Can you tell me what are the jumper settings for JP8, JP9, and JP10?

    I am able to get the software to synchronize with the hardware, but every time I push the button to acquire data, the program is stalled.  0% progress, and the message "DSP is collecting data" appears at the top.  Thanks.

  • Hello Tom,

    I would like to get sample code too.

    For witch processor is not important. To see witch registers has to be  set and timing is important.

    So it could be any c-source You have.

    regards

    Joerg

  • We can offer the source code for the ADS131E08 evaluation module (works with C5507/9 DSP).  This might be useful for reference, but not for end-equipment use.

    Let us know if you would like it and if we can use the email address in your profile to send the information to.

  • Hello Greg,

    that would be nice. Yes You can use the e-mail address

    Is it possible to get the Evaluation Board with ADS131E08 without the Dsp board?.

    Thanks a lot

    regards

    Joerg

  • Mr Boge -

    You should receive an email with the requested information shortly.

    Regarding the ADS131E08EVM, the EVM come as part of the -PDK, which comes with the DSP board.  They are not sold as separate items.

  • Hi Greg,

    I am also looking for such examples,

    Thanks in advance,

    Rubbi

  • Rubbi -

    You should receive an email with more information.

    NOTE:  This is the source code for the "EVM" and not necessarily example code.  It is also for the ADS131E08, not the ADS130E08.

  • Hi Greg,

    Could you send me also code for c5507/09?

    Thanks in advance,

    Rubbi

  • Hello Tom

    Is there any Linux driver for the ADS131e08EVM. I am building a Power Grid data acquisition system using an ARM processor running UBUNTU 13.04.

    If not can I directly use the USB protocol to reach the ADS131e08 register through the MMB0 board or do I need to talk directly to the ADS131e08 board via the SPI interface. 

    I am working with the usb4java to connect to USB devices. 

    Pls treat as urgent.

    Sunny 

  • There are no Linux drivers available for the ADS131E08.

    The communication to the ADS131E08 currently using a protocol called Styx running on the C5509 DSP.  The firmware is available if you would like it to review/use as you see fit.

    You can also remove the EVM from the motherboard and connect it to your ARM processor directly via wires.  The schematic and connections are shown in the schematic located in the user guide.

  • Thank you for your response. I would love to have the Firmware for the ADS131E08 EVM.

    In addition, can i have the messaging structure structure for communicating with the ADS131E08 EVM using Styx protocol.

    I have already download the Java implementation of Sytx.

    Pls i would rather use the Styx protocol to communicate with the EVM board.

    Connection to the ARM Board would be the last resort.

    Sunny Osaje

  • You should receive an email with the source files that were requested.

  • Dear Greg

    Thank you for the source files. I will get back to as we work with them.

    Sunny

  • Hi Greg,

    I'm looking for ads130e08 sample code too. Can you to send sample code?

    email: khapd.mlab@gmail.com

    Thanks so much.

  • We do not have any sample code for the ADS130E08. 

    You should receive an email that contains information on the ADS131E08EVM-PDK source that you may find useful and can reference for your development efforts.

  • Hi Greg,


    I'm interested in the sample code too. We're considering ADS131E08 and ARM for a metering device design.

    Can send to my registered email?


    Thanks

  • For clarification:

    The code referenced above is not sample code per say.  It is the firmware code that runs on the C5507/9 DSP that is used with the evaluation platform.


    You will receive an email with this information shortly.

  • Can i have the sample code we are evaluating ads130e08 for our project. 

  • Mr Magdum -

    As noted above, please be aware that this is not sample code, in that it is intended for evaluation purposes only and doesn't have application to end products.

    You should receive an email with further information

  • Hello Greg,

    I'm trying to implement the SPI communication, and I'm not able to get data from the ADS, can you share the  example code with me?

    Thank you very much

  • Hello Greg

    I am trying to connect to the ADS130E08 to my Java application using JStyx for Linux, on the java side.

    Since the EVM Board runs a Styx protocol (from your previous conversations). What then is the port number of the ADS130E08 EVM Styx Server running on the Board. The application is hosted on a Linux embedded device. Or better still, how  does one connect to the Styx server on the EVM Board.  

    The JStyx Connection requires a TCP/IP host name and Port Number.

    StyxConnection conn = new StyxConnection("localhost", PORT);

    Sunny

  • Sunny -

    Sounds like the JStyx may work a little different than our implementation.  We use a dll and LV wrappers around those calls to communicate.  We can provide the source for you to review/modify, but unfortunately, the code is developed for evaluation purposes only, and we cannot support any modifications outside that purview.

    Let us know if you need the source.

    Greg

  • Greg

    Thank you So much for your response. I would seriously need the source to your implementation. However i have seen some source, they are written in Labview. We do no have Labview. But if the source you refer to are in other format, please provide them.

    I was thinking, that given the volume of comments on this same subject matter for the device. Would this not be a good thing to have someone within Ti, take out a couple of hours to create something in Java or Python that can be used to directly relate with the Styx implementation on the board.


    I worked over one whole weekend to try to use a work around provided by people, one was in german (Which i translated), another the link: http://apdev.blogspot.com/2013/10/ads1278evm-pdk-in-linux.html. This one is for a different board. Pls help is needed here. We are currently using this in a project.

    Sunny

  • Greg

    I am trying to use and Arduino micro to control the ADS131E08 over the SPI protocol. Is this OK?. Do I have to unplug the Converter board from the base board?

    Sunny

  • There is a potential conflict if the MMB0 motherboard outputs are in conflict with the Arduino micro.  You would want to make sure this is not the case.

  • Greg

    Thank you so much. I am doing a board to sit the ADC daughter car only. Would it necessary to apply +5V and +3.3V before the board will work. Would just +5V be sufficient for the daughter card.

    Sunny

  • The schematic of the EVM is included in the user guide for reference.  You can see how all the signals are connected from the analog, digital, and power headers.  5V and 3.3 and/or 1.8V are needed for the EVM.

  • I have Setup and Read code written for an LPC1768 device in C   It's really basic but dose have classes for configuring the GAIN of each channel etc..   If anyone is interested let me know and I'll post a link for it

  • Hi Jon,

    It would be great if you can share the link.

    Thanks,

    Vijay

  • http://microhydroelectric.ca/store/micro-hydro-control-automation/electronic-load-controller

    Link to the sample code is on that page... If you have any questions let me know..   My phone number is also there.. Feel free to call me if I can help with anything.. Timezone here is PST!! :)

    Kind Regards,

    Jon

  • Hi All,

    Where can I find Programming Guide or source code for ADS13xE08 board.

    I am using SPI communication.

    Thanks,

    Stephen

  • Hi Stephen -

    You should receive an email to the address in your profile with information to download the firmware source files.

  • Hi ,

    Could you send me also code for c5507/09?

    Thanks in advance,

  • Hello Greg,

    that would be nice. Yes You can use the e-mail address

    Thanks a lot

    regards
  • Hello Vijay -
    You should receive an email to the address in your account containing further information.
  • Hello Hrioua-
    You should receive an email to the address in your account containing further information.
  • Hi Jon,
    It would be nice if you post me a link for a code written for the LPC1768 device in C.
    Thanks in advance,
    Hrioua
  • Hi Greg,
    thank you for your reply.
    Could you send me a code for c5507/09? I have not yet received any email.

    Thanks in advance,
  • Ok, I'll post it as soon as I get into the office

    On another note we had issues with our ADS131e08's burning out when over saturating the inputs while running at a high gain, current was limited to 1/10'th of the data sheets recommendation but this appears to be invalid when using the PGA, please design accordingly or if anyone has ideas why this is happening please let me know.

    The Ads131e08 is still by far the best part out there and were still using it on all our new stuff but it would be nice If it was a bit tougher or at least had documented behavior

    Jon

  • Hi Jon,

    would you be willing to share with us (TI) under which conditions you experienced damage to the ADS130E08 (maybe in a separate post)? We would like to understand that in more detail.
    As long as you limit the input currents to save levels there should no damage occur to the device. The PGA should have no influence here.

    Regards,
  • Hello Hrioua -
    Can you please send us the preferred email? We currently cannot access the email address in the system.
  • http://flexscada.com/ADS131e08_ads13XXX_sample_code.zip

    Right now we use these in two main products ( Flexs Q3 and Flexs Q4 ) for remote site monitoring, scada systems and energy monitoring.. The PGA makes it a nice choice for universal inputs that can read multiple types of CT's and analog sensors.

    Besides what I originally posted, they have been an excellent choice for us and we are continuing to use them in all of our new daq products.

    Kind Regards,

    Jon Mundall

    P.S. some structs that may also be useful

    #pragma pack(push,1)
    
    
    
    typedef struct ADC_CONFIG_1
    {
     uint8_t NC_HIGH:1; // must be set 1
     uint8_t DAISY_IN:1; // zero, disables, default
     uint8_t CLK_EN:1;// clock output, default = 0, disabled
     uint8_t NC_HIGH1:1;
     uint8_t NC_LOW:1;
     uint8_t DATA_RATE:3;
    } ADC_CONFIG_1;
    
    
    typedef struct ADC_CONFIG_3
    {
     uint8_t PDB_REFBUF:1;
     uint8_t NC:1;
     uint8_t VREF_4V:1;
     uint8_t NC1:1;
     uint8_t OPAMP_REF:1;
     uint8_t PDB_OPAMP:1;
     uint8_t NC2:1;
     uint8_t NC3:1;
    } ADC_CONFIG_3;
    
    
    
    
    
    typedef struct ADC_CHxSET
    {
     uint8_t PowerDown:1;
     uint8_t Gain:3;
     uint8_t NC_ZERO:1;
     uint8_t MUX:3;
    } ADC_CHxSET;
    
    
    typedef struct ADC_RESULT_24
    {
      uint8_t IN8P_FAULT:1;
    	uint8_t IN7P_FAULT:1;
    	uint8_t IN6P_FAULT:1;
    	uint8_t IN5P_FAULT:1;
    	uint8_t IN4P_FAULT:1;
    	uint8_t IN3P_FAULT:1;
    	uint8_t IN2P_FAULT:1;
    	uint8_t IN1P_FAULT:1;
    	uint8_t IN8N_FAULT:1;
    	uint8_t IN7N_FAULT:1;
    	uint8_t IN6N_FAULT:1;
    	uint8_t IN5N_FAULT:1;
    	uint8_t IN4N_FAULT:1;
    	uint8_t IN3N_FAULT:1;
    	uint8_t IN2N_FAULT:1;
    	uint8_t IN1N_FAULT:1;
    	uint8_t GPIO;
      int32_t ch1:24;
    	int32_t ch2:24;
    	int32_t ch3:24;
    	int32_t ch4:24;
    	int32_t ch5:24;
    	int32_t ch6:24;
    	int32_t ch7:24;
    	int32_t ch8:24;
    } ADC_RESULT_24;
    
    
    typedef struct ADC_RESULT_16
    {
      uint8_t IN8P_FAULT:1;
    	uint8_t IN7P_FAULT:1;
    	uint8_t IN6P_FAULT:1;
    	uint8_t IN5P_FAULT:1;
    	uint8_t IN4P_FAULT:1;
    	uint8_t IN3P_FAULT:1;
    	uint8_t IN2P_FAULT:1;
    	uint8_t IN1P_FAULT:1;
    	uint8_t IN8N_FAULT:1;
    	uint8_t IN7N_FAULT:1;
    	uint8_t IN6N_FAULT:1;
    	uint8_t IN5N_FAULT:1;
    	uint8_t IN4N_FAULT:1;
    	uint8_t IN3N_FAULT:1;
    	uint8_t IN2N_FAULT:1;
    	uint8_t IN1N_FAULT:1;
    	uint8_t GPIO;
      int16_t ch1;
    	int16_t ch2;
    	int16_t ch3;
    	int16_t ch4;
    	int16_t ch5;
    	int16_t ch6;
    	int16_t ch7;
    	int16_t ch8;
    } ADC_RESULT_16;
    

  • hi Greg,
    please send me an e-mail to xxx@hotmail.com .
    thanks
    Hrioua

  • Hello Hrioua -
    You should receive an email to the requested address shortly.
  • Hello Greg,
    I would like to get the code and any available sample code.
    Thanks,
    Gonzalo
  • Hello Mr Estivariz -
    You should receive an email with the requested information shorty to the email address in your profile.
  • Hi
    could I also get this code?
  • Hello Mr Gardiner -

    You should receive an email shortly with the requested information to the email specified in your account.

1 2