资源简介
脉冲宽度从100us至550us,定时器自动计算同步脉宽,PT2262振荡电阻从1.2M至5.1M,对应的1527同样,算出单位脉宽,实现自适应,用STM8S003实现
代码片段和文件信息
/**
******************************************************************************
* @file stm8s_adc1.c
* @brief This file contains all the functions/macros for the ADC1 peripheral.
* @author STMicroelectronics - MCD Application Team
* @version V1.1.1
* @date 06/05/2009
******************************************************************************
*
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
* TIME. AS A RESULT STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
* DIRECT INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*
* © COPYRIGHT 2009 STMicroelectronics
* @image html logo.bmp
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include “stm8s_adc1.h“
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/
/* Public functions ----------------------------------------------------------*/
/**
* @addtogroup ADC1_Public_Functions
* @{
*/
/**
* @brief Deinitializes the ADC1 peripheral registers to their default reset
* values.
* @par Parameters:
* None
* @retval None
*/
void ADC1_DeInit(void)
{
ADC1->CSR = ADC1_CSR_RESET_VALUE;
ADC1->CR1 = ADC1_CR1_RESET_VALUE;
ADC1->CR2 = ADC1_CR2_RESET_VALUE;
ADC1->CR3 = ADC1_CR3_RESET_VALUE;
ADC1->TDRH = ADC1_TDRH_RESET_VALUE;
ADC1->TDRL = ADC1_TDRL_RESET_VALUE;
ADC1->HTRH = ADC1_HTRH_RESET_VALUE;
ADC1->HTRL = ADC1_HTRL_RESET_VALUE;
ADC1->LTRH = ADC1_LTRH_RESET_VALUE;
ADC1->LTRL = ADC1_LTRL_RESET_VALUE;
ADC1->AWCRH = ADC1_AWCRH_RESET_VALUE;
ADC1->AWCRL = ADC1_AWCRL_RESET_VALUE;
}
/**
* @brief Initializes the ADC1 peripheral according to the specified parameters
* @param[in] ADC1_ConversionMode: specifies the conversion mode
* can be one of the values of @ref ADC1_ConvMode_TypeDef.
* @param[in] ADC1_Channel: specifies the channel to convert
* can be one of the values of @ref ADC1_Channel_TypeDef.
* @param[in] ADC1_PrescalerSelection: specifies the ADC1 prescaler
* can be one of the values of @ref ADC1_PresSel_TypeDef.
* @param[in] ADC1_ExtTrigger: specifies the external trigger
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 524288 2012-12-11 14:35 脉宽自适应_通用解码\edit\my_st1.IAB
文件 5448 2012-12-13 08:36 脉宽自适应_通用解码\edit\my_st1.IAD
文件 176128 2012-02-04 17:39 脉宽自适应_通用解码\edit\my_st1.IMB
文件 2048 2012-12-11 17:54 脉宽自适应_通用解码\edit\my_st1.IMD
文件 84 2017-06-07 09:15 脉宽自适应_通用解码\edit\my_st1.PFI
文件 1967 2017-06-07 09:15 脉宽自适应_通用解码\edit\my_st1.PO
文件 7064 2017-03-25 16:59 脉宽自适应_通用解码\edit\my_st1.PR
文件 43016 2017-03-25 17:00 脉宽自适应_通用解码\edit\my_st1.PRI
文件 528552 2017-06-07 08:59 脉宽自适应_通用解码\edit\my_st1.PS
文件 368 2017-06-07 08:49 脉宽自适应_通用解码\edit\my_st1.SearchResults
文件 46531 2017-06-07 11:57 脉宽自适应_通用解码\edit\my_st1.WK3
文件 97451 2012-11-10 17:38 脉宽自适应_通用解码\Libraries\STM8S_StdPeriph_Driver\inc\stm8s.h
文件 13630 2009-06-01 12:50 脉宽自适应_通用解码\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_adc1.h
文件 11027 2009-06-01 12:50 脉宽自适应_通用解码\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_adc2.h
文件 4871 2009-06-01 12:50 脉宽自适应_通用解码\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_awu.h
文件 3472 2009-06-01 12:50 脉宽自适应_通用解码\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_beep.h
文件 24992 2009-06-01 12:50 脉宽自适应_通用解码\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_can.h
文件 17808 2009-06-01 12:50 脉宽自适应_通用解码\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_clk.h
文件 4564 2009-06-01 12:50 脉宽自适应_通用解码\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_exti.h
文件 12201 2009-06-01 12:50 脉宽自适应_通用解码\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_flash.h
文件 6218 2009-06-01 12:50 脉宽自适应_通用解码\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_gpio.h
文件 15337 2009-06-01 12:50 脉宽自适应_通用解码\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_i2c.h
文件 5006 2009-06-01 12:50 脉宽自适应_通用解码\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_itc.h
文件 4578 2009-06-01 12:50 脉宽自适应_通用解码\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_iwdg.h
文件 2809 2009-06-01 12:50 脉宽自适应_通用解码\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_rst.h
文件 12767 2009-06-01 12:50 脉宽自适应_通用解码\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_spi.h
文件 24968 2009-06-01 12:50 脉宽自适应_通用解码\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_tim1.h
文件 13576 2009-06-01 12:50 脉宽自适应_通用解码\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_tim2.h
文件 12478 2009-06-01 12:50 脉宽自适应_通用解码\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_tim3.h
文件 5131 2009-06-01 12:50 脉宽自适应_通用解码\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_tim4.h
............此处省略170个文件信息
相关资源
- 使用OpenNI自带的类进行简单手势识别
- 基于fpga的自适应滤波器
- VoodooHDA 2.9.2 Clover-V14.pkg
- 奥本海姆离散时间信号处理第二版习
- prollmsi.zip
- AppleHDA_ALC892
- 中国各省地市级行政区域地图(shp格
- PlistEdit Pro+FixEDID
- plc工程师试题及答案
- JR_T0171-2020《个人金融信息保护技术规
- 焊点缺陷检测必看
- VL53L1X-的API中文用户手册.pdf
- unlocker3.0+VMware Workstation 15 Pro自行+Ke
- Layui 元件库.zip
- 柚子家政6.1.11.zip
- 信息论与编码理论(第二版).pdf
- PRINCE2认证中文版教材
- DarwinDumper.zip
- ch1.part1.rar
- 自由曲线曲面造型技术.pdf
- 脉振高频注入法.zip
- SX1278模组带PA,可到28dB发射功率
- WebSphere_Application_Server教程
- 狂神说Redis笔记.pdf
- 硬件工程师入门教程.pdf
- 卷积码的viterbi维特比译码算法的FPG
- 计算方法丛书 非线性方程组的数值解
- PCA分类器论文+代码实现+训练测试图像
- stm32f103c8t6-max31865-pt100测温
- Keil5下的STM32F407程序
评论
共有 条评论