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.

TMS320F280049: Example for transferring ADC result buffer to RAM buffer using DMA

Part Number: TMS320F280049
Other Parts Discussed in Thread: C2000WARE,

Hi C2000 team.

Could you provide an example transferring a ADC result buffer to a RAM buffer using DMA.

BR

Anders Lange

  • Anders:
    I looked for an example in C2000Ware, and I could not find one.

    However,
    processors.wiki.ti.com/.../C2000_Multi-Day_Workshop

    has a DMA lab (for F2837x) that could potentially be "ported" to the F280049 environment.

    Hopefully, that helps.
  • Hi Anders,

    The following example was suggested:

    adc_soc_continuous_dma     

    which can be found in C2000Ware here:

    C:\ti\c2000\C2000Ware_1_00_05_00\device_support\f2837xd\examples\cpu1\adc_soc_continuous_dma\cpu01

     

  • Hi Brian.
    Thanks for a quick reply.
    The Driverlib for the TMS320F2837xD is different than the driverlib for the TMS320F280049.
    That means that examples for the TMS320F2837xD cant be used.

    BR
    Anders
  • Anders,

    What difference are you referring to? The example Brian referenced uses bit-field structure header files which are provided for both F2837xD and F28004x. Any difference between them should be minor and related to hardware differences (e.g. F2837xD ADC supports 16-bit mode while F28004x does not).

    If you are having trouble finding the header files for F28004x, they are found under:
    C:\ti\c2000\C2000Ware_1_00_05_00\device_support\f28004x

    Whitney
  • The issue was found.

    After adding the #PRAGMA to make sure the buffers was placed in GSRAM the DMA worked as described:

    #pragma DATA_SECTION(TestSource, "ramgs0");

    #pragma DATA_SECTION(TestDestination, "ramgs0");

    BR

    Anders Lange