gnupic: Programming the 16f870


Previous by date: 21 Dec 2001 14:28:55 -0000 Re: Programming the 16f870, Ralf Forsberg
Next by date: 21 Dec 2001 14:28:55 -0000 GTK+extra for gpsim, Mohamed Eldesoky
Previous in thread: 21 Dec 2001 14:28:55 -0000 Re: Programming the 16f870, Ralf Forsberg
Next in thread: 21 Dec 2001 14:28:55 -0000 Re: Programming the 16f870, Bas Wijnen

Subject: Re: Programming the 16f870
From: ####@####.#### (Byron A Jeff)
Date: 21 Dec 2001 14:28:55 -0000
Message-Id: <200112211427.fBLERUX08243@cleon.cc.gatech.edu>

> 
> Hello,
> 
> I am trying to program a 16f870 with a home-built parallel port programmer,
> similar to the trivial lvp programmer from http://www.gnupic.org. The hardware
> works fine, I can read data with it (and recognise the chip identification).

Cool. Glad that it works.

> 
> I am using a simple program I wrote in C that sends 3 bits on the parallel 
> port
> (mclr, data and clock) and reads the data. I use a bash script to do the
> programming.

Interesting. I do have a question though: are you writing this code as a
learning exercise? If so then more power to you. However if the objective is
to get a programmer working, then I would advise pulling a copy of picprg2.3b
from my page and use it. It works quite well and will save you the hassle of
regenerating new code.

> 
> I put two scripts: read and write, on my homepage
> http://client107-126.kabela.oprit.rug.nl/~bas/pic/
> The output of read on an unprogrammed chip is in test.data.
> The source of the picwrite program is there too. It is suid root so it can
> write to the port (which is really dirty, but I don't know how to use the
> parport drivers and didn't feel like learning it since it's just for myself
> anyway).

Probably isn't worth the hassle not to make it SUID root. picprg2.3b needs to
be SUID root in order for ordinary users to user it.

Good luck. Feel free to contact me if you have any issues.

PS to Scott: if you get a chance can you update the gnupic.org site to indicate
that the system does 16F62X parts too? Thanks.

BAJ

Previous by date: 21 Dec 2001 14:28:55 -0000 Re: Programming the 16f870, Ralf Forsberg
Next by date: 21 Dec 2001 14:28:55 -0000 GTK+extra for gpsim, Mohamed Eldesoky
Previous in thread: 21 Dec 2001 14:28:55 -0000 Re: Programming the 16f870, Ralf Forsberg
Next in thread: 21 Dec 2001 14:28:55 -0000 Re: Programming the 16f870, Bas Wijnen


Powered by ezmlm-browse 0.20.