Captain's Universe Home
Captain's Universe Home
Cosmic Ray Muon DetectorTeleGarden Pages
Time on MarsBryophyllum Plants
Jupiter Radio AstronomyAncient Pages
Salzburg Tourist GuideEarth Magnetometer
  H O M E     AJAX & MORE     LINUX & MORE     RTAI     XENOMAI     ADEOS IPIPE      
    JAVA & BROWSERS     *NIX     ELECTRONICS     REVIEWS     ARTEMIA     FAIRY SHRIMP      



PIC Programmer for Linux - Parallel Port Low Voltage Programmer

Source code of PICPRG and schematic from Byron Jeff's PIC Page

This is a very simple and easy to build MicroChip PIC programmer (Tait style) for the types 16F87X, 16F62X etc. I only use the PIC16F876, therefore the schematic is only tested with this type, aswell the configuration for PICPRG.

Hardware:
Pic Programmer
Click on the schematic for a large view (opens in a new window)


Keep the parallel port cable as short as possible. Mine is just about 25cm (10inch) long. With the termination (R2, C1) longer cables should work, but I haven't tested it.



Software:
Mirror of Byron Jeff's picprg branch (version 2.3d): Source tar.gz of PICPRG for Linux (~25k)
Compile it with "make" and run it with "./picprg -p0" while being "root" (-p0 selects /dev/lp0, -p1 selects /dev/lp1 etc.). Select PIC16F877 for the 16F876!

PICPRG loads Intel Hex files, produced by MPLAB or the CC5X C-Compiler.

Configuration of PICPRG for the PIC16F876:
Vpp control pin   # : +[04] off
(Vdd control pin  # : +[06] off -> not used)
PGM control pin   # : +[05] off
Clock pin         # : +[03] off
Data to PIC pin   # : +[02] off
Data from PIC pin # : +[10] on

Here is my .picprgrc config file (/dev/lp0 ; PIC16F876):
# Linux PIC programmer configuration v2.0
port=0x0
vpp=+4
vdd=+6
pgm=+5
clock=+3
datao=+2
datai=+10
idaddr=2000
eeaddr=2100
cfaddr=2007
colors=1
type=0x0
For Windoze programming software, see David Tait's FPP

Last-Modified: Thu, 10 Feb 2005 10:14:55 GMT

Google
 
Web www.captain.at
go to top
© 1996-2010 . All rights reserved.
No reproduction, distribution, publishing or transmission of the copyrighted materials at this site is permitted. Policy
go to top