型号:HC908JL16.晶振20M
主要程序程序如下:
#define ERARNGE 0xFCBE
#define PRGRNGE 0xFC06
#define LDRNGE 0xFF30
const byte FLBPR_INIT @0x0000FFCF = 0xFE;
unsigned char BUS_SPD @0x0060; /* Value should equal 4x Bus speed */
unsigned char DATASIZE @0x0061; /* Number of bytes in data array (max 255) */
unsigned int ADDR @0x0062; /* Start address of FLASH to manipulate */
unsigned char DATA[4] @0x0064; /* Data to program into FLASH */
unsigned int *FILE_PTR = (unsigned int *)(&BUS_SPD);
uchar shezhi[4] @0x6c; //FLASH保存变量