Yahoo Groups archive

Lpc2000

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

Thread

I2C problems with LPC2138 + GNU + I2C.1+Keil board 2130

I2C problems with LPC2138 + GNU + I2C.1+Keil board 2130

2005-11-06 by Ake Hedman, eurosource

Hi,

I wounder if someone have experienced problems with the second I2C 
channel on the LPC2138 chip?

I am trying to interface a 24LC512 chip. I can write to the chip OK (I 
believe so anyway as the correct states are gone true) but  read always 
return 0.  The zero return can be maybe be due to other things but  the 
real problem is a read when the code arrive at state 0x50 and I want to 
do STOP condition . If I write 0x10 to the I21CONSET register the board 
dies. The only way to wake it up again is to toggle power. Reset would 
not wake it up.

In my first attempts I wrote the data using a pointer and though the 
pointer was the problem but after replacing it with a static location I 
experience the same problems.

Any suggestions welcome.

Cheers
/Ake



-- 
 ---
Ake Hedman (YAP - Yet Another Programmer)
eurosource, Brattbergavägen 17, 820 50 LOS, Sweden
Phone: (46) 657 413430 Cellular: (46) 73 84 84 102
Company home: http://www.eurosource.se      
Kryddor/Te/Kaffe: http://www.brattberg.com
Personal homepage: http://www.eurosource.se/akhe
Automated home: http://www.vscp.org

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.