:: at startup the program should read the values from EEprom. If you are doing this in 'C', then that bit will be easy as more than likely your compiler provider has a some read and write EEPROM functions already nutted out - though you can in most cases just cut and paste the demo assembler code provided by Microchip in their Mid Range manual if using assembler. Colin -- cdb, colin@btech-online.co.uk on 1/05/2009 Web presence: www.btech-online.co.uk Hosted by: www.1and1.co.uk/?k_id=7988359 -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist