gnupic@linuxhacker.org

gnupic@linuxhacker.org


Subject: Need help getting code onto 16F877A
From: Jeff Jackowski
Date: Mon, 17 Mar 2003 17:16:14 -0600 (CST)

I want to use a PIC16F877A in my next project, but I'm having trouble 
getting a program onto the PIC. First of all, I want to disable low 
voltage programming. Secondly, I have tried a number of the simple to 
build programmers in the past, and they worked, but soon failed 
mysteriously and I was never able to get the same design, even with 
different parts, to work again.

I have a Warp-13a programmer. I got it long enough ago that its firmware 
does not support the 16F87xA. I also haven't seen any Linux support for 
using the Warp-13a to put code onto a 16F87xA, so upgrading firmware won't 
help.

In light of all this, I decided to make my own programmer using a PIC that
I could program. I made a prototype with a 16F84 (it's in C, so other
parts should be easily used). It can read data from other PICs. Over the
past few days I have tried to make it write data, too, but it still
doesn't work and I don't know how to fix it. The problem seems to be in my
impementation of the communication between the programmer and the target
-- the part that Microchip documents.  Ironically, they don't document
reading as well, but that's what I got to work.

Can gpism emulate a PIC being reprogrammed by another PIC? I'd look on the 
site, but I can't get a whole page from dattalo.com right now.

Any help is greatly appreciated. I put the code I have at
http://ro.com/~jeffj/projects/loader.tar.bz2 for anyone who actually wants
to look.  All GPL'd stuff. I think the problem is in PIC14.c.

-- 
Jeff Jackowski
        http://ro.com/~jeffj/


gnupic@linuxhacker.org