
Originally Posted by
epilot oh thanks Nigel that was what i forgot although i dont know how i can make the Hex or ASM files reusable for 16f628 really?
You can't (easily) alter the HEX files, but it's simple to alter the ASM file and reassemble it - you need to change the GPR start address (0x0C for 16F84 and 0x20 for 16F628), you need to add two lines turning off the comparator module (see my tutorials which all do this), and alter the config fuse settings to be as you want them - not forgetting to change the processor and include names at the top of the assembler file. Then assemble the code, this produces a 16F628 compatible HEX file.
If you've got a short program, then post it (using the CODE button to keep it formatted correctly), and I'll post it back with the required mods.
It's really VERY easy!.