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

STM8S电量指示程序

于 2022-03-02 发布 文件大小:3.95 MB
0 82
下载积分: 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 个回复

  • smal
    SMAL是short message abstract library的缩写,是由风起水流软件工作室(www.zealware.com)开发的一个支持短信网关系统开发的C++底层抽象接口库,通过对移动、联通、网通、电信等运营商使用的各种短信协议和底层通信的抽象封装,SMAL实现了一个高度自适应的短信协议栈,包括CMPP,SGIP,SMPP,SMGP,CNGP,EMPP等短信协议,同时可以很方便地在上面扩展实现新的协议和自定义的内部协议等。 SMAL目前支持的协议包括中国移动的CMPP2.0,CMPP3.0,中国联通的 SGIP1.2, SGIP1.2修订版,中国电信的SMGP2.0,SMGP3.0,中国网通的CNGP2.0,和国际标准SMPP3.3,SMPP3.4,以及企信通协议EMPP等。(SMAL is a short message abstract library acronym by wind currents from studio software (www.zealware.com) to develop a support system developed by SMS Gateway C++ Underlying abstract interface library, through the Mobile, Unicom, Netcom and telecommunications operators using a variety of messaging protocols and the bottom of the abstract communications package, SMAL achieve a highly adaptive messaging protocol stack, including the CMPP, SGIP, SMPP, SMGP, CNGP, EMPP such as SMS agreement, at the same time can be easily above the realization of the new agreement to expand and customize the internal agreement. SMAL currently supports the agreement, including China Mobile CMPP2.0, CMPP3.0, China Unicom SGIP1.2, SGIP1.2 revised edition, China Telecom SMGP2.0, SMGP3.0, China Netcom CNGP2.0, and international Standard SMPP3.3, SMPP3.4, as well as enterprises, such as ICT EMPP agreement.)
    2009-01-05 22:45:41下载
    积分:1
  • OgreVideoPlayer
    使用三维开源引擎OGRE 播放视频的源代码 游戏编程粉可以给自己的游戏加上过场动画啦!(Use the source code of the open source 3D engine OGRE play video game programming powder can give their own game with cut scenes it!)
    2013-01-16 09:46:02下载
    积分:1
  • SinusoidalBLDCMC204_MCLV
    基于 dspic30fj 的 bldc 直流无刷电机带传感正弦波调速程序(BLDC dspic30fj DC brushless motor speed control program based on sine wave with sensor)
    2014-10-30 10:49:46下载
    积分:1
  • AJAX WCF WinForm示例源码下载
    大部分WCF都是寄宿于IIS,寄宿于WinForm的资料很少。 有相同需求的可以参考下。
    2014-05-19下载
    积分:1
  • datagridview
    C#中datagridview控件行是否被选中代码(C# in the datagridview control whether the selected code)
    2009-05-04 15:33:12下载
    积分:1
  • ch555555
    C数据结构常用算法程序集5,描述数据结构算法。(C data structures commonly used algorithm suite 5, describe data structure algorithms.)
    2005-05-09 16:17:59下载
    积分:1
  • stm32f429 spi flash文件系统
    stm429 spi flash文件系统例程,支持fat格式的文件,帮助开发这学习文件系统的开发
    2022-05-17 18:12:27下载
    积分:1
  • telephonesystem
    电话本系统是实现的功能是对通讯录的增删改查,是基于C/S三层架构的,用C#实现(Phone function of the system is to achieve is to address book additions and deletions to the investigation, is based on the C/S three-tier structure, with the C# implementation)
    2010-12-06 12:13:46下载
    积分:1
  • hedaoqiantan
    说明:  河道浅滩预测 MATLAB编程(MATLAB programming shallow river forecast)
    2009-08-13 18:16:05下载
    积分:1
  • fft
    快速傅里叶变换(FFT)算法C++实现代码 (Fast Fourier Transform (FFT) algorithms to achieve C code)
    2007-07-02 16:34:38下载
    积分:1
  • 696518资源总数
  • 105559会员总数
  • 1今日下载