21ic问答首页 - 赛元sc92f8595的eep相关问题
赛元sc92f8595的eep相关问题
林哈哈2022-09-22
我在使用这个eep时候,想通过LED亮灭来模拟断电次数,但是不管上电几次LED一直亮,问一下是什么原因造成的 void man()
{
IO_Init(); WDTCON |= 0x10; //清看门狗
OPERCON = 0X01; //CHKSUM运算
_nop_();
Timer_Test();
Uart0_Test();
IapReadData1 = IAPRead(0x1ff,0x02);
//IAPADE = 0x00; //IAP指针指回ROM区
if(IapReadData1 == 0xff)
{
P43 =1;
IAPWrite(0x1ff,0x00,0x02);
}
else
{
P43 =0;
IAPWrite(0x1ff,0xff,0x02);
}
while(1)
{
}
}
{
IO_Init(); WDTCON |= 0x10; //清看门狗
OPERCON = 0X01; //CHKSUM运算
_nop_();
Timer_Test();
Uart0_Test();
IapReadData1 = IAPRead(0x1ff,0x02);
//IAPADE = 0x00; //IAP指针指回ROM区
if(IapReadData1 == 0xff)
{
P43 =1;
IAPWrite(0x1ff,0x00,0x02);
}
else
{
P43 =0;
IAPWrite(0x1ff,0xff,0x02);
}
while(1)
{
}
}
您需要登录后才可以回复 登录 | 注册