RandomRead Command with Eeprom And 2148.
2006-03-21 by punkandsska123
Hi, I want to read an Eeprom 24LC515 provided by microchip with 2148. To try, I want to use the Random Read operation after writing at a specific adress so I can know if memory work. So I write at 0x0000 and all work fine. Now I want to Read at adress 0x0000. ( I can't use Current read adress because the internal adress memory counter is now at 0x0001 ). So I start by 0x08 -> Send Control Byte. ( Write Mode ) 0x18 -> Send Adress High Byte 0x28 ( First Time ) -> Send Adress Low Byte 0x28 ( First Time ) -> Here is the problem. Hi set : I2C0CONSET = 0x10; ( I set the Start byte ) I2C0DAT = 0xA1. ( Control Byte. Read Mode ) But If I do that I have 0x10 in I2CStat. What I'm doing wrong.