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
Can anyone give me the code (in 'C')required GIMME CODE!! Eventually all us old farts will pass and what are you young whippersnappers that have been given finished code every time gonna do then. You never learned to code your own and there will be nobody to give it to you. Try coding your own, and post the problems with your OWN code here and help will be forthcoming. Erik
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