Searching \ for 'Please Help Me!' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: massmind.org/techref/index.htm?key=please+help
Search entire site for: 'Please Help Me!'.

Truncated match.
PICList Thread
'Please Help Me!'
1999\06\21@205153 by John P

flavicon
face
Hi
I am new to PICs.  I am thinking of building the "Quick and Dirty" Pic
programmer by david tait.  Will it work with my 686 266mHz computer?

1999\06\21@211517 by Tim Hamel

picon face
It SHOULD, I built the same one, and it worked on my PII.  If your computer
IS too fast, you can disable the L2 cache which will slow things down a bit.
Try using it in pure DOS, not the dos box.

Tim H.

In a message dated 6/21/99 5:52:09 PM Pacific Daylight Time,
spam_OUTjohnpTakeThisOuTspamCANBERRA.TEKNET.NET.AU writes:

> Hi
>  I am new to PICs.  I am thinking of building the "Quick and Dirty" Pic
>  programmer by david tait.  Will it work with my 686 266mHz computer?
>

1999\06\22@050035 by Larry Fostano

picon face
yes

1999\06\22@060543 by David Tait

flavicon
picon face
John P wrote:

> I am new to PICs.  I am thinking of building the "Quick and Dirty" Pic
> programmer by david tait.  Will it work with my 686 266mHz computer?

This is a common question and I hope PICLIST members won't mind too
much if I give a fairly long answer here.

I would like to simply say yes.  I have never found a computer it
wouldn't work with yet, however, I still get reports from people who
have problems.  I suspect some of these problems are due to faulty
wiring and the like but I can't rule out some incompatibility with my
software.  The thing is so easy to build though it won't take much
time to simply try it out.  I have removed all the PIC stuff from my
own server but you might like to review a page I wrote some time ago
while it's still available at various places, for example, here:

http://www.labyrinth.net.au/~donmck/dtait/icp84.html

Get the file spp01.zip (linked under "software") and try the serial
port two resistor version first.

I've attached a dialogue I had with someone trying to get the same
programmer working (I hope the "someone" doesn't mind!).

Good luck,

David

------------------------------------------------------------------------------

                           A Happy Ending
                           ==============

Debugging a Quick and Dirty programmer by email.  A dialogue between a
contructor and David Tait.  The constructor kicks off:

------------------------------------------------------------------------------

im a piclist member and working feverishly to finish a project and my
pic programmer died over the weekend.  i found your site, and
downloaded the quick and dirty serial flavor. i wired the direct
connect form to a part of the solderless bbd.  in debug mode, i get a
'bad' message on data low for portb6 and portb7.  i tried various
resistors from plain wire to 270000 and no joy.  im working with an
old laptop, in dos, and the rs232 voltage is running about +/- 8 to 9
volts.  is this the problem, or do i need to wire up a version of
serpic?  should i run diodes to ground (i have about 100 1n4148s) on 7
and 8 ? the high voltage is ok, and i strung an led to it, one shows
steady and the other flashes. what am i doing wrong??

------------------------------------------------------------------------------

Sorry to hear of the demise of your programmer.

If you wired up the quick and dirty version of the serial port
programmer then all you need to do is to check the voltages intended
for RB6/RB7 seem OK when measured with a voltmeter.  The pin numbers I
quote are correct for 9-pin serial ports (let me know if you have a
25-pin port).  Without the PIC present, low and high will be -8V and
+8V respectively in your case..  If they are -8V and +8V when the
software says they should be low and high that's all you need.  The
quick and dirty version CAN'T read the PIC so don't worry if it tells
you the input is bad. You MUST use resistors between the serial port
and the PIC - the exact value doesn't matter but 22k works fine for
me.  The protection diodes in the PIC will limit the voltages
appearing on the PIC pins provided you use resistors but as you
mention not using any at all at one time I fear you MAY have damaged
the PIC.  Forget about adding extra diodes or LEDs for now.  When it
comes to trying the programmer use a batch file like the one in
spp01.zip, specifically something like this:

@echo off
set ppcom=2
set ppsetup=s0
spp -n %1 %2 %3
set ppsetup=
set ppcom=

If the programmer is on COM1 not COM2 you can delete the "set ppcom=2"
line.  This should work with the simple two resistor programmer.  Of
course you need to make sure you follow all the programming steps
carefully: basically connect +5V to the PIC making sure that /MCLR is
0V by closing the reset switch, run the batch file but don't hit a
key, connect a +12V supply via a 1k-2.2k resistor to the (still
grounded) /MCLR line, raise /MCLR to +12V by opening the switch, hit a
key, when the software exits bring /MCLR to 0V by closing the switch,
remove the supplies and remove the PIC (or if it is in-circuit raise
/MCLR to 5V to run the program).  Make sure the PC to PIC lead is
quite short (<1m).  For peace of mind work in true DOS not a DOS
prompt window.  Look out for "out of environment space" errors from
DOS.  You can also try changing the "ppsetup" line and connecting the
PIC to the parallel port.  Let me know how you get on.

Good luck,

------------------------------------------------------------------------------

> If you wired up the quick and dirty version of the serial port programmer
> then all you need to do is to check the voltages intended  for RB6/RB7 seem
> OK when measured with a voltmeter.

ok

> The pin numbers I quote are correct for
> 9-pin serial ports (let me know if you have a 25-pin port).  Without the PIC
> present, low and high will be -8V and +8V respectively in your case..  If
> they are -8V and +8V when the software says they should be low and high
> that's all you need.  The quick and dirty version CAN'T read the PIC so
> don't worry if it tells you the input is bad.

ok.

> You MUST use resistors between
> the serial port and the PIC  - the exact value doesn't matter but 22k works
> fine for me.

ok. got 22k.

> The protection diodes in the PIC will limit the voltages
> appearing on the PIC pins provided you use resistors but as you mention not
> using any at all at one time I fear you MAY have damaged the PIC.

in a moment of sanity i removed the pic as directed by software.
it runs fine on old program

{Quote hidden}

ok, done

{Quote hidden}

ok.

>  Make sure the PC to PIC lead is quite short (<1m).

its about 30 cm.

>For peace of mind work in true DOS not a DOS prompt window.

very peaceful. all development work in dos only.  windows drives up
my blood pressure.

> Look out for "out of environment space" errors from DOS.

ok

> You can also try changing the "ppsetup" line and connecting the PIC to the
> parallel port.

if i can leave work early today i will stop by radioshack and buy
soldercup parallel connector and pins and hood.  i used serial
because i had parts handy.

> Let me know how you get on.

its not working...... 0 seconds programming time.  im using a
blinkie routine that i know works on main board setup.   i checked
voltages, life on the portb6 and 7 lines, used recommended resistors,
separate 12v and 5v power supplies verified with meter.  all grounds
tied together.   pic doesnt erase and reprogram.  software exits
normally. However, if i disconnect 5v from pic, program returns 1
second programming time, but of course doesnt program chip.    Pic is
ok because old program runs fine.

hardware problem???

> Good luck,

luck appears to be a function of a lot of sweat right now.

------------------------------------------------------------------------------

Sorry you are still having problems.  What kind of machine are you
using?  Get the file topic03.zip from my PIC archive and see if the
program "tchk.exe" takes 20 seconds to run (it checks your PC timer).
If your blinkie routine hex file doesn't have the config settings
embedded in the file make sure you add the appropriate flags to set
the oscillator etc (I'm sure you've done this but just checking).  Run
the batch file a couple of times without the PIC inserted (to make
sure the serial port has been initialised properly.  If you called the
batch file "prog.bat" run "prog -e" and put the PIC back in your test
rig - it should no longer run as, if all is well, the PIC will be
erased.  It could be that the PIC had been code-protected previously
and thus unprogrammable but this step will remove code protection.
Add the line "set ppdelay=100" before the "spp -n ..."  line and add
"set ppdelay=" after it (this will slow the PC/PIC communication
somewhat).

All I can say is this SHOULD work.  It's the setup most of my students
use either in the lab or at home.  One or two have had problems but
they were usually wiring errors - typically confusing the wire that
should go to RB7 with the one that should go to RB6.  I know it must
be a bit frustrating for you right now.  It's also frustrating for me
as I know I could get it working if I was there by your side!

Good luck without too much sweat.

Oh yes ...  add a 100n decoupling cap across the PIC power pins.

------------------------------------------------------------------------------

i have slain the jabberwock.  oh frabjous day etc.  took it apart,
put it back together checking everything,  reversed pins 6 and 7,
it works it works it works.

1999\06\22@113238 by jperk

flavicon
face
John P wrote:

> Hi
> I am new to PICs.  I am thinking of building the "Quick and Dirty" Pic
> programmer by david tait.  Will it work with my 686 266mHz computer?

It seems to work with older computers no problem, but with some newer
computers you get problems with the timing of the parallel port being too
fast. It should work if you can set your parallel port to standard in your
bios. My i166mmx only works like this, so I have to swap back and forward
when using my scanner.

1999\06\22@152142 by paulb

flavicon
face
jperk wrote:

> It should work if you can set your parallel port to standard in your
> bios.  My i166mmx only works like this, so I have to swap back and
> forward when using my scanner.

 You *really* need to go out and buy a second parallel port card.  If
you are lucky, you can get an old one real cheap.

 If you think about it, this not only makes the whole process so much
simpler, but minimizes the risk that you will "zap" your motherboard,
which I am sure you would be very sad if you did!

 You are trebly lucky if you get the old card with real LSTTL logic
because not only are they cheap, but are almost certainly more durable
than one with a LSI chip *and* unlike those using the 82C11 or similar
chip, may be readily modified to operate in simple bi-directional mode.
--
 Cheers,
       Paul B.

More... (looser matching)
- Last day of these posts
- In 1999 , 2000 only
- Today
- New search...