Yahoo Groups archive

Lpc2000

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

Message

Re: RandomRead Command with Eeprom And 2148.

2006-03-22 by punkandsska123

--- In lpc2000@yahoogroups.com, "cuemaker_e" <j.hansen@...> wrote:
>
> 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
>

Thanks for Help the problem was that I not do A stop Condition 
Before.

Now It work, and also sequential read partially work.  ( Just in 
debug mode, not in full speed.)

Thks.

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.