On Thu, 7 Nov 2002 09:38:38 +1100, John Samperi wrote: >Hello all > >I'm working on a project that uses (for better or worse) the 16F628. >Even though the software is working reasonably well, there are a few >thing that I would like to clean up. >I would love to have some in circuit emulation ----BUT---- don't fancy >paying 1000s$ for it. Is there an economical emulator around? (~AUD$200). >I know there is one for the F877 but I can't find anything similar for the >F628. This may not be possible in your application but you may be able to cross-wire a 40-pin socket over to an 18-pin header and have a 16F877 'pretend' to be your '628. At that point, you can use ICD rather than a true emulator. Conditional assembly (ifdef/else/endif) constructs will allow you to automagically switch between ICD and 'normal' software generation. Two separate projects (with 'ICD' defined in one and not defined in the other) make the switchover easy to manage. I'd suggest using the '877 port D to emulate the '628 port B so you don't have to worry about your RB6 and RB7 pins conflicting with the ICD. Conditional assembly would select between writing W to either PORTB or PORTD depending on which project you assembled it with. I've done this successfully for 16C765 development (less the USB functions, obviously). Regards, Bob -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body