The Dwengo programmer is based on and (software) compatible with the PICkit2 programmer of Microchip . Besides the lower price of the Dwengo programmer, this programmer only differs in a couple points from the original PICkit2 programmer .
- The Dwengo programmer has no extra EEPROM memory in which a hex file can be stored, this makes the programmer cheaper. This means that you will have to use the programmer always in combination with a computer, but during the development of a program you need a computer anyhow.
- The Dwengo programmer can program those PICs compatible with a voltage of 5V. This includes, among others, following PIC families: the PIC10F, the PIC12F, the PIC16F, the dsPIC30F family and for the most part the PICs from the PIC18F family.
The Dwengo programmer has a 10 pin programming connector available that can be connected directly to the Dwengo board. The programming connector is secured against reversing the polarity and can be easily connected to a standard flat-cable connector. Hence, the programmer can also be used in cases where there is no direct access to the circuit that needs to be programmed.
We give an overview of the pinout of the programming connector. You can use this to program you own circuits with the Dwengo programmer.
- pin 1: PGC (clock signal)
- pin 2: VPP (programming voltage, is connected to the reset pin of the PIC that needs to be programmed. A voltage of about 12V brings the PIC into programming mode)
- pin 3: VDD (supply voltage, the Dwengo programmer automatically detects the presence of a supply voltage and provides the required supply voltage for the PIC if needed)
- pin 4: GND (ground)
- pin 5: LVP (low-voltage programming, this pin is used when no over voltage can be applied to the reset pin to bring the PIC in programming mode. This goes at the expense of one IO pin of the PIC that needs to be programmed)
- pin 6: GND (ground)
- pin 7: AUX1
- pin 8: not connected
- pin 9: PGD (data)
- pin 10: AUX2
In order to program you own circuit, you only need the following signals: GND, VCC, VPP, PGD and PGC.
The signals AUX1 and AUX2 are extra communication lines for future applications. For example, they can be used to make a serial connection between the computer and the target circuit. The programmer could then serve as a programmer and as a USB-to-serial converter, without being disconnected or replaced.
The Dwengo programmer is directly supported in MPLAB , the integrated development environment of Microchip. When you use this IDE, you don't need any external programming tools.
If you don't use MPLAB to develop your code, you can also copy a hex file (that you generated with your preferred compiler) with an external programming tool to the Dwengo board. For this, several command-line programs are available for different platforms:
- for Windows users: PK2CMD
- for Linux users: precompiled for linux-kernel-2.4 or for linux-kernel-2.6
- for Mac user: PK2CMD
Also, a PICkit2 standalone application exists for Windows. This tool allow you to use the Dwengo programmer as a programmer as well as a serial interface and as logic analyzer.
Pin out PICkit2 vs. Dwengo programmer
PICkit2 pin Function Dwengo programmer pin Programmer USART Logic Analyzer 1 Vpp 2 2 Vdd Vdd Vdd 3 3 GND GND GND 4 4 PGD TX CH1 9 5 PGC RX CH2 1 6 AUX CH3 5