Guess who forgot the [PIC] tag... Sorry. -----Original Message----- From: "Steven Howes" Sent: 12/04/06 19:57:36 To: "piclist@mit.edu" Subject: EEPROM on the 16f684 Hi, I am writing to the EEPROM on the PIC using the programmer, and it reads it back so its going in ok.. but for the life of me I can not get the code to read it back out again. I have tried several examples online and I keep getting odd characters back ([1]is the character, 20h) whatever I put in. I am sending it as serial to hyperterminal but I know that to be good transmission code as I send other characters. Here is the current of the many attempts at reading it eeread macro addr,prom movlw addr movwf EEADR call E2read movwf prom endm E2read bsf STATUS,RP0 bsf EECON1,RD bcf STATUS,RP0 movf EEDATA,W return eeread 01h,SendByte If anyone could spot any problems with this I would be very grateful. Thanks in advance for any help. Steve -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist