#include#include#defineucharunsignedchar#defineuintunsignedint/*通信命令*/#define_ACTIVE_0x01//主机询问从机是否存
#includereg51.h>#defineucharunsignedchar#defineuintunsignedintsbitINPUT1=P1^0;//控制口sbitINPUT2=P1^
#includeio8535v.h>#defineucharunsignedchar#defineuintunsignedintucharTable[10]={0x3f,0x06,0x5b,0x
#includeio8535v.h>#defineucharunsignedchar#defineuintunsignedintucharTable[10]={0x3f,0x06,0x5b,0x
keilc编译51#defineucharunsignedchar#defineuintunsignedint#includereg51.h#includeintrins.hsbitScl=P3^3;
#includereg51.h>#defineucharunsignedchar#defineuintunsignedintsbitK1=P3^7;uchari,second_count,key
#includereg51.h>#defineucharunsignedchar#defineuintunsignedintsbitLED=P0^0;uchart_count=0;intmain
基于ds18b20温度传感器的51单片C语言程序#includeREG51.H>#defineucharunsignedchar#defineuintunsignedintsbitDQ=P1^1