Hello Roy, Was there indeed a pull-up resistor missing on the Olimex board? If you can measure low and high levels on both I2C lines now then I expect that the hardware is fine. If there is also a I2C device on the bus and it is still not working then i assume it is a software problem. In the past I used I2C on a 8051 with some 'bit-bang' routines. Until now I didn't use the I2C of the ARM. This will change in the next few weeks but for the moment I can't help you. In the files section of the yahoo group are some examples. If the pull-up indeed was missing in the hardware then you probably spend a lot of time with software debugging without any change to succeed. Might be the moment to start debugging again, use an oscilloscope if you have it and study the signals to see where it fails. Best Regards Aalt, -- ============================== Aalt Lokhorst Schut Geometrische Meettechniek bv Duinkerkenstraat 21 9723 BN Groningen P.O. Box 5225 9700 GE Groningen The Netherlands Tel: +31-50-5877877 Fax: +31-50-5877899 E-mail: Lokhorst@... ============================== neptunus1000 wrote: > > Hello Aalt, > > with on both lines a pull-up the code is still not working oke. > Please help my. > > --- In lpc2000@yahoogroups.com, "Aalt Lokhorst" <lokhorst@s...> wrote: > > Hello Roy, > > > > Is there a pull-up on the SCL line? I can't find it in the > schematic > > drawing but probably I missed it. > > > > As far as I know both lines need a pull-up because SDA and SCL > lines are > > 'open-drain' outputs. > > > > Best Regards, > > Aalt > > > > -- > > ============================== > > Aalt Lokhorst > > Schut Geometrische Meettechniek bv > > Duinkerkenstraat 21 > > 9723 BN Groningen > > P.O. Box 5225 > > 9700 GE Groningen > > The Netherlands > > Tel: +31-50-5877877 > > Fax: +31-50-5877899 > > E-mail: Lokhorst@S... > > ==============================
Message
Re: [lpc2000] Re: initializing I2C problem
2005-04-14 by Aalt Lokhorst
Attachments
- No local attachments were found for this message.