jppp18

Software to program a Microchip PIC 18F14K22 via the PC parallel port.

This is Unix / Linux OS software released under the GPL licence.

Current version has a command line interface, and also a menu option.

Download

Full source in C:
jppp18-0.5.tgz

The lsm info file:
jppp18-0.5.lsm

Current known bugs:

None.

Features as command line switches (it is possible to run the program from a script):

command line switchfunction
-ebulk erase chip.
-f filenamewrite Intel format hex file from program space, ID space, config space, and EEPROM space, and exit.
If the filename does not end in '.hex', then '.hex' is appended to it.
This function allows cloning non-read protected PICs, the hex files can be loaded again with '-i'.
-hhelp (this help).
-i filenameIntel format hex filename to load.
If the filename does not end in '.hex', then '.hex' is appended to it.
-o I/O test, test par port pin signals.
-pprogram PIC after loading hexfile, then run verify and exit, if -e is specified the PIC will be bulk erased first.
-t pictypePIC type.
-vverbose, prints functions and arguments.
-Yexit programming with Vdd on (default off).


Examples:

Bulk erase chip, and program it with file io.hex, then run verify:
jppp18 -i io.hex -e -p

Bulk erase chip, and program it with file io.hex, then run verify, exit with Vdd on:
jppp18 -i io.hex -e -p -Y

Load file io.hex and display a menu:
jppp18 -i io.hex

Menu options:

b dump code space as binary to file.
c hex dump config area.
d hex dump ID area.
e erase chip.
f write Intel format hex file from program space, ID space, config space, and EEPROM space.
h hex dump program area.
i load Intel format hex file.
m hex dump eeprom.
o I/O test, test par port signals.
p program chip.
t PIC type select.
v verify chip.
x exit.
Y leave Vdd on.
y leave Vdd off.
z print chip ID.


Hardware


The hardware is based on the noppp programmer
Some things were added, such a a controlled Vdd, a 9 V driver for the PIC18 Vpp, and LEDs.
This circuit is still compatible with the original nopp, just add a second socket for 16F type PICs, with the Vpp connected to the collector of the BC548 and 1k resistor.
Only high voltage programming with Vdd before Vpp is supported.
This frees up an extra I/O pin that would otherwise be used for programming.
The programmer diagram:



return to homepage