#includereg52.h>#includeintrins.h>#includemath.h>#defineucharunsignedchar#defineuintunsigne
#includereg52.h>#includeintrins.h>//**********************************************************
//main.c[cpp]viewplaincopyprint?#includeSTC_NEW_8051.H>#includeControlRobot.h#includeintrins.h>
#includeREG51.H>#includeintrins.h#defineuintunsignedint#defineucharunsignedcharuintsecond;codeuns
///////头文件区//////////////////////////////////////#includereg51.h#includeintrins.h///////////////////
#includeREG51.H>#includeintrins.h#defineuintunsignedint#defineucharunsignedcharsbitbeep=P3^4;ucha
#includereg51.h#includeINTRINS.H#includeLCD.h#defineCLR_RI(RI=0)#defineCLR_TI(TI=0)unsignedcharcodeI
#includeAT89X52.H>#includeintrins.h>sbitDQ=P2^2;//定义DS18B20端口DQsbitBEEP=P2^3;//定义报警接口unsignedc