//P2口输出跑马灯功能
#include "sfr_r82l.h" /* Definition of the R8C/2L SFR */
unsigned int i,j,k;
unsigned char LED;
main()
{
pd2=0x0ff; //P2寄存器允许输出状态
LED=0x01;
p2=LED;
while(1)
{
for(i=0;i<7;i++)
{
for(j=0;j<5;j++)
{}
p2=(LED<<1);
LED=p2;
}
for(i=0;i<7;i++)
{
for(j=0;j<5;j++)
{}
p2=(LED>>1);
LED=p2;
}
}
}
单步运行时硬件可以实现.(但是全速运行时会死机,无法用STOP键停止,一按STOP机器就会出现 Communication timeout error.(please restart e8 SYSTEM)要求复位单片机???
共3条
1/1 1 跳转至页
求助,运行E8 一直出现Communication timeout error.(please restart e8 SYSTEM)要求复位单片机???

只看楼主 1楼
关键词: 求助 运行 一直 出现 Communication

共3条
1/1 1 跳转至页