Atmel START: Using the SAM E54 Event System with RTC, ADC, USART and DMA - Step 3
Step 3.1: Reconfigure existing project by configuring DMA driver
It's likely that, at some point in your application development, you will want to add additional drivers to your project. This step shows you how to add a DMA driver to transfer ADC conversion results to the USART.
3
Configure DMA with these settings:
- Configure COMPONENT SETTINGS
- Driver - HAL:HPL:DMAC
- DMAC ENABLE
- Debug Run - 'Enable'
- CHANNEL 0 SETTINGS
- CHANNEL 0 SETTINGS - 'Enable'
- Trigger action - 'One Trigger required for each beat transfer'
- The trigger is generated, indicating transfer.
- Trigger source - 'ADC1 Result Ready Trigger'
- The trigger source will be the ADC1 Result register (ADC conversion value resides in the ADC result register).
- Channel Event Output - 'Enable'
- Event Output Selection - 'Event generation disabled'
Click image to enlarge.