/*****************************************************************************************************************
write_DATAFLASH_BYTE :
user can copy all this subroutine into project, then call this function in main.
******************************************************************************************************************/
void write_DATAFLASH_BYTE(UINT16 u16_addr,UINT8 u8_data)
{
UINT8 looptmp=0,u8_addrl_r;
unsigned char code *cd_longaddr;
unsigned char xdata *xd_tmp;
void main (void)
{
UINT8 datatemp;
/* -------------------------------------------------------------------------*/
/* Dataflash use APROM area */
/* APROM 0x3800~0x38FF demo as dataflash */
/* Please use Memory window key in C:0x3800 to check earse result */
/* -------------------------------------------------------------------------*/