完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
|
硬件平台:STM32F429I-DISCORVERY
软件平台:KEIL MDK5.10 DMA知识点:直接内存访问(DMA)是用来以提供外设和内存、内存和内存之间的高速数据传输的。数据可以在没有任何CPU干预下通过的DMA进行传输。这使得CPU资源更倾重与其他操作。 DMA控制器是一个复杂的总线矩阵架构,结合了功能强大的双AHB主总线架构与独立的FIFO,以优化系统带宽。两个DMA控制器共有16个数据流(stream),每个数据流可以编程与规定的通道中的一个搭配。 在STM32F429I-DISCO board中,由于串口2被L3GD20和液晶数据线占用,所以串口1很方便,而且还留了2个孔外接。 This example describes how to use the ADC3 and DMA to transfer continuously converted data from ADC3 to memory. The ADC3 is configured to convert continuously channel13. Each time an end of conversion occurs the DMA transfers, in circular mode, the converted data from ADC3 DR register to the ADC3ConvertedValue variable. To get the maximum ADC performance (2.4 MSPS, at 2.4V to 3.6V supply range), the ADC clock must be set to 36MHz. As ADC clock is equal to APB2/2, then APB2 value will be 72MHz which lead to maximum AHB (System clock) at 144MHz. Since the sampling time is set to 3 cycles and the conversion time to 12bit data is 12 cycles, so the total conversion time is (12+3)/36= 0.41us(2.4Msps). The converted voltage is displayed on the STM32F429I-DISCO board LCD (when the define USELCD is enabled in main.h). It can also be monitored by adding the variable "ADC3ConvertedValue" to the debugger watch window.
ADC3 DMA高速采样(2.4Msps).zip.zip
(2.16 MB, 下载次数: 381
)
|
|
|
相关推荐
|
|
|
哈哈,不错,给楼主点赞!
|
|
|
|
|
|
|
|
|
楼主有没有更全更详细的资料啊!
|
|
|
|
|
|
|
|
651 浏览 0 评论
712 浏览 0 评论
STM32F405驱动DS1302时钟模块,输出时间错乱该怎么排查?
4375 浏览 2 评论
stm32f405rgt6驱动DS1302ZN出现时间错乱问题
3176 浏览 1 评论
stm32用fsmc读取ad7606采集数据,数据不变,只有开发版复位才更新数据
2629 浏览 0 评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-10 12:36 , Processed in 0.510784 second(s), Total 41, Slave 31 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖