EmbeddedRelated.com
Forums

I2C on LPC2368 - example code doesn't work for me

Started by foreigner_ca March 20, 2007
Hi all,

I have a Keil MCB2300 board. I tried the example code from the files
section on this site (code.lpc23xx.peripherals.uvision) and from the
Philips site (code.lpc23xx.lpc24xx.peripherals.uvision).

I set up a digital storage scope to trigger on the the falling edge
of SDA0 and SCL0 lines (P0.27 and P0.28), and they never move, but
are permanently high (I have 1K pullup resistors on those lines).

BTW, the silkscreen doesn't seem to be right on that board, or at
least it does not indicate processor pin numbers. The diagram on the
second last page of the schematic seems to be right.

I was wondering if anyone has had success with this code, or could
otherwise offer some insight.

Thanks
Dave

An Engineer's Guide to the LPC2100 Series

To close on this: it was a wiring error.

Sorry for the noise.

Dave
--- In l..., "foreigner_ca" wrote:
>
> Hi all,
>
> I have a Keil MCB2300 board. I tried the example code from the
files
> section on this site (code.lpc23xx.peripherals.uvision) and from
the
> Philips site (code.lpc23xx.lpc24xx.peripherals.uvision).
>
> I set up a digital storage scope to trigger on the the falling edge
> of SDA0 and SCL0 lines (P0.27 and P0.28), and they never move, but
> are permanently high (I have 1K pullup resistors on those lines).
>
> BTW, the silkscreen doesn't seem to be right on that board, or at
> least it does not indicate processor pin numbers. The diagram on
the
> second last page of the schematic seems to be right.
>
> I was wondering if anyone has had success with this code, or could
> otherwise offer some insight.
>
> Thanks
> Dave
>
Try the same thing with changing the pull up from 1k to 22k if you are using
one master device and slave device.
for more no. of device make the pull up like 50/Rp k where Rp is no. of
device connected to I2C line

On 3/21/07, foreigner_ca wrote:
>
> To close on this: it was a wiring error.
>
> Sorry for the noise.
>
> Dave
>
> --- In l... , "foreigner_ca"
> wrote:
> >
> > Hi all,
> >
> > I have a Keil MCB2300 board. I tried the example code from the
> files
> > section on this site (code.lpc23xx.peripherals.uvision) and from
> the
> > Philips site (code.lpc23xx.lpc24xx.peripherals.uvision).
> >
> > I set up a digital storage scope to trigger on the the falling edge
> > of SDA0 and SCL0 lines (P0.27 and P0.28), and they never move, but
> > are permanently high (I have 1K pullup resistors on those lines).
> >
> > BTW, the silkscreen doesn't seem to be right on that board, or at
> > least it does not indicate processor pin numbers. The diagram on
> the
> > second last page of the schematic seems to be right.
> >
> > I was wondering if anyone has had success with this code, or could
> > otherwise offer some insight.
> >
> > Thanks
> > Dave
>
--
sandip chudasama
CESES