Hi All, Could some one please help me out in the way as to how to read from a 1024K mem. I am using 512K at the present moment using the operation below.
do{ GoMaster(addr); // set address if(NoAck==1)SendStop(); // if no acknowledge, end transaction }while (NoAck==1); SendByte((b_num & 0xff00)>>8); SendByte((b_num & 0x00ff)); SendByte(dat); SendStop();
You should extract the 17th bit of the address, place it in the P0 and send it along with the (address + R/W) byte. For ex, assume the device address bit A1=1. if the address of the EEPROM to read is 0x10000, then the very first byte you supposed to send after generating a START is '10100111'(i.e. 0xA7) - Neo
Hi Neo, Thank you for that, I will do that and try it out. Thank you Ajay