文件名称:ADC3andDMAhighspeed(2.4Msps)

  • 所属分类:
  • 单片机(51,AVR,MSP430等)
  • 资源属性:
  • [C/C++] [源码]
  • 上传时间:
  • 2015-12-16
  • 文件大小:
  • 2.16mb
  • 下载次数:
  • 0次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

硬件平台:STM32F429I-DISCORVERY

软件平台:KEIL MDK5.10



在STM32F429I-DISCO board中,由于串口2被L3GD20和液晶数据线占用,所以串口1很方便,而且还留了2个孔外接。

*  说 明 : 实现printf和scanf函数重定向到串口1,即支持printf信息到USART1

*        实现重定向,只需要添加2个函数:

*        int fputc(int ch, FILE *f)

*        int fgetc(FILE *f)

*        对于KEIL MDK编译器,编译选项中需要在MicorLib前面打钩,否则不会有数据打印到USART1。



- This example describes how to use the ADC3 and DMA to transfer continuously

converted data 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 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 USE_LCD

is enabled in main.h). It can also be monitored by adding the variable ADC3ConvertedValue 

to the debugger watch window.





@par Example Descr iption



This example is
(系统自动生成,下载前可以参看下载内容)

下载文件列表





5.ADC3+DMA高速采样(2.4Msps)

.............................\2014-05-31_19-17-23.jpg

.............................\CMSIS

.............................\.....\Device

.............................\.....\......\ST

.............................\.....\......\..\STM32F4xx

.............................\.....\......\..\.........\Include

.............................\.....\......\..\.........\.......\stm32f4xx.h

.............................\.....\......\..\.........\.......\system_stm32f4xx.h

.............................\.....\......\..\.........\Release_Notes.html

.............................\.....\......\..\.........\Source

.............................\.....\......\..\.........\......\Templates

.............................\.....\......\..\.........\......\.........\arm

.............................\.....\......\..\.........\......\.........\...\startup_stm32f401xx.s

.............................\.....\......\..\.........\......\.........\...\startup_stm32f40xx.s

.............................\.....\......\..\.........\......\.........\...\startup_stm32f40_41xxx.s

.............................\.....\......\..\.........\......\.........\...\startup_stm32f427x.s

.............................\.....\......\..\.........\......\.........\...\startup_stm32f427_437xx.s

.............................\.....\......\..\.........\......\.........\...\startup_stm32f429_439xx.s

.............................\.....\......\..\.........\......\.........\gcc_ride7

.............................\.....\......\..\.........\......\.........\.........\startup_stm32f401xx.s

.............................\.....\......\..\.........\......\.........\.........\startup_stm32f40xx.s

.............................\.....\......\..\.........\......\.........\.........\startup_stm32f40_41xxx.s

.............................\.....\......\..\.........\......\.........\.........\startup_stm32f427x.s

.............................\.....\......\..\.........\......\.........\.........\startup_stm32f427_437xx.s

.............................\.....\......\..\.........\......\.........\.........\startup_stm32f429_439xx.s

.............................\.....\......\..\.........\......\.........\iar

.............................\.....\......\..\.........\......\.........\...\startup_stm32f401xx.s

.............................\.....\......\..\.........\......\.........\...\startup_stm32f40xx.s

.............................\.....\......\..\.........\......\.........\...\startup_stm32f40_41xxx.s

.............................\.....\......\..\.........\......\.........\...\startup_stm32f427x.s

.............................\.....\......\..\.........\......\.........\...\startup_stm32f427_437xx.s

.............................\.....\......\..\.........\......\.........\...\startup_stm32f429_439xx.s

.............................\.....\......\..\.........\......\.........\system_stm32f4xx.c

.............................\.....\......\..\.........\......\.........\TASKING

.............................\.....\......\..\.........\......\.........\.......\cstart_thumb2.asm

.............................\.....\......\..\.........\......\.........\TrueSTUDIO

.............................\.....\......\..\.........\......\.........\..........\startup_stm32f401xx.s

.............................\.....\......\..\.........\......\.........\..........\startup_stm32f40xx.s

.............................\.....\......\..\.........\......\.........\..........\startup_stm32f40_41xxx.s

.............................\.....\......\..\.........\......\.........\..........\startup_stm32f427xx.s

.............................\.....\......\..\.........\......\.........\..........\startup_stm32f427_437xx.s

.............................\.....\......\..\.........\......\.........\..........\startup_stm32f429_439xx.s

.............................\.....\Include

.............................\.....\.......\arm_common_tables.h

.............................\.....\.......\arm_const_structs.h

.............................\.....\.......\arm_math.h

.............................\.....\.......\core_cm0.h

...........................

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org