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

stm32 ADC多通路采样

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

  • csharp_2011_04_c#报时小程序1.0.0
    一个简单的报时小程序,可以自定义设置您的报时模式以及提醒方式。 可以自定义每隔多少分钟循环提醒。。。。 报时方式: 自整点时刻起每隔x分钟提醒 或者 自现在时刻起每隔x分钟提醒 提醒方式: 例如选择“语音”报时或者“消息框”报时。(A simple small time program, you can customize the set of your timekeeping mode, as well as reminders. You can customize the circular reminder every many minutes.... Tell the way: every hour from X minutes to remind, or from now on every X minutes to remind remind: for example, select "voice", "timekeeping" or "message box" timekeeping.)
    2017-07-02 23:48:01下载
    积分:1
  • horse-riding-board
    马踏棋盘程序,使用c++编写,经典的贪心算法实现快速得出结果(Horse riding board, the use of c++ written in the classic outcome of the greedy algorithm for fast)
    2011-05-02 13:26:19下载
    积分:1
  • How-to-write-DSP-CMD
    关于TMS320F28335应用程序中CMD文件的编写方法。(About how to write a CMD file to the TMS320F28335)
    2013-04-16 16:20:41下载
    积分:1
  • ArcGIS Engine 开发从入门到精通源程序3(共4)
    说明:  ArcGIS Engine 开发从入门到精通源程序3(共4)(Development of ArcGIS Engine from Initial to Proficient in Source Program 3(4))
    2020-06-20 18:20:02下载
    积分:1
  • Hi
    说明:  高质量程序设计指南,主要讲解编程中一些规范(High-quality programming guide, mainly to explain some of the programming specifications)
    2010-01-04 23:19:28下载
    积分:1
  • Linux设备驱动
    说明:  linux驱动开发基础资料,同时包括测试代码(Linux driver development infrastructure, including test code)
    2020-06-22 11:40:01下载
    积分:1
  • 基于LPC2368的UCOSII系统框架例程
    基于LPC2368的UCOSII系统框架包括ADC、外部中断、PWM、UART(0 1 2 3 )例程
    2022-03-12 05:17:39下载
    积分:1
  • based on the programming examples and techniques
    基于c++builder5.0的编程实例与技巧-based on the programming examples and techniques
    2023-04-20 23:30:04下载
    积分:1
  • frame_transformation.slx
    说明:  坐标系Park、Clark变换示例以及逆变换(Park and Clark transformation simulation)
    2020-07-01 21:27:24下载
    积分:1
  • GPS监控系统源代码
    GPS车辆监控系统 Apollo.rar主控程序 ApolloCom.rar通信程序 ApolloSim.rar前端设备模拟程序 Document.rar相关文档 开发与运行环境 VC6 + Windows 2000 + Sql Server 2000 + MapX 4.5 + TDBGrid7.0
    2022-04-14 22:57:49下载
    积分:1
  • 696518资源总数
  • 105922会员总数
  • 10今日下载