各位老大!!!! 谁能给我hc08jl8的flash读写程序,C语言的..急用.
谢谢谢谢!!
void write_flash(unsigned int adr){ unsigned char i; FLCR=0b00000001; //1->GM,编程状态 i=FLBPR; //读FLBPR *((volatile unsigned char *)(adr))=0x11;//0x88->f000,选中flash行 delay(200); //10us FLCR=0b00001001; //1->HVEN delay(200); //10us *((volatile unsigned char *)adr)=0x11;//将数据写入相应的flash地址 delay(500); //10us FLCR=0b00001000; //0->GM delay(200); //10us FLCR=0b00000000; //0->HVEN }
上面的程序怎么不能进行写操作>?哪里有问题??
[此贴子已经被作者于2007-3-7 17:10:07编辑过] |