I've just finished working on a project with an 18F1320 and the final code has some calibration data which is stored in the 18F1320s EEPROM and called up again when the device is first turned on. The problem is that it doesn't. I set a predetermined value in MPLAB for the first byte of the EEPROM and it programs fine. The simulation (MPLAB) runs perfectly on both the programming and reading of this EEPROM bit but when the processor is programmed it fails to retrieve the EEPROM info or store new info to the location. I'm using exactly the same code as I used for a 18F452 which works fine and have had no problems with any of the 16F series when using their EEPROMS. I've also read the Errata and made sure I'm not falling into any of the gotchas. I can read the device back on my PM2 and the data in the EEPROM is as it was when programmed. Just seems very strange - I could have a duff 18F1320 but dont have any others to hand to double check this. Heres a copy of my read routine : MOVLW 0x00 ; select first byte of eeprom to read MOVWF EEADR ; Data Memory Address to read BCF EECON1, EEPGD ; Point to DATA memory BSF EECON1, RD ; EEPROM Read MOVF EEDATA, W ; W = EEDATA MOVWF MULT ; Set value to calibration register In MPLAB it simulates fine, just doesnt work on the PIC lmao Any ideas guys ? Dom -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist