At 02:55 PM 10/13/1999 -0300, you wrote: >Does anyone know how to set the EEPROM on a 16F877 >using Hi-Tech PICC? Octavio, You need to use the PSECT method like I showed you before. If you refer to the Microchip programming manuals, you will see that data in the EE is always at address 2000h (I think). This will get the data into the chip via the programmer. You need to define a PSECT which puts a block of data at that address. The note below is one I sent recently to Clyde. It shows how to accomplish the same _kind_ of thing - the chip type identifier into the HEX file. Same method, different absolute address. Andy In order to use the automatic chip type recognition for the Parallax/Tech-Tools burner (and I think Microchip specifies it as optional for the .HEX file), I put together some macros you might want to add in a future version. They certainly make my life easier. Keep up the good work. Andy // Put chip type specification into object file, for smarter burning #define __CHIPTYPE(x) asm("\tpsect chiptype,class=CHIPTYPE,delta=1");\ asm("\tglobal\tchiptype"); \ asm("chiptype"); \ asm("\tdb "___mkstr(x>>16&0xFF));\ asm("\tdb "___mkstr(x>>8&0xFF));\ asm("\tdb "___mkstr(x&0xFF)) // Table of chip type definitions for the __CHIPTYPE macro. This enables the program to // provide the correct chip information to the programmer device. // Sorry - these are the chips I'm currently using, but the types are usually obvious #define CT_PIC16C66 0x00660000 #define CT_PIC16C67 0x00670000 #define CT_PIC16C76 0x00760000 #define CT_PIC16C77 0x00770000 #define CT_PIC16F876 0x08760000 #define CT_PIC16F877 0x08760000 This goes into the main C file __CHIPTYPE(CT_PIC16F876); ================================================================== Eternity is only a heartbeat away - are you ready? Ask me how! ------------------------------------------------------------------ andy@rc-hydros.com http://www.rc-hydros.com - Race Boats andy@montanadesign.com http://www.montanadesign.com - Electronics ==================================================================