At 09:04 AM 5/2/00 -0700, you wrote: >Is there any body can share me a program snips for eprom write and eprom >read of PIC 16F84? Let we say, making a PIC as a temporary storage of data. Hi!. It's very easy to read and write to the internal EEPROM in F/C84 here are some code examples: ;read eprom address, data will return in W, memory address must be ; set in EEADR, before call this sub. ; READEE CLRF EEDATA BSF STATUS,5 ;Goto BANK1 BSF EECON1,RD BCF STATUS,5 ;back BANK0 NOP ; only necessary if running at 10mhz. MOVF EEDATA,W RETURN ; ;Writing byte to internal EE : ;address byte must be in EEADR, and value in EEDATA ; WRITEE BSF STATUS,5 BSF EECON1,WREN MOVLW 0x55 MOVWF EECON2 MOVLW 0xAA MOVWF EECON2 BSF EECON1, WR BCF STATUS,5 MOVLW 1 CALL DELAY ;1 ms sub delay, to allow eeprom to write. RETURN I use this routines and works very good, If you ask me why to write 55h & AAh to EECON2 I have no idea, but this is the way that works ;-). Oh, I forgot! label definitions!: EEDATA equ 08 EEADR equ 09 EECON1 equ 88 EECON2 equ 89 WREN equ 2 RD equ 0 WR equ 1 I Hope it will be useful for you. see you. Leandro J. Laporta (LU2AOQ) mail: lu2aoq@yahoo.com wrk: Arg. Assoc. for Space Tech. ham: TCP/IP high speed group HSG __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com