We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I am looking code for interface to 24LC256. The code should be check error if device not present when read data from device etc. ==================================== bit write_eeprom(unsigned int address,unsigned char dat); return : 0 if not error : 1 if have error ==================================== bit read_eeprom(unsigned int address); return : 0 if not error : 1 if have error and how to get data when use read_eeprom(address) Thanks.
Hi, Have you tried serching the Microchip website? Although not quite what you wanted :- http://ww1.microchip.com/downloads/en/AppNotes/00614b.pdf contains ASM but is well documented and you should easily be able to convert it to C. Likewise the atmel website also has some good aplication code (but again I think it is ASM code) for their I2C serial EEPROMS Hope this helps, Mark.
"you should easily be able to convert it to C." Why waste the effort? Just call it from 'C'!
I want C51 routine for use with 8051 standard Thanks