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.

Sending Data from DSP to CCS using a XDS100V1

Hi,

I am using XDS100V1 and a Delfino F28335. I want to send a (Double Data type) from the DSP to Code composer at a rate of 40KHz.(40K*32bit=1.28M bit/s).

My question can this be done if I am developing a non-bios application and how .

Thank you,

Nezar

  • Nezar,

    Two notes:

    1) For C2000 there is no hardware specific support for double precision 64-bit floating point variables.  Instead, the compiler will somewhat inefficiently generate support for double precision floating point numbers.  To do this you'll need to use long double.  See the following:
    http://e2e.ti.com/support/microcontrollers/tms320c2000_32-bit_real-time_mcus/w/design_notes/1878.floating-point-double-precision-on-c28x-fpu.aspx

    2) In CCS you can increase the speed that variables are updated in the watch window/graph windows.  The master setting for this in CCS5 is at Window->Preferences->Code Composer Studio->Debug->Continuous Refresh Interval.  However, CCS will allow you to type in refresh rates that it cannot hit, so if you choose a high refresh rate be aware that CCS crashes can occur.  I think you'll have difficulty getting the rate to 40kHz.  To effectively graph what you want I'd recommend:
    (A) if you only need to capture say 1024 data points at 40kHz data rate infrequently, I would recommend buffering the data locally on the F28335 and then you could graph the buffer via CCS at a slower rate.  (preferred)
    (B) if you need a continuous stream of 40kHz data, the xds100v1 is likely not adequate for this.  You'll need to upgrade to a faster emulator and even then, 40kHz may prove to be difficult.
    (C) buffering + SCI(UART) or SPI can be a good solution longer term.


    Thank you,
    Brett

  • Thank you very much this was a comprehensive,complete and clear answer.

    Regards,