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

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

于 2023-08-07 发布 文件大小:2.12 kB
0 106
下载积分: 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 个回复

  • openglearthsun
    opengl地球太阳模型,可以用键盘调整地球公转速度。(opengl sun Earth model, you can use the keyboard to adjust the speed of the Earth' s revolution.)
    2020-07-02 10:20:02下载
    积分:1
  • VCChat-Room-server-implementation_v1
    聊天室,可以用来聊天的聊天室,差不多像QQ一样的东西(chatroomthat you can use it tochat with your friends,just like qq)
    2016-09-26 17:28:34下载
    积分:1
  • mo_hu_kongzhibiao
    应用matlab进行的模糊控制表的生成编程,经过多次调试,使用效果较好。希望对你的学习有所帮助。(Application of matlab for fuzzy PID programming, a number of debugging better. I hope to be helpful to your learning.)
    2012-05-20 12:02:46下载
    积分:1
  • Blink_6713
    宇志通信通用信号处理 开发板-GN0204中的测试EMIF的例程:利用TMS320C6713 TC2空间总线接口分别控制板上发光二极管闪烁(Ushi communication common signal processing board-GN0204 EMIF in test routines: Using TMS320C6713 TC2 space bus interface control the light-emitting diode panel flashes)
    2015-01-22 15:59:36下载
    积分:1
  • PeculiarMenu
    菜单的编写与描述,可以帮你更好的学习C++(Peculiar Menu help you to study C++,and it s good for you)
    2017-03-11 02:40:58下载
    积分:1
  • 06178ca18450
    Delphi控件源码 操作系统开发 中间件编程 MacOS编程(Applet )
    2012-12-16 23:13:24下载
    积分:1
  • ArcEngine出柱状图
    资源描述用ArcEngine生成多种样式的专题地图,版本为ArcGIS10.1
    2022-04-23 00:05:10下载
    积分:1
  • InserSigList
    单链表的插入。数据结构中的算法小程序。初学者很适用。(Single-linked list insertion. Data structure of algorithm applet. Beginners are applicable.)
    2016-02-18 15:09:12下载
    积分:1
  • I AM VERY BUSY
    说明:  code for i am very busy
    2019-04-11 23:29:13下载
    积分:1
  • RS(255-223)
    用matlab实现RS(255,223)的编码,叫噪声,译码,并求出纠错个数,可以正确运行。(RS (255,223) coding using matlab, called noise, decoding, and calculated the number of error corrections, you can run correctly.)
    2012-11-07 00:04:26下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载