Hi, That's great - thank you. Thanks to all others responding on this and the cheap micro issue, too. Regards, Dan To: PICLIST@MITVMA.MIT.EDU cc: From: Kari Lehikko Subject: Re: [PIC]: sizeof( I2C driver for 24LC00 ) ? Dan, I just counted the instructions in our I2C-compatible routine... reads and writes pages and single bytes from EEPROM and other devices, polls if the EEPROM is ready etc... 140 instructions for 16C77 and 24C16. You can probably cut the size down if you only read/write one page at a time, only address one device and do not return an error code in case of error. Also, because of the timing the routine is full of delays. (4Mhz clock) I would estimate it to go below 100 instructions. Hope this helps, - Kari D Lloyd wrote: > > Hi, > > Can anyone please give a rough indication for a (very) basic I2C driver to > interface a 12C508/similar to a 24LC00 E2? No multi master or other such > "cleverness" is required. Just a simple read and write routine allowing > for internal page boundaries will suffice (sorry - not Inet/data > sheets.....from memory, the 24LC00 is 256 bytes with a 16 byte page writing > buffer(?)) > > Regards, > Dan > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body