Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

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.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.