Need help for ADC in DMA mode for S32K144 microcontroller

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Need help for ADC in DMA mode for S32K144 microcontroller

371 次查看
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 项奖励
回复
1 回复

134 次查看
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 项奖励
回复