登录
首页 » C » 温度采集代码 基于89c51单片机

温度采集代码 基于89c51单片机

于 2023-08-07 发布 文件大小:2.12 kB
0 105
下载积分: 2 下载次数: 1

代码说明:

基于89C51单片机 温度采集代码#include #include /**************外部变量定义************************/int num=0,num1=0; int set_t=20;double set_ph=7.0;double set_tu=3.0;/**************变量定义***************************/unsigned char AD_CHANNEL;double PH=0.0,TU=0.0;xdata unsigned char disbuff[14]={0};unsigned char Tempbuff[9];double ADC_Voltage=0.0,ADC_Voltage1=0.0;void Set_TU_Display();void Set_PH_Display();void Set_Temp_Display();unsigned char temp_value; bit SET_flag=0;   //设定温度标志位int SET_Count=0;bit Warning_flag=0;sbit Beep =P2^3;sbit LED1 =P1^1;sbit LED2 =P1^2;sbit LED3 =P1^3;sbit LED4 =P1^4;void ReadTemp(void); void Delay_Beep(unsigned int i);/* * 函数名:Get_Voltage_Value * 描述  :获取ADC0809的转换电压值 

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

发表评论

0 个回复

  • Exam1
    将Matlab下的M文件转换为DLL,在VC中调用.(M under the Matlab files into the DLL, the VC call.)
    2007-08-21 13:15:25下载
    积分:1
  • stm_24c64
    stm32f103zet6读写EEPRAM的例子,固件库是V3.5版本的(stm32f103zet6 read EEPRAM example, firmware version V3.5 library is)
    2013-11-25 08:49:21下载
    积分:1
  • IntegerProgramming
    用C++解决整数规划的作业,输入和输入用算法实现题中的要求。使用了分支定界法(Using C++ to solve integer programming tasks, input and input algorithm to achieve the requirements. Using the branch and bound method)
    2018-05-20 10:19:53下载
    积分:1
  • 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
  • EMPAddressRegister_src
    The control seems like the Microsoft Outlook Address Register Control (under Contacts) with a little bit more .NET-Style. I created this control due to my own need. I don t have enough time to create a big article about this control. You can easily add this control to your project and to your main form. Modify the buttons labels thru the AddressManager.cs "buttons[]private string[] menuitems = new string[]{ ... } ".(The control seems like the Microsoft Outlook Address Register Control (under Contacts) with a little bit more.NET-Style. I created this control due to my own need. I don t have enough time to create a big article about this control. You can easily add this to your project control and to your main form. Modify the buttons labels thru the AddressManager.cs "buttons private string [] [] = new menuitems string [] (...).")
    2006-03-16 22:57:55下载
    积分:1
  • duogongnengludeng
    控制路灯的亮灭,控制景观灯,单双路灯控制(Control lights light off, control landscape lights, odd and even street lighting control)
    2014-02-16 10:14:19下载
    积分:1
  • 8位pwm呼吸灯控制
    m128的pwm控制,控制呼吸灯,已经编译过了(PWM control of M128)
    2020-06-20 21:40:02下载
    积分:1
  • 基于Arduino Pro Mimi_语音播放彩灯系统
    睡前给小朋友讲故事,哄自己的宝贝睡觉,已经成为很多家长的沉重负担,特别是很多女性,既要在外面拼搏,又要负责繁重的家务,好不容易想躺一下,不通情达理的心肝宝贝吵着听故事,真累! 这款智能设备可以为您分忧解难:通过ardiuno min单片机,语音模块,RGBLED模块,机智云平台,用手机作为控制界面,随心所欲地控制一个深受小朋友喜爱的,能播放故事,音乐,还能发出五彩缤纷,变幻莫测的灯光,秒杀小主人的无理要求,让你瞬间从纠缠中解脱出来。 人工智能
    2022-01-25 14:15:11下载
    积分:1
  • 用C写的一个简单的垄断#
    A simple monopoly written in c#
    2022-02-05 16:36:51下载
    积分:1
  • Winform
    winfrom入门基础,适合刚入门的朋友学习。(the base instruction of winfrom)
    2018-11-07 21:52:09下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载