On Sun, 19 Apr 1998 23:39:28 -0400 MARVIN ANDROID writes: >Hello, > >Many thanks to everyone that answered my previous query. > >My program seems to be going along quite nicely so far but now I've >hit a brick > wall called DATA EEPROM MEMORY. I just cant seem to write to it! The code attached looks close to right but you have to set the WREN bit in EECON1 at some point before the "required sequence" (maybe even in another routine, gives better protection against unintentional writes). Simply clearing the GIE bit isn't certain to disable interrupts. Also it's a good idea to check/poll the WR bit before or after writing to be sure the EEPROM isn't still busy with the last write. Has anyone done a definite test to see if the EEPROM can be read while it's writing? The only place Microchip ever claimed that was in the "Truth about AVR" and of course that wasn't all true. _____________________________________________________________________ You don't need to buy Internet access to use free Internet e-mail. Get completely free e-mail from Juno at http://www.juno.com Or call Juno at (800) 654-JUNO [654-5866]