00001 #include <stdio.h> 00002 #include <eZ8.h> 00003 #include <sio.h> 00004 #include "main.h" 00005 00006 void writeFlash(void) 00007 { 00008 x=0x45; 00009 WRITE_FLASH((rom const *)0x4010,x); // write to addr =0x4010 00010 x=0x44; 00011 WRITE_FLASH((rom const *)0x4011,x); // write to addr =0x4010 00012 x=0x57; 00013 WRITE_FLASH((rom const *)0x4012,x); // write to addr =0x4010 00014 x=0x49; 00015 WRITE_FLASH((rom const *)0x4013,x); // write to addr =0x4010 00016 x=0x4E; 00017 WRITE_FLASH((rom const *)0x4014,x); // write to addr =0x4010 00018 x=0xAA; 00019 x = READ_FLASH((rom const *)0x4010); // read from addr=0x4010 00020 }