includereg52h>sbitr1=P2^0;sbitr2=P2^1;sbith1=P3^0;sbith2=P3^1;voiddelay(unsignedcharx);charscank(
#includemsp430x14x.h>unsignedcharkeybuff[10];unsignedcharkeypoint=0;voiddelay(intv){while(v!=0)v-
#includereg51.h>sbitP1_1=P1^1;/*************延时子程序*******************************/voiddelay(unsign
C代码:#includeAT89X51.h>/*************延时子程序*******************************/voiddelay(unsignedintx)/
#includereg51.h>#defineuintunsignedint#defineucharunsignedcharsbitcs=P3^0;sbitwr=P3^1;voiddelay(u
其对应的C应用如下:#includereg51.h>sbitp20=P2^0;sbitp21=P2^1;sbitp22=P2^2;sbitp23=P2^3;voiddelay(unsignedi