Hello, I am unable to interface the 24C16 in my 8051 board. Can anyone give me the code (in 'C')required for interfacing the 24C16 using any two port lines. Thanks, Mohit
The following appnote explains how to interface with an I2C bus device; source code is for C166, but it is very easy to adapt it to 8051. Moreover, this appnote explains the theory of I2C bus interfacing, so I think you will learn how to act in solving such problems. Combining this information with the 24C16 Datasheet will let you reach your goal. http://www.infineon.com/cmc_upload/migrated_files/document_files/Application_Notes/ap162501.pdf http://www.infineon.com/cmc_upload/migrated_files/document_files/Application_Notes/ap162501.exe