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

stm32 ADC多通路采样

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

  • Intelligent-layout
    智能排样问题主要是利用遗传算法解决排样问题,以达到最优分配(Intelligent layout problem is the use of genetic algorithms to solve nesting problem, so as to achieve the optimal allocation)
    2012-03-27 16:21:48下载
    积分:1
  • QBKNNE7
    说明:  手机AT modem的处理流程,包含at 命令的读取,解析和编码(Mobile phone AT modem processing process, including at command reading, parsing and coding)
    2019-01-06 22:25:00下载
    积分:1
  • hanming
    汉 明 码 的 编 码 程 序 , 经 测 试 好 用(Hamming code encoding process, ease of use have been tested)
    2009-06-10 16:25:47下载
    积分:1
  • lms.c
    this program demonstrates the use of the LMS algorithm in system identification
    2010-05-09 09:30:48下载
    积分:1
  • pso--constrained
    这个粒子群算法使用matlab语言编写出来的,可以解决带约束的粒子群算法问题,可以很方便的把问题得到解决(the optimization of constraied pso matlab programmes)
    2013-10-09 10:00:18下载
    积分:1
  • ADC_12deng
    msp430单片机的入门者,可以看看,会有一些帮助。(msp430 microcontroller beginners, you can see, there will be some help.)
    2012-05-06 08:35:19下载
    积分:1
  • mp3player
    windows使用mcisend编写的音乐播放器(music player)
    2013-09-10 16:38:42下载
    积分:1
  • SIFT算法的C语言实现
    SIFT算法的C语言实现.一种基于尺度空间的,对图像平移、旋转、缩放、甚至仿射变换保持不变性的图像局部特征,以及基于该特征的描述符。
    2022-02-02 19:45:03下载
    积分:1
  • 拼写检查
    与词典词相比,拼写自动批改
    2022-03-25 18:03:29下载
    积分:1
  • 设定全局变量测试小车跑
    不用外设控制,自己调试的程序,一段没有任何控制的程序,输入STM单片机,能自行控制电机,里面的定义引脚可自行改变。(A program without any control, input STM microcontroller, can control the motor itself, the definition pin can change itself.)
    2018-07-27 22:55:06下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载