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.

Data logging using UART/SPI/ USB

Other Parts Discussed in Thread: CONTROLSUITE

Hi,

This was my question in a another forum

http://e2e.ti.com/support/microcontrollers/c2000/f/902/t/389338

"

I am using the GUI instaspin F2806X.

My aim is to store every sample of current(Id, Iq), voltage(vd,vq), torque, rotor position,speed atleast 250 samples of each when my system operated at a switching frequency of 5KHz.

I have seen there are plots for current and torque which uses 50 or 100 samples of the logged data inside the microcontrollers. If I want to increase the number of sample to be logged, is there any way to extend memory?

or is there any way to read the data every switching period and store it in a file using GUI (when I tried this I am not able to do it every switching period as the transfer delay to gui is more).  

Also if I use XDS560V2 , is ther any advantage that I could get for data logging?

"

I got a reply that  I can use UART, SPI or USB for this purpose instead of JTAG. If so, is any body can guide me with some example for this?

Thanks & Regards,

Rathinavel

  • Hi Rathinavel,

    rathinavel j said:
    I got a reply that  I can use UART, SPI or USB for this purpose instead of JTAG. If so, is any body can guide me with some example for this?

    The examples for these peripherals are already available in controlSuite. You just have to integrate the variables & peripheral library to busrt the data through SCI or USB. My suggestion would be to use SCI, as it would be easier to implement.

    Regards,

    Gautam

  • Hi Gautam,
    Thanks for the reply.
    But I have seen in Control Suite for USB bulk data transfer. But that has been described as,

    "//! This example provides a generic USB device offering simple bulk data
    //! transfer to and from the host. The device uses a vendor-specific class ID
    //! and supports a single bulk IN endpoint and a single bulk OUT endpoint.
    //! Data received from the host is assumed to be ASCII text and it is
    //! echoed back with the case of all alphabetic characters swapped.
    //!
    //! UART0, connected to the FTDI virtual COM port and running at 115,200,
    //! 8-N-1, is used to display messages from this application. "


    So the Data transfer speed is again limited to 115200 b/s ??
    I think in SCI also the limit is 115200 b/s?

    I feel , my aim can be acheived only with USB 2.0 or more with Full speed data transfer or I have a RAM with sufficient memory to buffer inside the microcontroller?

    Correct me If I am wrong.

    Thanks & Regards,
    Rathinavel
  • But I have seen in Control Suite for USB bulk data transfer.


    Instead try using : usb_dev_serial project that can be found here
    C:\ti\controlSUITE\device_support\f2806x\v140\F2806x_examples\usb_dev_serial

    So the Data transfer speed is again limited to 115200 b/s ??
    I think in SCI also the limit is 115200 b/s?

    Yes, this would be the limitation.

    Regards,
    Gautam
  • You're Welcome! Just that please post all C2000 related queries in the C2000 forum.

    Regards,

    Gautam

  • Sure Gautam. I will make note of it.