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.

Transferring ADC Data via Ethernet to Laptop

Hi Ti,

I recently purchased the TM57LX launchpad. 

I am wanting to use it to sample the output of a sensor at 1.5MSPS, 12bit resolution, and then send the data across to a laptop.

Would ethernet be the only way of transferring the data at a high enough rate? 

If so could you please help me with setting up the EMAC to access the ADC buffer and send it across in ethernet packets?

I have looked at the loopback example but am unsure of how to modify this to instead send packets to an external source (such as a laptop).

Any help would be much appreciated as I am quiet new to micro-controller programming. 

Kind Regards,

Daniel Mason

  • Hi Daniel,

    For transfering data over ethernet, please have a look at the lwip example at this link:

    processors.wiki.ti.com/.../HALCoGen_Ethernet_Driver_and_lwIP_Integration_Demonstration

    In regard to other protocols that might work, what is the data rate you need to support? Remember that even with Ethernet there will be overhead of getting data from the ADC buffers and out of the Ethernet port that will add some latency. In addition, once the data reaches the PC, you will need to manipulate the data into meaningful values for the PC which will also add overhead/latency. Use of the DMA and interrupts on the uController side will help but you would still need to accommodate the PC handling of the data.

    Regards,
    Chuck Davenport
  • Hi Chuck,

    Is the lwip protocol necessary? I was under the impression you could send packets straight to a designated mac address without needing to use protocols like TCP/IP or lwip. 

    If I am sampling at a rate of 1.5MSPS at 12 bit resolution, I guess I need a data transfer rate of 4.5Mbps? 

    Is there any other way to transfer the data other than ethernet which will have a higher enough transfer rate? 

  • Hi Daniel,

    I think the EMAC is probably your best chance at getting the results you want.

    From the description, the example lwip application includes UDP client support as well but this may need to be brought up from the driver level in the stack. Unfortunately, this is the only example that I am aware of related to the EMAC. It should be possible to do as you say and communicate directly using the MAC addresses. Have a look at this thread which has some code posted where they are doing this.

    e2e.ti.com/.../1547167