首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > DS18B20温度测量

DS18B20温度测量

  • 资源大小:1.77 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: 温度测量

资 源 简 介

/**********************BST-M51实验开发板例程*************************  平台:BST-M51 + Keil U4 + STC89C52*  名称:18b20温度显示(数码管)实验*  公司:深圳市亚博软件开发有限公司       *  日期:2015-7*  晶振:11.0592MHZ*  实验效果:接上18B20温度传感器数码管显示出当前温度******************************************************************/#include #define uchar unsigned char#define uint unsigned int#define dula P0 //段选信号的锁存器控制sbit wei1=P2^4;sbit wei2=P2^5;sbit wei3=P2^6;sbit wei4=P2^7;sbit DS=P2^2;           //define interfaceuint temp;             // variable of temperatureunsigned char code table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,                        0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};unsigned char code table1[]={0xbf,0x86,0xdb,0xcf,

文 件 列 表

温度计显示的C代码.txt

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.169556s