Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   16F84 HELP!!! (http://www.chiefdelphi.com/forums/showthread.php?t=39488)

Mike Betts 11-09-2005 23:50

Re: 16F84 HELP!!!
 
Phil, Sparks, et al,

IC_PROG does allow cut and paste but you need to know what you are doing. If you paste from a HEX file, you will paste not only data but other parts of the Intel Hex format (byte count, record type, offset and checksum).

Unless you are very careful about dissecting the hex file, the net result would be that you end up with invalid op-codes at unintended memory locations.

Mike



Phil,

IC-PROG is not a sophisticated programming interface.

I have not used the function but I believe that the hardware check allows you to assert each of the 4 output lines to assist in debugging via multimeter.

If IC-PROG is working and you leave all memory locations as the default FFH, an attempt to flash a device by IC-PROG will report "Verify OK" if nothing is connected to your serial port. If any data location is other than FFH, the verify will fail.

Mike



Sparks,

The step-by-step instructions in my link specifically instructs you to File>Open the TEST1.HEX file rather than cut and paste (Step 3 under Open Your Code).

Also, you are quite correct in your observation that your computer is not the same as the thousands of others. However, you still have not told us what your programming environment is.

Finally, there are 4 versions of IC-PROG available for download...

Mike

sciguy125 12-09-2005 00:15

Re: 16F84 HELP!!!
 
Quote:

Originally Posted by Mike Betts
I have not used the function but I believe that the hardware check allows you to assert each of the 4 output lines to assist in debugging via multimeter.

Yes, I believe you're right. I vaugely remember using it. It will let you set individual output lines. Thanks for correcting me, it's been awhile since i've used IC-Prog. I do remember a program that is able to determine the device in the programmer though. But, I don't remember what program it was. It had a "detect" button that would figure out the exact chip (PIC16F84, PIC16F877, etc.).

John Gutmann 12-09-2005 16:52

Re: 16F84 HELP!!!
 
what excatly do you mean by my programming environment?

Mike Betts 13-09-2005 01:44

Re: 16F84 HELP!!!
 
Quote:

Originally Posted by sparksandtabs
what excatly do you mean by my programming environment?

Sparks,

What is unique about your computer? What kind is it? What operating system? What resident programs are running? How is the serial port implemented?

As an example, my programming environment is an Intel PIII, 1 GHz, Laptop with 3/4 GB RAM running XP Home SP2. The laptop has no serial port so I use a Bafo BF-810 USB to Serial converter on COM3.

I would think that this information might be useful to anyone who is trying to help me...

Mike

John Gutmann 13-09-2005 16:22

Re: 16F84 HELP!!!
 
emachines, intel cerleron D processor, 2.833 ghz, 256 MB ram, serial port(com4),

BrianBSL 13-09-2005 17:23

Re: 16F84 HELP!!!
 
Quote:

Originally Posted by sparksandtabs
emachines, intel cerleron D processor, 2.833 ghz, 256 MB ram, serial port(com4),

Is it a usb to serial converter, or is the physical port really com4? Usually physical ports are com 1 and 2, or com 1 and 3 if com 2 is used by a modem. If you haven't done anything else using com4 before, you might want to double check that.

John Gutmann 14-09-2005 08:20

Re: 16F84 HELP!!!
 
it is a physical port, i have i think 6 serial ports on my comp

Mike Betts 14-09-2005 08:50

Re: 16F84 HELP!!!
 
Quote:

Originally Posted by sparksandtabs
it is a physical port, i have i think 6 serial ports on my comp

You very likely have 6 USB ports.

USB stands for Universal Serial Bus and is very different from a "traditional" serial port which is RS-232 compliant.

The connector for RS-232 is a 9 pin connector (called a DB9) and the connector for USB is a 4 pin connector.

Both the IC-PROG and JDM interface require a RS-232 type of serial port.

Please confirm if you have a "traditional" (RS-232) serial port or not.

Mike

sciguy125 14-09-2005 09:24

Re: 16F84 HELP!!!
 
To add to Mike's description:
serial port
USB port

John Gutmann 14-09-2005 16:07

Re: 16F84 HELP!!!
 
yes i know the difference, and i have 4 serial ports the other 2 are joystick, and no i have 8 usb ports

Mike Betts 14-09-2005 17:25

Re: 16F84 HELP!!!
 
Sparks,

I just ran a quick experiment. I took a "virgin" computer (one which has never had IC-PROG installed) and copied icprog.exe (version 1.05A) to it without copying icprog.sys. I then attempted to use IC-PROG. When I attempted a flash:

Quote:

Originally Posted by sparksandtabs from post 8 of this thread
"if you were in the middle of something, your information might be lost"

then IC-PROG just freezes :(

Even though you claimed to have followed directions in an earlier post, I'd like you to do the following:

1. Download and unzip this to the same directory as icprog.exe is in.
2. Go here and follow the directions in step 3 under "Setting up Ic-Prog".
3. After a successful installation of icprog.sys reboot your computer.

Please humor me and do this.

Let me know your results.

Mike

John Gutmann 18-09-2005 00:11

Re: 16F84 HELP!!!
 
it works now but i need a resonator for the programming circuit now according to that site, and now where around me sells them cuz there is only radio shack, and i dont feel like spending 10$ on one to order it from some site, so now i am kinda stuck

sciguy125 18-09-2005 01:06

Re: 16F84 HELP!!!
 
Quote:

Originally Posted by sparksandtabs
it works now but i need a resonator for the programming circuit now according to that site, and now where around me sells them cuz there is only radio shack, and i dont feel like spending 10$ on one to order it from some site, so now i am kinda stuck

I don't think the programming circuit needs it, but you will need a crystal to run the chip after it's been programmed. Do they have a Fry's in your area? I think they might only be in California, Texas, and Nevada though... If there is one, they'll have it, but it'll probably take you awhile to find it in their store. (I hate Fry's almost as much as I hate Radio Shack) What about some sort of surplus electronics store? There has to be some other electronics distributers in you area. Don't look at me funny. I live in Silicon Valley and there's practially something on every street corner.

John Gutmann 18-09-2005 10:15

Re: 16F84 HELP!!!
 
none that I know of, I have asked around and looked in the fone books and it is electrical supply surplus that I found, you know like residential industrial and commerial electrical stuff

sciguy125 18-09-2005 11:50

Re: 16F84 HELP!!!
 
Rochester, NY right?
"electronic supply rochester" on Google Maps turned up a bunch of commercial suppliers. But it looks like Allied Electronics might be able to help you. They sell the crystals and sell in single unit quantities, but I'm not sure if they're walk-in.

Allied Electronics
(585) 292-1670
333 Metro Park # N107
Rochester, NY 14623


All times are GMT -5. The time now is 00:10.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi