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

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

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

  • USART
    基于LPC11U24,可实现 usart,的调用程序。(based on lpc11u24)
    2014-02-13 17:06:35下载
    积分:1
  • 6
    说明:  串口通讯实验: 本实验得到的结果为,打开超级终端,设置波特率为115200,数据流控制位为无。运行系统,就会显示“UART & Interrupt Experiment,Please Input from the keyboard”,我们就可以通过写串口操作。 在flash调试时,需要修改RO BASE为0x00000000,其他不用修改,重新编译下载就可运行。 注意:由于系统产生中断,程序计数器就会跳到0x18处执行中断服务子程序,所以不能在SDRAM调试。 (Serial communication experiment: the results of this experiment, open HyperTerminal, set the baud rate to 115200, data flow control bit is not. Operating system, it will display &quot UART &amp Interrupt Experiment, Please Input from the keyboard&quot , we can write the serial port operation. Debug in flash, you need to modify the RO BASE is 0x00000000, the other not modify, recompile download can run. Note: Due to system interrupt, the program counter will jump to 0x18 Department execute the interrupt service routine, it can not debug the SDRAM.)
    2010-09-01 22:57:00下载
    积分:1
  • VCPP-Mp3
    vc实现mp3播放器,界面堪比qq静听,美观大方。窗口停泊(vc mp3 player interface is comparable to the qq listening, nice. Berthing window)
    2013-04-25 10:59:14下载
    积分:1
  • 商品管理系统stl-控制台
    stl 实现的 商品管理系统  控制台编写。商品添加删除,二手商品,管理,海外商品。排序。价格。品管理类 CommodityManage 实现对购物篮中商品数据集合的管理,包含Commodity 指针作为数据成员(指向动态分配的 Commodity 数组),实现商品的添加、移除等操作。 动态数组在创建时根据初始大小动态分配内存, 当分配的内存占满后,再动态扩充容量。向购物篮添加商品:为简化处理,新增商品添加到现有数据的尾部,商品数量加 1; 如果添加商品的 Id 已经存在,只是累加购买数量。从购物篮删除商品: 根据用户指定的商品 Id,查找指定 Id 的商品是否存在,若存在则删除相应的商品信息,若不存在则提示信息。删除商品成功后,商品数量减 1。查看指定商品: 根据用户指定的商品 Id
    2022-08-12 08:47:20下载
    积分:1
  • uCOS-II-study-book
    μCOS-II study book,μCOS-II study book,μCOS-II study book,μCOS-II study book,
    2014-06-19 11:58:50下载
    积分:1
  • Linux C编程入门
    说明:  基于Ubuntu版本来,在Linux中编写C语言代码,Linux编程进阶,Linux的文件编程,Linux的流编程,Linux的进程,Linux的线程,Linux的信号和进程间通信,Linux的管道、命名管道和进程间通信,Linux的System V IPC进程通信等(linux C programe book)
    2021-01-17 01:49:14下载
    积分:1
  • 位置信息系统
    开发的位置管理系统,作为一个尝试
    2022-01-24 13:16:42下载
    积分:1
  • SQl 数据变化监控
    通过对Sql 的Broker的监控,根据数据表编发出发前端事务
    2022-09-10 13:35:03下载
    积分:1
  • Chartlet制作漂亮的统计报表,这是一个简单的可供学习的例子
    Chartlet制作漂亮的统计报表,这是一个简单的可供学习的例子-Chartlet create beautiful statistical reports, this is a simple example for learning
    2022-04-28 12:54:08下载
    积分:1
  • modbus 主机源码
    modbus 主机源码 用STC89C58单片机做的数据采集和控制,12位AD转换使用TLC2543,通讯协议采用MODBUS(RTU),通过拨码开关改变从机地址,支持模拟量或数字量的读写。(4路模拟量输入、6路开关量输出(继电器输出)、8路开关量输入)开发环境:KEIK 7.06
    2020-12-08下载
    积分:1
  • 696518资源总数
  • 105563会员总数
  • 11今日下载