登录
首页 » c » STM8S电量指示程序

STM8S电量指示程序

于 2022-03-02 发布 文件大小:3.95 MB
0 57
下载积分: 2 下载次数: 1

代码说明:

void ADC_Initial(void)   {               ADC1->CSR  = 0x03;//选择AD通道  AIN3     ADC1->CR1  = 0x70;//ADC时钟=主时钟/18 单次转换模式     ADC1->CR2  = 0;//配置为左对齐方式     ADC1->CR3  = 0;//缓存功能没有被使能     ADC1->TDRH = 0;//关闭施密特触发     ADC1->TDRL = 0;//关闭施密特触发     ADC1->HTRH = 0xff;     ADC1->HTRL = 0x03;     ADC1->LTRH = 0;     ADC1->LTRL = 0;     ADC1->AWCRH = 0;     ADC1->AWCRL = 0; ADC1->CR2 =0X08;//设置数据为右对齐     ADC1->CR1=0;   //单次转换模式     ADC1->CSR=0X04;     ADC1->CR1=0X70;     ADC1->CR2=0X08;//设置数据为右对齐 ADC1->TDRL &= (uint8_t)0x08; ADC1->TDRH &= (uint8_t)0x00;

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论


0 个回复

  • 5672r
    驱动,用于DA公司的驱动,此程序有5路输出,各路单独程序控制,调整DA输出(Driver for DA company driver, this program has 5 output, the various procedures alone control, adjust the DA output)
    2020-07-31 12:38:40下载
    积分:1
  • 图片处理的效果
    图片处理的效果-Vb.Net制作_学习图形图象处理用的…:)-the results-produced _ Vb.Net learning image processing with graphics ... :)
    2022-03-25 09:14:18下载
    积分:1
  • 65520790m5high
    此程序能在MATLAB上实现低通滤波器,功能很强大(That this procedure can in MATLAB to achieve low-pass filter, a very powerful feature)
    2009-01-07 21:37:54下载
    积分:1
  • one_wire_disp
    一线显示,把电源跟数据线结合起来,减少了通讯连线.控制程序是C51的.(Line shows that the power supply combined with the data lines to reduce the communication connection. Control procedures are in C51.)
    2009-02-12 20:28:07下载
    积分:1
  • tn46_c-code_example_for_scp1000-d01_rev_0.1_
    大气压检测传感器驱动,经过验证,可以使用(tn46_c-code_example_for_scp1000-d01_rev_0.1)
    2009-03-13 09:00:41下载
    积分:1
  • control_lab3
    Control laboratory. Lab Course
    2014-12-05 01:46:32下载
    积分:1
  • custom-sidebars.3.2.3
    侧边栏—— 自定义边栏 - 动态窗口小部件区域管理器 制作自定义侧边栏配置,并能够选择在网站的每个页面或帖子上显示哪些小部件。(sidebar Custom Sidebars Dynamic Widget Area Manager Make custom sidebar configurations and be able to choose what widgets display on each page or post of your site)
    2019-06-17 16:38:37下载
    积分:1
  • 采用C#2.0编写的版本控制工具。提供了一个用于开发版本控制工具的类库svnlib以及用于提交文件时添加日志信息的钩子函数。...
    采用C#2.0编写的版本控制工具。提供了一个用于开发版本控制工具的类库svnlib以及用于提交文件时添加日志信息的钩子函数。-SubversionTools is written in c# 2.0 (also work with .NET 3.x). The goal of this project is to provide some tools and helper classes for Subversion. A class library project named SvnLib for developing Subversion tools. ChkCommitMsg.exe- a Subversion pre-commit hook that enforce log messages when committing files.
    2022-01-26 06:52:59下载
    积分:1
  • svm_gesture_recognition
    基于opencv的手势识别 1、hog : hog特征提取 2、hogTainer : 样本训练,利用了SVM方式 3、gestureRecognition : 手势识别,利用了训练得出的线性分类器进行识别分类 训练样本在hog文件夹中,对应gesture_a到gesture_e ,五种手势(Gesture recognition 1, hog: hog feature extraction 2, hogTainer: sample training, the use of SVM mode 3, gestureRecognition: gesture recognition using training resulting linear classifier for recognition and classification of training samples in hog folder corresponding to gesture_a gesture_e, five kinds of gestures)
    2020-12-14 11:59:14下载
    积分:1
  • httpclient
    说明:  支持post 和get的httpclient ,是windonw平台,拿来直接用功能编译就可以生成动态库(Httpclient, which supports post and get, is a windonw platform, which can be directly compiled with functions to generate dynamic libraries.)
    2019-01-14 22:35:48下载
    积分:1
  • 696518资源总数
  • 104441会员总数
  • 19今日下载