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

stm32 ADC多通路采样

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

  • Beamform
    该程序是基于时间延迟求和的波束成形算法的实现,根据是结果来看有很好的效果(The program is based on the sum of the time delay beamforming algorithm, based on results, there is a good effect)
    2021-01-21 01:18:46下载
    积分:1
  • TCPIPforC51
    在51上跑TCP/IP协议,网络速度10MBPS.(51 on the run in TCP/IP protocol, network speed 10MBPS.)
    2007-09-11 14:15:32下载
    积分:1
  • dns-Audit
    A simple DNS auditing tool
    2014-01-04 15:28:26下载
    积分:1
  • STLarray
    多维数组的操作,在STL中的相关程序,找了好久才找到(Operation multidimensional arrays in STL relevant procedures for a long time to find)
    2013-11-24 22:14:35下载
    积分:1
  • 0.96OLED显示屏_MSP430系列_SPI_例程
    说明:  msp430的0.96寸的oled的驱动程序,已经调试过了。(The 0.96 inch OLED driver of MSP43 0 has been debugged.)
    2020-06-19 12:40:01下载
    积分:1
  • TI LDC1314多通道采集程序
    ldc1314多通道程序,可一直读取电感传感器数据,串口输出显示,iic通信,stm32程序,可直接编译下载使用。直接用于项目制作。
    2023-02-14 22:35:05下载
    积分:1
  • 定积分的计算
    定积分的计算方法很多,这里使用累加求和求极限的定义方法实现定积分的计算
    2022-07-07 21:40:30下载
    积分:1
  • Makefile
    Makefile的编写,可以编写一个功能全面的Makefile.(The Makefile to write, can write a full-featured Makefile.)
    2013-10-08 15:42:00下载
    积分:1
  • IEEE_TO_FLOAT
    C语言程序,ieee标准格式转浮点型数字(c language, ieee to float)
    2020-06-17 02:40:01下载
    积分:1
  • RWIniFileDemo
    使用INI文件保存程序的信息 用于保存文件信息等功能 (INI file to save the program using the information in the file information and other functions to save)
    2014-04-02 09:53:12下载
    积分:1
  • 696518资源总数
  • 106208会员总数
  • 21今日下载