I got my idea from Feng on creating this Programmer.
This programmer allows you to use your serial port to program several (older) PIC microcontrollers (microcontrollers from Microchip Technology).
The power required comes from the RS232 port, thus from your pc.
Note that some USB to RS232 cables does not provide enough power.
The schematic is fairly simple and can be explained in a few lines, so here we go.
The DB9 connection used has, obviously, 9 connections. Only 5 of them are going to be used.
- Pin 5: GND
- Pin 3: Transmit Data (TD or Tx)
- Pin 4: Data Terminal Ready (DTR)
- Pin 7: Request To Send (RTS)
- Pin 8: Clear To Send (CTS)
The Vpp, Programming voltage, is created using that same pin, this time using a 13V zener diode (D7) and a 100μF capacitor (C1).
The Programming Data (PGD ord ICSPDAT) and Programming Clock (PGC or ICSPCLK) are created from the RTS, resp. the DTR pins.
Both using 2 diodes clamping the voltage to a maximum of 5V7 and -0V7.
The excess voltage is taken care of by the resistor.
Note that the Data is also read back using the CTS pin.
The following PIC's has been tested by me and found to be working:
This work is licensed under a Creative Commons Attribution 4.0 International License.