登录
首页 » c » stm32 ADC多通路采样

stm32 ADC多通路采样

于 2023-05-09 发布 文件大小:6.40 MB
0 99
下载积分: 2 下载次数: 1

代码说明:

stm32 ADC多通路采样 #include "adc.h" #define ADC1_DR_Address    ((uint32_t)0x4001244C) __IO uint16_t ADCConvertedValue[2];   void Adc_Init(void)  {   GPIO_InitTypeDef GPIO_InitStrue; ADC_InitTypeDef ADC_InitStrue; DMA_InitTypeDef DMA_InitStructure;   RCC_AHBPeriphClockCmd(RCC_AHBPeriph_DMA1, ENABLE);//DMA时钟使能 RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA|RCC_APB2Periph_ADC1,ENABLE);//GPIO、ADC1时钟使能   RCC_ADCCLKConfig(RCC_PCLK2_Div6);//ADC时钟6分频   GPIO_InitStrue.GPIO_Mode = GPIO_Mode_AIN; GPIO_InitStrue.GPIO_Pin = GPIO_Pin_1|GPIO_Pin_2; GPIO_InitStrue.GPIO_Speed = GPIO_Speed_50MHz; GPIO_Init(GPIOA,&GPIO_InitStrue);//PA1、PA2 I/O口配置     DMA_DeInit(DMA1_Channel1);//DMA通道1复位   DMA_InitStructure.DMA_PeripheralBaseAddr = ADC1_DR_Address;

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • forum6
    啊第四盛大的啊的非法发发肥企鹅舞秋风俄方(hello everyone you are my son)
    2017-12-22 19:02:32下载
    积分:1
  • sqlTest100929
    一个在VC6里运用SQL语言,通过DAO方法访问ACCESS文件的vc工程。实现的功能有:创建MDB文件,新建、删除表单,对某表添加、删除、插入、修改记录。(A vc Project by sql language by DAO. It can create mdb file,or create a new tab,delete a tab,also add,delete ,insert collcetion in a certain tab. )
    2021-01-21 22:58:46下载
    积分:1
  • praphics
    三角形相互碰撞及物体运动模型虚拟现实碰撞检测算法(Spherical object model dynamic behaviors of virtual reality collision detection algorithm )
    2011-06-13 10:48:37下载
    积分:1
  • web
    网站备份工具 可以上传文件 下载删除功能,不错的()
    2018-06-16 13:01:41下载
    积分:1
  • CDataGrid
    CDataGrid 分类:Visual C++ 如何删除DataGrid中的一行记录 CDataGrid m_Grid Rs->Delete(adAffectCurrent) Rs->Requery() m_Grid.SetRefDataSource(NULL) m_Grid.SetRefDataSource((LPUNKNOWN)Rs) m_Grid.Refresh() (CDataGrid Category: Visual C++ How DataGrid row delete records CDataGrid m_Grid Rs-)
    2007-09-29 12:25:15下载
    积分:1
  • ica_for_pid_design
    ica for pid design project
    2014-09-15 02:03:04下载
    积分:1
  • 快速数论法求大数乘
    快速数论算法求大整数乘法,自己已测试
    2022-02-16 10:25:07下载
    积分:1
  • opencv的工程模板
    opencv 的VS2015工程模板  。  大家下载后直接用来作为opencv的项目用, 避免了繁琐的路径设置。
    2022-03-02 01:49:29下载
    积分:1
  • ARM Cortex-M3与Cortex-M4权威指南(第3版)
    说明:  共3部分,1/3 本书介绍了ARM架构的背景知识以及指令集、中断处理等处理器特性,并描述了如何设置并利用存储器保护单元(MPU)等可用的高级特性。书中论述Keil MDK、IAR EWARM、gcc以及CooCoxCoIDET工具入门的章节可以给初学者在编写程序代码方面提供一些帮助,其中也包括一些重要的软件开发问题,比如低功耗特性的使用、信息输入/输出的处理、汇编和c语言的混合编程及其他高级技术话题。(This book introduces the background knowledge of arm architecture, instruction set, interrupt processing and other processor features, and describes how to set up and utilize the available advanced features such as memory protection unit (MPU). The chapters on keil MDK, IAR EWARM, GCC and coocox coidet tools in the book can provide some help for beginners in writing program code, including some important software development problems, such as the use of low-power features, information input / output processing, mixed programming of assembly and C language, and other advanced technical topics.)
    2021-01-16 23:01:27下载
    积分:1
  • C8051F060-initialization-procedure
    C8051F060初始化程序,包括端口看门狗定时器串口晶振(C8051F060 initialization procedures, including serial port Watchdog Timer oscillator)
    2013-11-01 21:48:50下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载