Yahoo Groups archive

Lpc2000

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

Message

Re: I2C question

2006-05-04 by Sutton Mehaffey

Richard,

In my code (that doesn't work yet), I am not using an interrupt.  But,
constantly polling the SI bit.  Is this not a valid way to do it?  If
not, that could be part of my problem.  In this instance, I don't need
to be doing anything while doing I2C, so I thought I would save an
interrupt.

Sutton


--- In lpc2000@yahoogroups.com, "rtstofer" <rstofer@...> wrote:
>
> Rather than using external gates to trigger the scope, it may be just
> as easy to use a spare IO pin and set it when the Start condition is
> set by I2C0CONSET=0x20 (or similar).  Then clear the pin upon entry
> into the interrupt routine.
> 
> I posted a reply similar to this earlier.  It appears to have gotten
> lost.  If it shows up, I will delete it.
> 
> 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.