ADC信号采集STM32的demo代码


自己使用HAL库写的ADC信号采集demo。有利于小白的学习借鉴!
资源截图
代码片段和文件信息
/**
  ******************************************************************************
  * @file    system_stm32f1xx.c
  * @author  MCD Application Team
  * @version V4.2.0
  * @date    31-March-2017
  * @brief   CMSIS Cortex-M3 Device Peripheral Access layer System Source File.
  * 
  * 1.  This file provides two functions and one global variable to be called from 
  *     user application:
  *      - SystemInit(): Setups the system clock (System clock source PLL Multiplier
  *                      factors AHB/APBx prescalers and Flash settings). 
  *                      This function is called at startup just after reset and 
  *                      before branch to main program. This call is made inside
  *                      the “startup_stm32f1xx_xx.s“ file.
  *
  *      - SystemCoreClock variable: Contains the core clock (HCLK) it can be used
  *                                  by the user application to setup the SysTick 
  *                                  timer or configure other parameters.
  *                                     
  *      - SystemCoreClockUpdate(): Updates the variable SystemCoreClock and must
  *                                 be called whenever the core clock is changed
  *                                 during program execution.
  *
  * 2. After each device reset the HSI (8 MHz) is used as system clock source.
  *    Then SystemInit() function is called in “startup_stm32f1xx_xx.s“ file to
  *    configure the system clock before to branch to main program.
  *
  * 4. The default value of HSE crystal is set to 8 MHz (or 25 MHz depending on
  *    the product used) refer to “HSE_VALUE“. 
  *    When HSE is used as system clock source directly or through PLL and you
  *    are using different crystal you have to adapt the HSE value to your own
  *    configuration.
  *        
  ******************************************************************************
  * @attention
  *
  * 

© COPYRIGHT(c) 2017 STMicroelectronics


  *
  * Redistribution and use in source and binary forms with or without modification
  * are permitted provided that the following conditions are met:
  *   1. Redistributions of source code must retain the above copyright notice
  *      this list of conditions and the following disclaimer.
  *   2. Redistributions in binary form must reproduce the above copyright notice
  *      this list of conditions and the following disclaimer in the documentation
  *      and/or other materials provided with the distribution.
  *   3. Neither the name of STMicroelectronics nor the names of its contributors
  *      may be used to endorse or promote products derived from this software
  *      without specific prior written permission.
  *
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“
  * AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE
  * IMPLIED WARRANTIE

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        6263  2019-03-18 19:50  ADC信号采集demo.mxproject
     目录           0  2019-01-09 21:22  ADC信号采集demoDrivers
     目录           0  2019-01-09 21:22  ADC信号采集demoDriversCMSIS
     目录           0  2019-01-09 21:22  ADC信号采集demoDriversCMSISDevice
     目录           0  2019-01-09 21:22  ADC信号采集demoDriversCMSISDeviceST
     目录           0  2019-01-09 21:22  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xx
     目录           0  2019-01-09 21:22  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxInclude
     文件      499462  2018-12-19 10:48  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxIncludestm32f100xb.h
     文件      544671  2018-12-19 10:48  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxIncludestm32f100xe.h
     文件      450133  2018-12-19 10:48  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxIncludestm32f101x6.h
     文件      460506  2018-12-19 10:48  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxIncludestm32f101xb.h
     文件      538320  2018-12-19 10:48  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxIncludestm32f101xe.h
     文件      553362  2018-12-19 10:48  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxIncludestm32f101xg.h
     文件      542861  2018-12-19 10:48  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxIncludestm32f102x6.h
     文件      552467  2018-12-19 10:48  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxIncludestm32f102xb.h
     文件      874522  2018-12-19 10:48  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxIncludestm32f103x6.h
     文件      884899  2018-12-19 10:48  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxIncludestm32f103xb.h
     文件      971936  2018-12-19 10:48  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxIncludestm32f103xe.h
     文件      986030  2018-12-19 10:48  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxIncludestm32f103xg.h
     文件     1261567  2018-12-19 10:48  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxIncludestm32f105xc.h
     文件     1342402  2018-12-19 10:48  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxIncludestm32f107xc.h
     文件        8788  2018-12-19 10:48  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxIncludestm32f1xx.h
     文件        3337  2018-12-19 10:48  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxIncludesystem_stm32f1xx.h
     目录           0  2019-01-09 21:22  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxSource
     目录           0  2019-01-09 21:22  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxSourceTemplates
     目录           0  2019-01-09 21:22  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarm
     文件       15127  2018-12-19 10:48  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f100xb.s
     文件       16715  2018-12-19 10:48  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f100xe.s
     文件       12564  2018-12-19 10:48  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f101x6.s
     文件       12937  2018-12-19 10:48  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f101xb.s
     文件       15049  2018-12-19 10:48  ADC信号采集demoDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f101xe.s
............此处省略617个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)