I'm designing a microcontroller based project. (PIC16F) The project will be battery powered and have a micro USB port for charging only. With an eye for production and testing, I had the idea that I could extend the D+, D- and ID pin to icspdat, icspclk, and Vpp, making a custom board to do so interfacing with a PicKit or whatever. This would allow me to program and test the device while it is completely closed.
After the product is tested and ready to ship I would like to disable the programming lines.
Is there a novel way to disable the programming lines?
The best I could come up with is having some type of fuses in the two programming lines and zeners to ground downstream of them. Then using a constant current source to drive enough current into the pins and through the zeners to pop the fuses.