Yahoo Groups archive

Lpc2000

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

Thread

I2C help

I2C help

2004-05-16 by cpexed

I am trying to get a LPC2106 to talk to a PCF8574A chip which is 8 bit
I/O expander. I cant seem to get any thing to happen when using the
I2C example posted in the files section here.

Do I need external pull up resistors on the scl and sda lines?

What initiates a transfer? setting the STA bit in I2CONSET? 

Would it be better to use an interupt driven approach? or just
directly control it in my main loop if I know exactly when I want to
recieve data? 

Thanks 
Josiah

Re: [lpc2000] I2C help

2004-05-16 by microbit

Hi Josiah,

> Do I need external pull up resistors on the scl and sda lines?

Yes, they're open drain pins (even when GPIO !)

The rest I don't know, haven't needed the I2C yet...

-- Kris

Re: [lpc2000] I2C help

2004-05-16 by Michael Mathews

Josiah,

Note that manufacturers code on the "A" version of this part is 7 and not 4 
as in code examples for the non "A" PCF8574.

Mike

At 11:46 AM 5/16/2004, you wrote:
Show quoted textHide quoted text
>I am trying to get a LPC2106 to talk to a PCF8574A chip which is 8 bit
>I/O expander. I cant seem to get any thing to happen when using the
>I2C example posted in the files section here.
>
>Do I need external pull up resistors on the scl and sda lines?
>
>What initiates a transfer? setting the STA bit in I2CONSET?
>
>Would it be better to use an interupt driven approach? or just
>directly control it in my main loop if I know exactly when I want to
>recieve data?
>
>Thanks
>Josiah
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>

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.