Yahoo Groups archive

Lpc2000

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

Message

Re: I2C on LPC2148

2006-05-03 by rtstofer

--- In lpc2000@yahoogroups.com, "Sutton Mehaffey" <sutton@...> wrote:
>
> I've still having issues with getting I2C to work.  I'm not even
> seeing SCL on my scope.  I'm using a Embedded Artists prototype board
> with the 2148 board.  If I have a hard loop with I2C0CONSET = 0x20 and
> a wait for the SI flag, shouldn't I see SCL on the scope?  Or can you
> not issue a START over and over?  Assuming, of course, that my initial
> setup of the I2C is correct.  Thanks.
> 
> Sutton
>

philips_apps has posted demo code for two different development
platforms but the code itself should work anywhere.  See the Files
section here and scan down looking for 'philips_apps' or the file
LPC214x_LPC213x Sample code for Keil.zip - a little more than half way
down.

In my view, and it isn't universally shared, the chances of getting
I2C to work without a logic analyzer are quite slim.  It would be
better to start with code that is known to work even if compiler
specific code had to be changed.

Richard

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.