hi all,
I have some starting problem for the I2C coding in LPC2103,Could ay body help me with this.I need to configure the I2C in master mode.
I have configured the P0.2 & P0.3 for I2c and i have understood the sequence for the Tx & Rx.my problem is regarding the data Rx&TX.Initially if i want to send data to the (eg:)EEPROM ,Where do i put the data(which register??) and same case while reading also ,Where do i get the data which is send by the EEPROM.
It may be unwise question,But i am not able to move ahead by reading the data sheet. Could any body help me for the communication data Tx&RX.It will be help ful for me if you can give link for the app-note and ex-code regarding this
Thanks, Paul
I haven't checked specifically for the LPC2103, but for most chips, NXP has a zip file containing a lot of example code for all devices. Have you visited the product page and looked for the available info?
hello,
Thanks i have checked it ,Except the register reading and writing it is not specifying any thing more, i mean nothing about program flow
I don't know if it's also true of their ARM parts, but NXP tend to have both a Data Sheet and a User Manual for their '51 derivatives - and you need to read both of them...
Are there really no application notes, and no examples?!
Neil ,
I had gone through the websites again ,I found my answer ,in the user mannual they specified the details of the I2C communication . Now i started writing the code .
I was following same way of finding the Deails, which i did for ADSP and Micochip Ic's .
thanks alot for the help , Thanks, Paul PS: If any body wanted to get the Appnote and Examples for LPC2103 -Find the link below (NXP site)
http://www.nxp.com/#/pip/cb=type=product,path=50809/45993/45994,final=LPC2101_02_03_1]|pip=[pip=LPC2101_02_03_1][0]
Well, NXP have really messed-up their website to give stupid URLs like that!
However, if you click www.nxp.com/.../LPC2101_02_03_1.html you will still end up in the same place!
:-)
NXP likes to place watered down summary information in their data sheets, and call the real document User Manual. It is quite nonintuitive, with a data sheet that often doesn't even mention the power consumption of a chip...