在keil uvision3上调试程序时状态栏显示error 56:cant open file,这是什么意思?下一步该怎么操作?
#include<reg51.h>#include<intrins.h>#defineunitunsignedint#defineucharunsignedcharuch...
#include<reg51.h>
#include<intrins.h>
#define unit unsigned int
#define uchar unsigned char
uchar code table[]={0xc0,0xf9,0xa4,0xb0, 0x99,
0x92,0x82,0xf8,0x80,0x90};
void delayms(unit x);
void display(uchar y);
void main()
{ uchar aa=0x80,j;
while(1)
{P3=aa;
for(j=0;j<10;j++)
display(j);
aa=_cror_(aa,1);}}
void display(uchar y)
{P0=table[y]; delayms(400);
P0=0xff;}
void delayms(unit xms)
{ unit i,j;
for(i=xms;i>0;i--)
for(j=130;j>0;j--);} 展开
#include<intrins.h>
#define unit unsigned int
#define uchar unsigned char
uchar code table[]={0xc0,0xf9,0xa4,0xb0, 0x99,
0x92,0x82,0xf8,0x80,0x90};
void delayms(unit x);
void display(uchar y);
void main()
{ uchar aa=0x80,j;
while(1)
{P3=aa;
for(j=0;j<10;j++)
display(j);
aa=_cror_(aa,1);}}
void display(uchar y)
{P0=table[y]; delayms(400);
P0=0xff;}
void delayms(unit xms)
{ unit i,j;
for(i=xms;i>0;i--)
for(j=130;j>0;j--);} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询