页擦除和写字节是如何实现的?
#define Page_Erase ((unsigned char(*)(unsigned int))(PGM))
#define Program_Byte ((unsigned char(*)(unsigned int, unsigned char))(PGM))
PGM数组里的操作代码是如何生成的?执行时是如何拷贝到ram中的?
volatile unsigned char PGM[57] = {
0x87,0xc6,0x18,0x25,0xa5,0x10,0x27,0x08,0xc6,0x18,
0x25,0xaa,0x10,0xc7,0x18,0x25,0x9e,0xe6,0x01,0xf7,
0xa6,0x40,0xc7,0x18,0x26,0x45,0x18,0x25,0xf6,0xaa,
0x80,0xf7,0x9d,0x9d,0x9d,0x9d,0xc6,0x18,0x25,0xa5,
0x30,0x27,0x04,0xa6,0x01,0x8a,0x81,0xc6,0x18,0x25,
0xa5,0x40,0x27,0xf9,0x4f,0x8a,0x81
};
|