资源简介

基于STM8L红外解码按键扫描C程序,适用刚上手STM8L的开发人员,可参考系统时钟、看门狗、定时中断、IO口等的初始化。适用单片机入门开发人员,参考企业级C程序编写架构,红外解码、按键扫描等的基本应用。

资源截图

代码片段和文件信息

/**
  ******************************************************************************
  * @file    stm8l15x_adc.c
  * @author  MCD Application Team
  * @version V1.6.0
  * @date    28-June-2013
  * @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 ADC_co

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

     文件       4208  2015-12-29 15:29  STM8L-CODE\.cproject

     文件        796  2015-12-29 15:29  STM8L-CODE\.project

     文件       1089  2015-12-29 15:32  STM8L-CODE\.settings\language.settings.xml

     文件      12210  2015-05-16 11:37  STM8L-CODE\EWSTM8\Backup of CAR-EPS-STM8L.ewd

     文件      44784  2015-05-16 11:37  STM8L-CODE\EWSTM8\Backup of CAR-EPS-STM8L.ewp

     文件         70  2015-05-16 11:37  STM8L-CODE\EWSTM8\CAR-EPS-STM8L.custom_argvars

     文件      48310  2016-05-26 10:26  STM8L-CODE\EWSTM8\CAR-EPS-STM8L.dep

     文件      12636  2015-05-16 11:37  STM8L-CODE\EWSTM8\CAR-EPS-STM8L.ewd

     文件      45202  2016-05-25 15:51  STM8L-CODE\EWSTM8\CAR-EPS-STM8L.ewp

     文件       1470  2016-05-25 15:51  STM8L-CODE\EWSTM8\CAR-EPS-STM8L.ewt

     文件        167  2015-05-16 11:37  STM8L-CODE\EWSTM8\CAR-EPS-STM8L.eww

     文件       4793  2015-05-16 11:37  STM8L-CODE\EWSTM8\Debug\Exe\CAR-EPS-STM8L.bin

     文件       5604  2016-05-26 10:00  STM8L-CODE\EWSTM8\Debug\Exe\CAR-EPS-STM8L.hex

     文件      98284  2016-05-26 10:00  STM8L-CODE\EWSTM8\Debug\Exe\templproj.out

     文件       8432  2016-05-25 10:52  STM8L-CODE\EWSTM8\Debug\List\ADC.lst

     文件       2689  2016-05-24 20:47  STM8L-CODE\EWSTM8\Debug\List\FlashLight.lst

     文件       6763  2016-05-26 10:00  STM8L-CODE\EWSTM8\Debug\List\IR.lst

     文件       3830  2016-05-25 20:30  STM8L-CODE\EWSTM8\Debug\List\KEY.lst

     文件       9390  2016-05-26 09:46  STM8L-CODE\EWSTM8\Debug\List\main.lst

     文件      20982  2016-05-24 20:42  STM8L-CODE\EWSTM8\Debug\List\PowerManagement.lst

     文件      59665  2016-05-25 20:30  STM8L-CODE\EWSTM8\Debug\List\stm8l15x_adc.lst

     文件      62159  2016-05-25 20:30  STM8L-CODE\EWSTM8\Debug\List\stm8l15x_clk.lst

     文件      23512  2016-05-25 20:30  STM8L-CODE\EWSTM8\Debug\List\stm8l15x_gpio.lst

     文件      23069  2016-05-25 20:30  STM8L-CODE\EWSTM8\Debug\List\stm8l15x_it.lst

     文件      13950  2016-05-25 20:30  STM8L-CODE\EWSTM8\Debug\List\stm8l15x_iwdg.lst

     文件      10311  2016-05-25 20:30  STM8L-CODE\EWSTM8\Debug\List\stm8l15x_rst.lst

     文件     117966  2016-05-25 20:30  STM8L-CODE\EWSTM8\Debug\List\stm8l15x_tim2.lst

     文件      23016  2016-05-26 10:00  STM8L-CODE\EWSTM8\Debug\List\templproj.map

     文件      14297  2016-05-25 10:52  STM8L-CODE\EWSTM8\Debug\Obj\ADC.o

     文件      10420  2016-05-25 10:52  STM8L-CODE\EWSTM8\Debug\Obj\ADC.pbi.cout

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

评论

共有 条评论