EmbeddedRelated.com
Forums

Anyone Help me in interfacing LPC2129 with HDPM01 using I2c

Started by kris...@gmail.com September 1, 2010
will pls anyone give some idea regarding this issue

An Engineer's Guide to the LPC2100 Series

--- In l..., krishna.slanger@... wrote:
>
> will pls anyone give some idea regarding this issue
>

What's the issue?

If you need help with I2C for the LPC21xx, Google is your friend:
http://en.pudn.com/downloads82/sourcecode/embed/detail315660_en.html

Just search for 'LPC2129 I2C' or 'LPC21xx I2C'

There is some I2C code in the Files folder of this group.

Or try the sample code at www.jcwren.com/arm It's for the LPC2148 but it should be easy to port. I doubt that any changes are required but I haven't used the LPC2129.

Hardware questions? Get the I2C specification from NXP. Make sure the pull-up resistors are on the order of 2.2k or so.

Try to use something like the interrupt driven state machine as indicated in the 'pudn' code referenced above.

Richard

--- In l..., krishna.slanger@... wrote:
>
> will pls anyone give some idea regarding this issue
>
You need to be more specific. If you do not know what question to ask, then you need to start reading all the manuals. I recommend keeping a journal to write down your questions followed by the answers you discover during your research. You should also Google search to see what other people have done that might be similar.

Check out NXP's library of code
The code here in the FILES section has samples of I2C code
NXP has some cool little serial to I2C modules available at Mouser.com to help get you started with interfacing to your own device. You can then move to the code on the processor.