>> Could you do it as a two stage process? Load some specific code in the >> PIC, ... > >Yes, I suppose I could do that. I may as well leave the flash programming >code there, though. I'll have to add a connector to bring out the UART to >send the code to the PIC, though. As it is, data gets into the PIC as an >RF carrier over IR, so no I/O leaves the board (though I guess I could bit >bang something on RB6 and RB7, which do go to a programming header). > >Thanks for the comments! I was thinking in terms of bit banging an interface using the programming pins - it could even be an SPI interface, with the code in the PIC just acting as an SPI pass through. I was envisaging that the whole thing could be done as a script, so that on the test bench it is a one button push to do all the programming - program SPI download code into PIC, transfer data to SPI device, program production code into PIC. As to a suitable programmer, does Olins one do SPI? I know his host code is scriptable, so may make a starting point, especially as he does make the source available, so it is modifiable. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist