Hi Jerome, > 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. nothing. :-) 0x10 means "repeated start condition" and happens, when you send a start without sending a stop before. that's exactly what you want to do during read. I only wonder, why you sent the control byte in read mode that early. I would expect it in state of 0x10. I hope I could help you. I managed the random read, but still got some problems with the sequential. let me know if it worked out. Jan
Message
Re: RandomRead Command with Eeprom And 2148.
2006-03-22 by cuemaker_e
Attachments
- No local attachments were found for this message.