• XBYTE [] Addressing Problem
    HI, How to specify a address while writing to EEPROM in 89c51ED2. It is writing to EEPROM when I give the following code after setting the flags of EECON register. XBYTE[0x0050] = '1';...
  • a!=b&0xff
    unsigned char a=0x12; unsigned char b=0x22; if(a!=b&0xff)//is not true,but why? a = 0; else b = 0;//execute this "a!=b" is true ,so “true &0xff ”should be true,I want to know the c51 compiler why...
  • Questions about XBYTE
    Hi I'm new to Keil so please bear with me. for(nddX=0;nddX<imgDownloaded.bWidth;nddX++) XBYTE[HIGHEST_BYTE|START_1BYTE]=bImage[nPnt+nddX]; where HIGHEST_BYTE is defined as 0x30 and START_1BYTE...
  • how to declare a xbyte address in the function's parameter?
    I has defined some xbyte macro,as belows: #define PA XBYTE[0XF100] #define PB XBYTE[0XF200]..... now,i want pass the PA and PB as a parameter of a function, how to declare them in the function...
  • Default 0xFF in unused flash memory (MOV R7,A)
    C8051F360 It has recently occured to me that the default instruction 0xFF that exists in all un-used flash memory is not a NOP instruction. I understand that flash memory just works that way...