This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Busy flag of AT89C51ED2 is not getting cleared!!!

Hi Keil,

I have written the follwing code for writing the byte in EEPROM in ED2. The Problem is BUSY flag is not being cleared.

while(!(EECON & 0x01)) ;
EA = 0;
EECON |= 0x02;

XBYTE[0X0055] = 'C';

EECON |= OxOO;
EA = 1;

Please provide the suggesion.