资源简介
基于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.xm
文件 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个文件信息
相关资源
- STM8L152c8T6+Xmodem+IAP
- 基于STM8L152和TM1638的电子时钟
- STM8L051F3P6中文.pdf
- STM8L052工程模板
- STM8L101F3代码大全
- stm8L051参考代码
- STM8L15x 库例程大全
- si4432 stm8l 驱动
- SX1278与STM8L的精美结合。
- STM8L051F3例程
- STM8L15X系列库函数例程
- 最新固件库STM8L
- STM8L15X中文参考手册.pdf
- STM8L15x-16x-05x-AL31-L_StdPeriph_Lib.7z
- stm8l多种例程代码
- STM8L152各种例程
- STM8L硬件IIC从机
- STM8L152例程
- 基于IAR的STM8L152的USART+ADC(双通道)带
- 用有限状态机思想实现矩阵按键扫描
- STM8L151C8T6的六种低功耗模式测试工程
- STM8L驱动程序
- 基于IAR的STM8L152的USART、ADC(双通道)
- 增加去抖动的新型的按键扫描程序的
- NEC红外解码无线发送程序CC2530
- 单片机红外解码程序源代码非常完整
- STM8L低功耗测试报告
- STM8L152R6 STM8L152R8 SCH封装
- STM8L101低功耗应用
- STM8L15x的USART调试实验串口调试_含中断
评论
共有 条评论