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

stm32 ADC多通路采样

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

  • Bus_finally
    公交线路以及站点查询,支持模糊查询,支持修改线路以及站点(Bus lines as well as the site queries, support fuzzy queries, support for modifying lines and sites)
    2013-05-26 12:13:41下载
    积分:1
  • 真二叉树重构
    说明:  但是对于“真二叉树”(每个内部节点都有两个孩子的二叉树),给定它的先序、后序遍历序列足以完全确定它的结构。将二叉树的n个节点用[1, n]内的整数进行编号,输入一棵真二叉树的先序、后序遍历序列,请输出它的中序遍历序列。(But for one proper binary tree, in which each internal node has two sons, we can uniquely determine it through its given preorder traversal sequence and postorder traversal sequence.Label n nodes in one binary tree using the integers in [1, n], we would like to output the inorder traversal sequence of a binary tree through its preorder and postorder traversal sequence.)
    2019-04-21 16:54:36下载
    积分:1
  • 人脸识别 VC++ 6.0
    可以运行的人脸识别系统,附带全套毕设的文档,欢迎下载!
    2022-04-15 06:05:34下载
    积分:1
  • MyMessenger
    网络数据通信案例——MyMessenger 代码使用说明 ============================================================== 将系统编译输出可执行文件的路径设为工程文件之外的bin文件夹。 系统运行之前,在binConf文件夹中的Profile.xml文件中先设定几 个远端通信目标的名字和ID号。 与远端通信目标的短消息收发都记录在在binCHAT文件夹下。 接受的文件传输都在binRECV文件夹下。(Network Data Communications Case- MyMessenger code for use ======================================== ====================== system compiler output path to the executable file as project file outside the bin folder. System before bin Conf folder document Profile.xml first several remote communication objectives set name and ID. And remote communication goals short message to send and receive are recorded in the bin CHAT folder. Accept the file transfer in the bin RECV folder.)
    2009-02-21 14:24:18下载
    积分:1
  • MPRGFFT
    C script for performing FFT algorithm with pruning both in input and output.
    2012-06-09 00:28:41下载
    积分:1
  • STC12C5A60S2
    STC12C5A60S2双串口通信例程,含注释。(STC12C5A60S2 Two serial communication routines, including the Notes.)
    2014-01-13 14:29:56下载
    积分:1
  • XBee-Quick-Reference-Guide
    X-bee reference guide. to interface with other modules in PDF formate..
    2015-02-21 13:05:11下载
    积分:1
  • 240128
    240128演示程序 采用t6963演示汉字(unsigned int i,j CmdWrite(0x5c) DataWrite(0x00) DataWrite(0x00) CmdWrite(0x46) DataWrite(0x00) DataWrite(0x04) //csr=0x0400 字摸地址80H CmdWrite(0x4c) CmdWrite(0x42) )
    2021-01-28 13:58:34下载
    积分:1
  • c#调用sqlite自动切换32位和64位
    c#调用sqlite自动切换32位和64位
    2014-06-01下载
    积分:1
  • qichelilun
    本程序为汽车理论第五版课后习题程序,采用matlab编程,经测试均为正确结果(The procedures for the car the theoretical fifth edition of the after-school exercise program, using matlab programming, has been tested and are the correct results)
    2013-05-07 13:35:00下载
    积分:1
  • 696518资源总数
  • 105559会员总数
  • 1今日下载