资源简介
用STM8控制SHTC3,每1s采集一次温湿度数据,并通过串口发送。文件包含整个工程,编译通过,测试实际可用。

代码片段和文件信息
/**
******************************************************************************
* @file stm8l15x_adc.c
* @author MCD Application Team
* @version V1.5.0
* @date 13-May-2011
* @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_con
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-09-10 13:17 stm8_SHTC3\
目录 0 2019-09-10 13:17 stm8_SHTC3\FWlib\
目录 0 2019-09-10 13:17 stm8_SHTC3\FWlib\inc\
文件 132840 2019-08-24 09:25 stm8_SHTC3\FWlib\inc\stm8l15x.h
文件 16913 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_adc.h
文件 5059 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_aes.h
文件 3557 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_beep.h
文件 19406 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_clk.h
文件 9963 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_comp.h
文件 10149 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_dac.h
文件 13242 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_dma.h
文件 9790 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_exti.h
文件 14388 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_flash.h
文件 6511 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_gpio.h
文件 35437 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_i2c.h
文件 2267 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_irtim.h
文件 13871 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_itc.h
文件 4632 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_iwdg.h
文件 22646 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_lcd.h
文件 4484 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_pwr.h
文件 3101 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_rst.h
文件 37772 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_rtc.h
文件 14474 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_spi.h
文件 21019 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_syscfg.h
文件 37391 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_tim1.h
文件 29141 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_tim2.h
文件 29019 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_tim3.h
文件 11698 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_tim4.h
文件 28418 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_tim5.h
文件 13222 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_usart.h
文件 7786 2012-06-18 15:20 stm8_SHTC3\FWlib\inc\stm8l15x_wfe.h
............此处省略136个文件信息
相关资源
- 意法半导体STM全系列微控制器STM32ST
- STM8S SX1278 项目和源代码
- STM8S003 红外遥控
- STM8S例程,基于IAR下的STM8S例程
- 基于STM8的HT1621B显示驱动程序
- STM8驱动HT1621B
- STM8L中文参考手册1-4全
- STM8L_MPU6500_DMP_震动唤醒
- arduino主机,stm8从机。I2C测试 。每次
- Lora通讯 stm8
- STM8+FM17750低成本刷卡方案资料硬件设
- STM8_无线315&433_脉宽自适应_通用解码
- STM8S103系列IO模拟串口通信实现真正串
- STM8S中文参考手册
- cosmic STM8破解
- STM8全系列封装
- STM8L051 低功耗运行模式 库函数例程
- STM8L051.串口接收IDLE中断.zip
- 移植在STM8上的实时操作系统uCOS
- 额温枪STM8L方案含原理图和代码.rar
- STM8L 硬件IIC主机
- (D)基于NTC热敏电阻的温度计.zip
- STM8s官方固件库
- STM8+NRF24l01+发送程序
- STM8+NRF24l01+接收程序
- stm8s006超声波硬件设计电路
- stm8的485串口收发程序
- STM8最强固件库
- STM8蜂鸣器音乐演奏
- IAR+for+STM8+ 破解
评论
共有 条评论