求各位高手看看这个程序哪里有问题 、、、
#include<reg52.h>#define uchar unsigned char
#define uint unsigned int
uchar num,b;
void delay();
uchar code table[]={
0x81,0x41,0x21,0x11,
0x18,0x14,0X12,0x11,
0x12,0x14,0x18,0x11,
0x21,0x41
};
void man()
{
while(1)
{
for(num=0;num<14;num++)
{
P0=table[num];
delay();
}
}
}
void delay()
{
uint x,y;
for(x=500;x>0;x--)
for(y=110;y>0;y--);
}