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

stm32 ADC多通路采样

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

  • Protocol6
    计算机网络选择重传协议,效率达到90 以上,北邮计科计算机网络课程作业(Select the computer network retransmission agreement, more than 90 efficiency, BUPT Jike computer network course work)
    2014-03-31 20:55:07下载
    积分:1
  • 手机蓝牙房间控制器
    采用STC12C5A60S2通过蓝牙模块控制房间内的灯光,调节时间,烙铁温度等设备,并通过OLED屏SSD1106显示出设备的工作状态。
    2022-06-01 14:44:33下载
    积分:1
  • communication-spftware
    聊天软件,基于TCP/IP协议的聊天软件开发(communication software)
    2013-10-25 20:29:57下载
    积分:1
  • dsp-code
    本代码主要实现SVPWM的算法,主要针对dsp28335。PWM波的频率为10KHz,死去时间2us。(This source code mainly realizes SVPWM and dsp28335 is used.The frequency of pwm is 10Khz and dead band time is 2us)
    2020-10-08 17:47:36下载
    积分:1
  • C#入门必看含100个例字
    资源描述C#入门必看含有100个例字,有100个例字。能从头学起。C#入门必看含有100个例字,有100个例字。能从头学起。C#入门必看含有100个例字,有100个例字。能从头学起。C#入门必看含有100个例字,有100个例字。能从头学起。C#入门必看含有100个例字,有100个例字。能从头学起。C#入门必看含有100个例字,有100个例字。能从头学起。
    2022-02-21 15:00:00下载
    积分:1
  • Trne
    说明:  嵌入式轨道检测仪在客运专线的应用Track detector embedded in the Passenger Dedicated Line(Track detector embedded in the Passenger Dedicated Line)
    2011-03-25 19:13:54下载
    积分:1
  • duding
    这是我的图书馆借阅管理系统,简单实用,适合学习VC++者学习,也可实际应用(This is my library management system, simple and practical learning for VC++ learning, but also practical applications)
    2006-07-19 21:19:30下载
    积分:1
  • 2
    该程序是基于MATLAB的磁悬浮系统连续控制的具体程序实现(The program is based on the specific program MATLAB maglev system to achieve continuous control)
    2014-02-18 18:17:40下载
    积分:1
  • udp6
    说明:  udp协议实现socket通信,广播协议,包括客户端,服务端通信(udp protocol ,socket communication,broadcast packet,include client and server point;)
    2020-06-18 21:20:02下载
    积分:1
  • datelock
    用c编写的时钟信号的源程序,希望对广大网友有用(C prepared by the source clock signal, in the hope that the broad masses of netizens useful)
    2009-03-03 15:06:05下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载