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

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

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

  • Dichlorvos0.72
    Vt源码修改的调试器, 想要学习过保护可以用来借鉴..( Vt source code to modify the debugger, you can protect)
    2016-11-20 16:21:24下载
    积分:1
  • VNC源码
    VNC源码
    2014-09-12下载
    积分:1
  • stm32 USART串口收发程序
    * @file    USART/Interrupt/stm32f10x_it.c    * @author  MCD Application Team   * @version V3.5.0   * @date    08-April-2011   * @brief   Main Interrupt Service Routines.   *          This file provides template for all exceptions handler and peripherals   *          interrupt service routine.
    2023-03-27 05:35:04下载
    积分:1
  • test2
    TI dsp DSP281x 实例教程初学者必备 第2部分(TI dsp DSP281x_examples )
    2012-04-02 11:40:49下载
    积分:1
  • 光学仿真
    说明:  基于MATLAB的光学仿真,平面波与球面波干涉,平面波与平面波,球面波与球面波(the interference of the plane wave and the spherical wave)
    2020-09-12 17:00:21下载
    积分:1
  • DMA(basi-on-stm32F4)
    1.实现了对串口2的操作。 2.利用DMA+空闲中断+串口,完成了对变帧长数据的接收与发送。(1. To achieve the serial port 2 operation. 2. Using DMA+ idle interrupt+ serial port, completed the variable frame data reception and transmission.)
    2021-03-16 14:29:21下载
    积分:1
  • 实现摄像头标定代码
    这是自己编写的一个简单实用的摄像头标定程序,希望能帮到大家
    2022-06-26 10:56:04下载
    积分:1
  • Remoting-sample
    .net Remoting的客户端中间件通讯示例,妇幼全部源码。(Client middleware communication example. net Remoting, and women and children of all source code.)
    2014-02-12 22:23:44下载
    积分:1
  • C# GDI+绘图实例
    GDI 绘图实例
    2013-02-09下载
    积分:1
  • 01_源代码
    步进电机正反转调速系统设计,使用51单片机(Design of forward reverse speed adjustment system for stepping motor)
    2019-01-12 11:04:50下载
    积分:1
  • 696518资源总数
  • 105958会员总数
  • 18今日下载