975 views|0 replies

1w

Posts

16

Resources
The OP
 

【Jihai APM32F407】11, analyze ADC and DMA routines [Copy link]

 

The reason I run this routine is because I wrote it into the plan when I made the evaluation plan.

First I ran the example program and found that it compiled and ran smoothly.

I looked at the datasheet: ADC is on PA0

And DAM in the reference manual:

The program registers DMA when ADC is initialized:

    ADC_EnableDMA(ADC1);
    ADC_EnableDMARequest(ADC1);

Then the DMA initialization is just to store the number in a variable, and this number is converted by ADC (uint32_t) & ADC1->REGDATA;

I think DMA is a bit troublesome for this program. Can it be directly retrieved after conversion?

DMA is a porter, a porter, and a stick soldier. It takes a long piece of code to use it.

I think DMA is very useful in USART communication.

After all, early microcontrollers did not have DMA.

But I want to thank this example, one example, DMA and ADC are evaluated.

This post is from Domestic Chip Exchange
Personal signaturehttp://shop34182318.taobao.com/
https://shop436095304.taobao.com/?spm=a230r.7195193.1997079397.37.69fe60dfT705yr
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list