Find help, specifications and source code for the LPC900. The LPC900 challenges Microchip and AVR based on the worlds most popular 8-bit architecture the 80C51. With a 2-clock core the LPC900 series is a high performance, very flexible and low cost 8-bit microcontroller family. Designers using or interested in these devices are encouraged to share their know-how and ask questions.
i2c as slave on lpc900 - russell_cranston - May 19 19:49:00 2005
Has anybody had issues with the lpc900 i2c acting as a slave. I dont
seem to be able to see any ACK's when an byte is sent. When I set the
system up for a general call I am able to read the data, but it still
doesn't return a ack. By the way, the data recieved as a general call
has never been consistant with the data sent. I have slowed the
transfer speed to less that 100Khz. Can anybodie help?
Thanks.

(You need to be a member of LPC900_users -- send a blank email to LPC900_users-subscribe@yahoogroups.com )
Re: i2c as slave on lpc900 - Jan Waclawek - May 20 3:04:00 2005
russell_cranston wrote:
> Has anybody had issues with the lpc900 i2c acting as a slave. I dont
> seem to be able to see any ACK's when an byte is sent. When I set the
> system up for a general call I am able to read the data, but it still
> doesn't return a ack. By the way, the data recieved as a general call
> has never been consistant with the data sent. I have slowed the
> transfer speed to less that 100Khz. Can anybodie help?
There is a similar problem described on
http://forums.semiconductors.philips.com/forums/viewtopic.php?t=4271
but with no concluson either.
What is your CCLK?
Jan

(You need to be a member of LPC900_users -- send a blank email to LPC900_users-subscribe@yahoogroups.com )
Re: i2c as slave on lpc900 - b_siderius - May 20 14:32:00 2005
--- In lpc900_users@lpc9..., Jan Waclawek <wek@e...> wrote:
> russell_cranston wrote:
> > Has anybody had issues with the lpc900 i2c acting as a slave. I dont
> > seem to be able to see any ACK's when an byte is sent. When I set
the
> > system up for a general call I am able to read the data, but it still
> > doesn't return a ack. By the way, the data recieved as a general
call
> > has never been consistant with the data sent. I have slowed the
> > transfer speed to less that 100Khz. Can anybodie help?
>
> There is a similar problem described on
> http://forums.semiconductors.philips.com/forums/viewtopic.php?t=4271
> but with no concluson either.
>
> What is your CCLK?
>
> Jan
Would you give some more information? Which device is sending the
bytes and which is not sending the ACKs, the master or the slave?
Would you use a scope to see if the correct address is sent? You can
try to use an emulator and break on the I2C interrupt and see which
I2C state the microcontroller gets in, and what the appropriate
actions should be on that state.
There is also exisiting code available for I2C
http://www.semiconductors.philips.com/acrobat_download/applicationnotes/AN10155_1.pdf
and a codegeneration tool at www.codearchitect.org
Bauke

(You need to be a member of LPC900_users -- send a blank email to LPC900_users-subscribe@yahoogroups.com )