void delayms(unsigned char ms)
// 延时子程序
{
unsigned char i;
while(ms--)
{
for(i = 0; i < 109; i++); //晶振为11.0592M时i<109,若为12M时,i 需设为<120
}
}
转载于:https://www.cnblogs.com/kallunloss/archive/2009/09/18/1568982.html