资源简介

STM8L051例程,包括STM8L051所有外设例程,使用IAR开发

资源截图

代码片段和文件信息

/**
  ******************************************************************************
  * @file    stm8l15x_adc.c
  * @author  MCD Application Team
  * @version V1.6.1
  * @date    30-September-2014
  * @brief   This file provides firmware functions to manage the following 
  *          functionalities of the Analog to Digital Convertor (ADC) peripheral:           
  *           - Initialization and Configuration
  *           - Power saving
  *           - Analog Watchdog configuration              
  *           - Temperature Sensor & Vrefint (Voltage Reference internal) management 
  *           - Regular Channels Configuration
  *           - Regular Channels DMA Configuration
  *           - Injected channels Configuration      
  *           - Interrupts and flags management       
  *         
  *  @verbatim
  *                               
  *          ===================================================================      
  *                                   How to use this driver
  *          ===================================================================      
  *          1. Enable The ADC controller clock using CLK_PeripheralClockConfig() 
  *            function : CLK_PeripheralClockConfig(CLK_Peripheral_ADC1 ENABLE).
  *
  *            2. Configure the ADC Prescaler conversion resolution and data 
  *              alignment using the ADC_Init() function.
  * 
  *            3. Activate the ADC peripheral using ADC_Cmd() function.  
  *
  *          Regular channels group configuration
  *          ====================================    
  *            - To configure the ADC regular channels group features use 
  *              ADC_Init() and ADC_RegularChannelConfig() functions.
  *            - To activate the continuous mode use the ADC_continuousModeCmd()
  *              function.
  *            - To configure and activate the Discontinuous mode use the 
  *              ADC_DiscModeChannelCountConfig() and ADC_DiscModeCmd() functions.        
  *            - To read the ADC converted values use the ADC_GetConversionValue()
  *              function.
  *
  *          DMA for Regular channels group features configuration
  *          ====================================================== 
  *           - To enable the DMA mode for regular channels group use the 
  *             ADC_DMACmd() function.
  *           - To enable the generation of DMA requests continuously at the end
  *             of the last DMA transfer use the ADC_DMARequestAfterLastTransferCmd() 
  *             function.    
             
  *          Injected channels group configuration
  *          =====================================    
  *            - To configure the ADC Injected channels group features use 
  *              ADC_InjectedChannelConfig() and  ADC_InjectedSequencerLengthConfig()
  *              functions.
  *            - To activate the continuous mode use the A

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件          3  2018-04-08 11:54  Software\Demo\BuildLog.log

     文件       1239  2018-04-08 11:54  Software\Demo\Debug\Exe\Demo.hex

     文件      46232  2018-04-08 11:54  Software\Demo\Debug\Exe\Demo.out

     文件      15610  2018-04-08 11:54  Software\Demo\Debug\List\Demo.map

     文件     801399  2018-04-08 14:06  Software\Demo\Debug\Obj\Demo.pbd

     文件     801399  2018-04-08 14:06  Software\Demo\Debug\Obj\Demo.pbd.browse

     文件        243  2018-04-08 14:06  Software\Demo\Debug\Obj\Demo.pbd.linf

     文件       5338  2018-04-08 11:54  Software\Demo\Debug\Obj\main.o

     文件     605567  2018-04-08 11:54  Software\Demo\Debug\Obj\main.pbi

     文件      11666  2018-04-08 11:54  Software\Demo\Debug\Obj\main.pbi.xcl

     文件      26947  2018-04-08 11:52  Software\Demo\Debug\Obj\stm8l15x_gpio.o

     文件     610658  2018-04-08 11:52  Software\Demo\Debug\Obj\stm8l15x_gpio.pbi

     文件      11691  2018-04-08 11:52  Software\Demo\Debug\Obj\stm8l15x_gpio.pbi.xcl

     文件      51887  2018-04-08 11:52  Software\Demo\Debug\Obj\stm8l15x_it.o

     文件     610891  2018-04-08 11:52  Software\Demo\Debug\Obj\stm8l15x_it.pbi

     文件      11673  2018-04-08 11:52  Software\Demo\Debug\Obj\stm8l15x_it.pbi.xcl

     文件       7818  2018-04-08 14:10  Software\Demo\Demo.dep

     文件      16039  2018-04-08 11:52  Software\Demo\Demo.ewd

     文件      58696  2018-04-08 11:52  Software\Demo\Demo.ewp

     文件     160680  2018-04-08 11:52  Software\Demo\Demo.ewt

     文件        158  2018-04-08 11:52  Software\Demo\Demo.eww

     文件      49764  2018-04-08 14:10  Software\Demo\settings\Demo.dbgdt

     文件       1606  2018-04-08 14:06  Software\Demo\settings\Demo.Debug.cspy.bat

     文件       1544  2018-04-08 14:06  Software\Demo\settings\Demo.Debug.cspy.ps1

     文件        145  2018-04-08 14:06  Software\Demo\settings\Demo.Debug.driver.xcl

     文件        335  2018-04-08 14:06  Software\Demo\settings\Demo.Debug.general.xcl

     文件       2381  2018-04-08 14:10  Software\Demo\settings\Demo.dnx

     文件      27449  2018-04-08 14:10  Software\Demo\settings\Demo.wsdt

     文件     134533  2014-10-22 21:31  Software\Demo\StdPeriph_Driver\inc\stm8l15x.h

     文件      17052  2014-10-22 21:31  Software\Demo\StdPeriph_Driver\inc\stm8l15x_adc.h

............此处省略1973个文件信息

评论

共有 条评论