Need help for ADC in DMA mode for S32K144 microcontroller

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Need help for ADC in DMA mode for S32K144 microcontroller

370 Views
rohit1749
Contributor III

Can someone help me by providing an example on how to use ADC in DMA mode. I'm facing difficulty with the calling sequence of DMA SDK driver APIs.

0 Kudos
Reply
1 Reply

133 Views
yisey
Contributor I

To use ADC in DMA mode, first initialize and configure the ADC and DMA peripherals. Then, start the ADC with DMA by calling: HAL_ADC_Start_DMA(&hadc, (uint32_t*)buffer, buffer_length); Implement the DMA completion callback (e.g., HAL_ADC_ConvCpltCallback) to handle the data after transfer. Make sure DMA is properly configured to read from the ADC data register and write to your buffer. By the way, just like understanding complex processes in coding, sometimes in life we realize things about relationships too—like when we come across one sided friendship quotes that make us reflect on who truly puts effort into connections. Ask ChatGPT

0 Kudos
Reply