gnupic@linuxhacker.org
gnupic@linuxhacker.org
Subject: prog84
From: Brian Farnell
Date: 26 Jun 2003 02:25:15 -0500
I need troubleshooting suggestions for prog84, it seems to be mostly
working:
Finally got my first chips, but I'm having problems with the
programmer. On two different chips (16f84, 16c84) I have the same
problem, I cannot program them. I can do a
dump84 -T 1684 -a
and see the file that was on there (these are spare chips a friend
had). I can do a
prog84 -z
and see (with another dump84) that it has cleared the program that was
in the upper part of the dump. There are a spaces later on that appear
to have something in them. However,
prog84 -T 1684 -v -W -a count.hex
fails, it gives the message:
using 16x84 (1684) chip, capacity 64 data, 1024 code
...closing
Read 0 cells, programmed 0
Upon doing another dump84 I can see that it has not changed. The LED
does come on during programming though. The programmer is this one, a
JDM variant: http://www.olimex.com/dev/pic-pg2b.html
Here is my prog84rc:
# settings for serial pic programmer described in README:
#
#The prog84 programmer requires the following bits to be named:
# power --- set to 1 when the programmer wants the PIC's Vdd = +5v
# mclr --- set to 1 when the programmer wants the PIC's /MCLR = +13v
# clock --- used to clock data into the PIC (connect to PIC pin 12)
# data --- used to write data (pin 13)
# data_f -- sense return for data (pin 13)
# clock_f - sense return for clock (pin 12)
# rb6 --- synonym for "clock"
# rb7 --- synonym for "data"
# rb6_f --- synonym for "clock_f"
# rb7_f --- synonym for "data_f"
#but first the type: serial / parallel / usb
port serial
### for serial port:
base= 0x3f8 # com1, ttyS0
#base= 0x2f8 # com2, ttyS1
#base= 0x3e8 # com3, ttyS2
#base= 0x2e8 # com4, ttyS3
#dos and FASTCPU only:
loop = 15
# settings for serial pic programmer described in README:
power: TxD
mclr: TxD
data: DTR
data_f: CTS
clock: RTS
Thanks,
Brian
gnupic@linuxhacker.org