#include
#define uint unsigned int //宏界说
sbit SPK=P3^5; //界说喇叭端口
void delay(uint z)
{
uint x,y;
for(x=z;x>0;x–)
for(y=110;y>0;y–);
}
void main()
{
delay(100);
}
includereg52h>defineuintunsignedint宏定义sbitSPK=P3^5;定义喇叭端口voiddelay(uintz){uintx,y;for
#include