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

stm32 ADC多通路采样

于 2023-05-09 发布 文件大小:6.40 MB
0 92
下载积分: 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 个回复

  • f0201
    C++求圆的面积小程序 输入圆的半径,便可以求出圆的面积。。 主要熟悉C++编程(C++ calculate a area of ​ ​ a circle program)
    2012-09-22 10:19:50下载
    积分:1
  • iocp
    vc ,mfc ,一个学习iocp相当好的教程(vc, mfc, a study iocp very good tutorial)
    2009-03-09 10:06:16下载
    积分:1
  • vxworks编程指南
    说明:  vxworks 驱动开发,主要针对刚学vxworks开发的新手,根据自己的需要下载(vxworks driver dep, for learning vxworks driver friends, please get it)
    2020-07-07 19:38:40下载
    积分:1
  • sparesMatrix
    稀疏矩阵三元组表的实现,包含三元组表矩阵的快速转置,快速乘法,矩阵加法(Sparse matrix triples table implementation, including triples fast matrix transpose, fast multiplication, matrix addition)
    2013-11-13 21:13:53下载
    积分:1
  • 简单明了的模糊PID控制C51源码
     省去一大堆的推导公式,看源码简明易了解,重新整理了下模糊PID控制,由C51编写而成,主要控制温度,易看懂!
    2023-03-24 15:00:04下载
    积分:1
  • VQ
    说明:  program c++ for vector quantization use k-means
    2015-04-19 21:37:55下载
    积分:1
  • LPC1778的ucos2的例程 lpc177x_8x_uCOSII
    LPC1778的ucos2的例程,可以直接运行,请放心下载(The ucos2 routine of LPC1778 can run directly)
    2020-06-22 01:40:02下载
    积分:1
  • 火车售票系统
    说明:  c语言火车票售卖系统项目,利用了数据结构中的知识,有兴趣的可以看一下(C language train ticket selling system)
    2020-06-21 17:40:01下载
    积分:1
  • dingshiqi
    本程序采用C语言编程,利用proteus仿真实现定时器功能。(This program uses the C programming with proteus simulation clock function )
    2012-02-12 10:15:52下载
    积分:1
  • 毕设做的交通仿真 CongSim
    毕业设计做的交通仿真软件 可以实现路网的创建及路段拥堵仿真(Graduation project so traffic simulation software to achieve the creation of network simulation and road congestion)
    2009-05-13 13:05:11下载
    积分:1
  • 696518资源总数
  • 106208会员总数
  • 21今日下载