Have you considered using mini or micro USB connectors? They all have 5 connectors. Matt On 11 February 2010 13:31, Johansson wrote: > Dear piclist, > > I am developing a USB product. For different logistics reasons, I'd like to > program the PIC18F13K50 in-circuit, after the housing is assembled. To do > that, I could add a special ICSP connector, but to keep costs low and the > housing neat, I'd like to have the existing USB connector double as the ICSP > connector, if possible. However, as "Single-Supply In Circuit Programming" > (formerly known as Low-Voltage ICSP programming) needs 5 pins, the USB plug > is one pin short. So my idea was to use the USB shield as the PGM pin. > According to the USB spec, the shield should not be connected anyway. Of > course, the ICSP adapter used to program the firmware into my device, would > have to be custom made, and even violate the USB standard. But what do you > guys think, would it work? During normal execution, is it a problem that the > shield is connected to the PGM pin? > > Summary of connections: > PIC VPP - not needed for ss-ICSP > PIC VDD - wired to VBUS of USB plug > PIC GND - wired to GND of USB plug > PIC PGD - wired to D+ of USB plug > PIC PGC - wired to D- of USB plug > PIC PGM - wire to SHEILD of USB plug > > I have submitted this question to Microchip support, but they responded by > asking me what ss-icsp was, and then don't answer any more. > > Before you suggest a bootloader; there are security considerations for this > product, which means no bootloader can be used. > > > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist