Craig Niederberger wrote: > > Hi all, > > I am really, really sorry about this post--this must be a FAQ, but I dug > through the archives and can't seem to find an answer. Part of the > problem is that the archives are so slow that my system kept shutting me > off. Anyway, if you could help me out, I'd be grateful. > > I'm simply trying to find code for the serial read/write to the 24LC08B > EEPROM from a 16F84. I've been to the Microchip site & downloaded the app > note for 16C5X serial interface to 24XX EEPROMs, but their example code is > teriffically inelegant--timing is achieved by a discrete number of NOPs, > and the 16C5X clock is assumed to be 4MHz. This is a practical problem > for me, as I want to run the 16F84 at 10MHz. Does anyone have more > elegant code for the serial interface? > > Again, I know this must be a FAQ, and I apologize. > > Thanks, > Craig > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ craign@uic.edu ~~~~~~~~~~~~~~~~~~~~~~~~~ > Craig Niederberger MD FACS | Chief, Division of Andrology > University of Illinois at Chicago | Director Urologic Basic Research > Department of Urology M/C 958 | 312-996-2779 Fax: 312-996-1291 > 840 South Wood St, Chicago IL 60612 | http://godot.urol.uic.edu I whote a C (for BYTE CRAFT/MLAB/HITECH) code that i used with RTC DS1302 or HT1380. I may send you the machine code created for this 2 functions or the source! The RTC have the PIN: RST I_O CLK mIGUEL.