写有问题
正确的应该是这样的,能正常地使用
void FLASH_WR_1Byte(void)
{
uchar xdata *temp;
temp=0x5555;
*temp=0xaa;
temp=0x2aaa;
*temp=0x55;
temp=0x5555;
*temp=0xa0;
temp=0xe000; //待写的地址
*temp=0xff; //待写的内容
delay1ms(100);
}
发表时间:2005年11月7日21:57:07