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.
Tool/software: Code Composer Studio
Hi
I need to used adc with DMA configured. Please someone tell the steps.
I'm a beginner
Hello,
I suggest you to start with ADC example to check that you are taking control to ADC and can read data (the examples are in HALCoGen install folder and you can find how to set the MCU for this examples ibn HALCoGen Help). Then you can try with some example for DMA - I don't see DMA example for this MCU but it is easy to port from different MCU example.
In general:
ADC can generate request to DMA module in two ways:
- DMA request for each conversion results;
- DMA request for a fixed number of conversion results. (Section 22.6 in device TRM)
You have to configure DMA control packet for DMA channel used (for example see this thread: e2e.ti.com/.../804017 ).
After configuring packets you have to assign the packet to the DMA channel and enable the channel. Also channel must be assigned to a DMA request line for ADC.
Here you can find a discussion about ADC with DMA and tehre is an example code in this thread: ADC DMA - Arm-based microcontrollers forum - Arm-based microcontrollers - TI E2E support forums
Best regards,
Miro
Hello,
Here it is: TMS570LC4357: ADC DMA - Arm-based microcontrollers forum - Arm-based microcontrollers - TI E2E support...
Best regards,
Miro