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

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

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

  • matrix
    matrix.C 该文件是矩阵键盘的驱动代码,其中包括了main主函数以及矩阵键盘判读的代码( matrix.C )
    2013-11-04 13:02:32下载
    积分:1
  • N_queue
    根据回朔法思想来求解N皇后问题,用递归来实现回朔.(Thought to solve N Queen's problems, and use recursion to achieve back Schomburg.)
    2005-05-10 00:27:58下载
    积分:1
  • VC++数组的简单写法
    C++数组的简单写法,新手专用学习!!!!!!!!
    2022-03-25 15:23:22下载
    积分:1
  • 3-2
    获取计算机IP地址。可以试试看。源码用C++实现(C++)
    2009-12-19 10:09:17下载
    积分:1
  • student-manage
    用可视化MFC写的一个学生成绩管理系统,用Access数据库,里面可以查询多门课成绩,并根据条件选择学生,测试过,可用。(Visualization MFC write a student performance management system, with the Access database, which can query multiple course grades, and select students according to the conditions tested, can be used.)
    2012-11-01 17:19:19下载
    积分:1
  • ADODateGrid
    使用SQL语句对数据库进行通用操作,使用DataGrid控件显示,VC++经典编程学习源码,很好的参考资料。(Use the SQL statement to the general operation of the database, use the DataGrid control to display, VC++ classic learning programming source code, a good reference.)
    2013-11-25 12:52:36下载
    积分:1
  • HundaLCDs_I2C
    平台的第一个帖子,测试上传是否可以用。处女贴,请见谅(The first post of the platform is test upload. Maiden paste, please forgive me)
    2018-04-23 00:11:35下载
    积分:1
  • MSP430
    说明:  MSP430F5529控制小车的部分程序,希望可以对大家有帮助(MSP430F5529 control car part of the program, I hope you can help)
    2020-06-18 10:00:01下载
    积分:1
  • ZTEICDriver
    设计中的网络VOIP电话修改版第7版,其中的主芯片的驱动,应该没有什么问题了,已经大批量生产。(Design a modified version of VOIP phone network version 7 should be no problem, have mass.)
    2011-06-29 15:59:31下载
    积分:1
  • CreateProcessAsUser
    主要的功能是创建用户使用的一个子进程,一般的子进程都是由system启动的,但是这个是当前用户启动的。(The main function is to create a user using a subset of the process, a subset of the general process is initiated by system, but this is the current user initiated.)
    2012-10-30 11:21:46下载
    积分:1
  • 696518资源总数
  • 106215会员总数
  • 5今日下载