Yahoo Groups archive

Lpc2000

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

Message

Re: I2C on LPC2148

2006-04-21 by Sutton Mehaffey

I had a typo in my posted text.  I actually was using 'A0' for the
write and a 'A1' for a read.  I went back and double checked to be
absolutely sure.  I guess the logic analyzer is the way to go, because
I still can't spot my problem.

Sutton



--- In lpc2000@yahoogroups.com, "Danish Ali" <danish@...> wrote:
>
> Watch out! You've used 0xA1 as your address. That implies
> a READ. It should be 0xA0 for a write.
> 
> Hope this helps,
> Danish
> 
> --- In lpc2000@yahoogroups.com, "Sutton Mehaffey" <sutton@> wrote:
> >
> > I'm back on my I2C problems since I was pulled off the project for a
> > month or so.  I'm still having some problems.  The problem I thought
> > was I was trying to address a 5V RAM instead of a 3.3V RAM.  I have
> > now a couple of ATMEL 256K serial RAM - 2.7V to 5V.  I am still having
> > trouble with understanding the status of the I2C bus.  It appears I am
> > getting the correct status, but even when the RAM is disconnected.  
> > 
> > I2C0CONSET = 0x20;    // Issue Start
> > (status responds with 0x08)
> > I2C0DAT = 0xA1;       // Issue a write command to RAM
>             ^^^^ No!
> > I2C0CONSET = 0x04;    // Set AA bit for ACK
> > I2C0CONCLR = 0x28;    // Clear STA and SI flags
> > (status responds with 0x18)
>

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.