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

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

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

  • STM32参考程序
    基于STM32F103利用SPI协议,RC522多功能读取,修改,删除卡片(Based on STM32F103 and SPI protocol, RC522 can read, modify and delete cards with multiple functions.)
    2020-06-20 13:40:01下载
    积分:1
  • 一个简单的小计算器
    简单计算器 一个小小的计算器-a simple little calculator
    2022-06-14 14:18:12下载
    积分:1
  • 人脸识别全套完整程序
    本程序用于解决人脸识别,,能够很好的实现人脸识别功能,,准确率高,对大家一定会有所帮助,多多下载,多多研究,是一个不错的学习资料。哈哈哈哈哈,说实话是在混积分
    2022-06-16 00:43:54下载
    积分:1
  • BHS STM32 实验29-CAN通讯 (直接操作寄存器)
    准备两个CAN板子,连接两个CAN接口,两个板子都下载本程序。 本实验通过CAN总线控制另外一个板子的LED2~LED5闪烁的例子,如果通信正常可以看到两个板子的LED都再闪烁, 如果通信失败或者断开通信线,LED不再闪烁(Prepare two CAN board, connecting the two CAN interface, two board are download the program. This experiment through the CAN bus control another board LED2 ~ LED5 flashing example, if communication normal CAN see two board LED twinkle again, If communication failure or off the line, LED will no longer flash)
    2012-04-16 14:13:56下载
    积分:1
  • Timer_PWM
    本多程序完成用MSP430G2553中的定时器A完成PWM波的输出(The multi-program the timer complete with MSP430G2553 A Complete PWM wave output)
    2013-11-14 22:16:05下载
    积分:1
  • FBX-Loader-OpenGL-C--master
    说明:  fbx 模型加载 opengl 动画渲染(fbx module opengl animation render)
    2019-06-09 16:50:04下载
    积分:1
  • CPPrumen
    说明:  C++入门到精通,一本蛮不错的书,我看完以后觉得收获挺大的,希望大家会喜欢(C++ entry to the master, a very good book, I read, I felt the big harvest, we hope you like)
    2011-03-02 19:35:14下载
    积分:1
  • 电磁双车-超音
    第十二届全国大学生智能车电磁组源代码,整车程序 本人(The Twelfth National College Students intelligent vehicle electromagnetic group source code)
    2017-09-03 16:32:23下载
    积分:1
  • 51例程
    陀螺仪数据读取,通过串口进行数据读取...(Gyroscope data reading)
    2019-06-05 12:23:59下载
    积分:1
  • W5500 网页远程配置设备
    说明:  stm32的基于w5500 的例子程序,希望能有用(Based on the example program of w5500, I hope it will be useful.)
    2020-06-19 16:00:02下载
    积分:1
  • 696518资源总数
  • 106215会员总数
  • 5今日下载