c8051f360单片机flash擦除问题
EA=0;SFRPAGE=0x00;VDM0CN|=0x80;for(j=10000;j>0);RSTSRC=0x02;FLKEY=0xA5;FLKEY=0xF1;PSC...
EA = 0;
SFRPAGE = 0x00;
VDM0CN |= 0x80;
for (j = 10000; j > 0);
RSTSRC = 0x02;
FLKEY = 0xA5; FLKEY = 0xF1; PSCTL |= 0x03; VDM0CN |= 0x80; for (j = 10000; j > 0; j--); RSTSRC = 0x02; *pwrite = 0; PSCTL = PSCTL &~0x03;对于c8051f360单片机在对flash进行擦除的时候为什么VDM0CN,RSTSRC的值不随着所附的值变化呢?帮忙看看哪里有错误,谢谢! 展开
SFRPAGE = 0x00;
VDM0CN |= 0x80;
for (j = 10000; j > 0);
RSTSRC = 0x02;
FLKEY = 0xA5; FLKEY = 0xF1; PSCTL |= 0x03; VDM0CN |= 0x80; for (j = 10000; j > 0; j--); RSTSRC = 0x02; *pwrite = 0; PSCTL = PSCTL &~0x03;对于c8051f360单片机在对flash进行擦除的时候为什么VDM0CN,RSTSRC的值不随着所附的值变化呢?帮忙看看哪里有错误,谢谢! 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询