本人刚开始学单片机,现在学到平行扩展io口,自己做了个图。写了一小段代码!可是行不通!求高手帮忙!
#include<reg52.h>#include<absacc.h>#defineIO273XBYTE[0xFEFF]voiddel(){unsignedinta=50...
#include <reg52.h>
#include <absacc.h>
#define IO273 XBYTE[0xFEFF]
void del()
{
unsigned int a = 50000;
while(a--);
}
void main()
{
while(1)
{
P0 = 0xff;
P2 = 0xfe;
IO273 = 0x55;
del();
}
} 展开
#include <absacc.h>
#define IO273 XBYTE[0xFEFF]
void del()
{
unsigned int a = 50000;
while(a--);
}
void main()
{
while(1)
{
P0 = 0xff;
P2 = 0xfe;
IO273 = 0x55;
del();
}
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询