//***********************************************************************************************************
// File Func
tion: N76E003 APROM program DATAFLASH as EEPROM way
//***********************************************************************************************************
#include "N76E003.h"
#include "Common.h"
#include "Delay.h"
#include "SFR_Macro.h"
#include "Function_define.h"
#define ADDR_BASE 0x4700
#define FLASH_L_LOW ADDR_BASE+1
#define FLASH_L_HIGH ADDR_BASE+2
#define FLASH_H_LOW ADDR_BASE+3
#define FLASH_H_HIGH ADDR_BASE+4
volatile unsigned char xdata page_buffer[128];
UINT8 Read_APROM_BYTE(UINT16 code *u16_addr)
{
UINT8 rdata;
rdata =
*u16_addr>>8;
return rdata;
}
*u16_addr>>8;为什么要右移的?