Go to Post Friction is finicky. - Ether [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 05-09-2005, 23:14
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: 16F84 HELP!!!

We're doing our best to understand what you're asking, because we sincerely want to help everyone overcome their problems. We're just frustrated by imperfect spelling and grammar, because we who want to help are generally engineers who thrive on precision.

I don't mind occasional misspellings, but continuous failure to properly use the SHIFT key and appropriate punctuation does get irritating rather quickly.

Now that I've had my public rant on the topic, let's see how we can help you. Can you start with a little more detail on what you're trying to do? What you've said so far isn't very clear. It sounds like you have a PIC programming circuit with a misbehaving copy of IC-PROG, though it also sounds like you don't have a .hex file to give to IC-PROG. You say you have the third-party compiler necessary to compile your C program, but that it doesn't work.

How about starting at the beginning? We'll go from there based on what we find. What exactly are you using to try to compile, and what exactly is it doing when you try it?
  #17   Spotlight this post!  
Unread 06-09-2005, 13:55
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
Re: 16F84 HELP!!!

I am trying to program a 16f84 PIC, that is basically it. I just dont know if my programming circuit is correct or if i am doing anything right, it would really help if someone who has done it before could help me.

I gave up on compiling
I deleted all the code I had

so first lets start on getting a correct programing circuit, currently i have a JDM.

Last edited by John Gutmann : 06-09-2005 at 13:57.
  #18   Spotlight this post!  
Unread 06-09-2005, 16:12
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: 16F84 HELP!!!

Quote:
Originally Posted by sparksandtabs
so first lets start on getting a correct programing circuit, currently i have a JDM.
A JDM-compatible circuit is perfectly usable for what you want to program, and IC-PROG can talk to it just fine, so that should take care of the hardware end of things.

Now you need something to program into the PIC. That's going to be somewhat of a problem, as you say you've deleted all your code and given up on compiling. If that's the case, I'm afraid I'm at a loss to suggest the next step. The point of the exercise is to take a program and put it into the PIC, is it not?
  #19   Spotlight this post!  
Unread 06-09-2005, 18:38
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
Re: 16F84 HELP!!!

correct, but all of the code I had was incorrect, it was just hexadecimal numbers that were random.

If someone knows how to program in assembly can you please help me?

also since this is a JDM schematic, can you confirm this one is correct?
http://www.josepino.com/3/
  #20   Spotlight this post!  
Unread 06-09-2005, 22:03
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: 16F84 HELP!!!

Quote:
Originally Posted by sparksandtabs
correct, but all of the code I had was incorrect, it was just hexadecimal numbers that were random.
I don't know how to respond to that. You don't seem to want to give enough information for me to help you.
Quote:
If someone knows how to program in assembly can you please help me?
I'm quite lost now. You seem to have changed your direction drastically. What happened to wanting to compile a program? I don't think this forum is going to be a useful way for you to learn to write PIC assembly language.
Quote:
also since this is a JDM schematic, can you confirm this one is correct?
http://www.josepino.com/3/
It seems to be consistent with other JDM-inspired programming circuits. I see no reason to disbelieve its claim to work with IC-PROG.
  #21   Spotlight this post!  
Unread 06-09-2005, 22:16
sciguy125 sciguy125 is offline
Electrical Engineer
AKA: Phil Baltar
FRC #1351
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Sunnyvale, CA
Posts: 519
sciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond repute
Send a message via AIM to sciguy125 Send a message via MSN to sciguy125 Send a message via Yahoo to sciguy125
Re: 16F84 HELP!!!

Ok, let's take this one step at a time. Let's make sure that your programming setup works. I've attached a hex file and the corresponding source for it. It's for the 16F84. If you use a 4MHz crystal and have a servo lying around, you can also verify that your programming attempt was successful. There's instructions in at the top of the source file. I'd give you simpler program, but my assmbler isn't working right now and this was all I could dig up. If I remember correctly, however, IC-Prog lets you read the flash, so you can verify that it was written properly.
Attached Files
File Type: txt servo.asm.txt (3.5 KB, 114 views)
File Type: txt servo.hex.txt (416 Bytes, 54 views)
__________________

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GE/S/P a-- e y-- r-- s:++ d+ h! X+++
t++ C+ P+ L++ E W++ w M-- V? PS+ PE+
5- R-- tv+ b+ DI+++ D- G
------END GEEK CODE BLOCK------
  #22   Spotlight this post!  
Unread 06-09-2005, 23:59
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: 16F84 HELP!!!

Sparks,

I think you need to take a step back and apologize to Alan, Fowler, Phil and Brian. The perceived (at least by me) attitude of your posts is childish and ignorant. Concerning the latter perception, I’m betting that you are not or you would not be attempting a project like this. Concerning the former perception, the teen angst bit may work with your parents and school teachers as they have little choice than to put up with it. In this forum, you will find it much more efficient to conduct yourself as an adult and make an effort to communicate better. All any of us are doing here is trying to help you out…

Now I’ll get off my soapbox and get on to your problem.

There is nothing wrong in the programming circuit proposed in Mr. Peno’s site and there is nothing wrong in using IC-PROG. It appears that you have some problem understanding the mechanisms involved in embedded microprocessors. That’s OK. We all have to start somewhere…

Instead of trying to explain it all at once, I’m going to direct you to a site at the University of Texas:

http://www.ece.utexas.edu/handson/robocar/

In this project, you will find that they use the same JDM compatible programming circuit (http://www.ece.utexas.edu/handson/ro...programmer.gif) as Mr. Pino. They have also provided an excellent piece of “test” code (http://www.ece.utexas.edu/handson/ro...code/TEST1.HEX) and a test circuit (http://www.ece.utexas.edu/handson/ro...picledtest.gif) to verify programming. They have also included detailed step-by-step instructions on the programming process (http://www.ece.utexas.edu/handson/ro...programmer.htm)*.

After you have succeeded in getting the LED to flash, you should look at TEST1.ASM and see how it was done.

Lastly, you should now try to assemble TEST1.ASM into your own TEST1.HEX using MPLAB (or whatever tool you are using) and verify that it works in your circuit as well.

If at any point in this process, you hit a snag, please post here and ask for help. Just remember to try and put yourself in our shoes when you proofread your post. Have you given us all relevant information and is it easily understood?

Best of Luck,

Mike

* This website is somewhat dated and your computer may be using COM3, COM4, et cetera as the serial port. If you have difficulty in determining which is being used, ask.

Post Script: You should try a private message to Brandon Martus if you continue to have a problem with the spell check routine. I’m using Firefox 1.06 under Windows XP SP2 and I have no problems with it.
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...

Last edited by Mike Betts : 07-09-2005 at 00:38.
  #23   Spotlight this post!  
Unread 08-09-2005, 14:52
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
Re: 16F84 HELP!!!

I am trying to communicate better.

and to reply to alan, I said lets start over, which means starting from the beggining as if nothing were done. so I wouldn't be trying to compile a program if I need one first, also i have no code to compile. I am not trying to learn how to program in assembly, I never said that i was anywhere.

Mike IC-Prog does not work fine, everytime i hit the compile button the program just freezes up

Also, where can I purchase something for it that would run at 4 mhz, I believe that I would need a Resonator, is this correct

Last edited by John Gutmann : 08-09-2005 at 14:58.
  #24   Spotlight this post!  
Unread 08-09-2005, 19:24
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: 16F84 HELP!!!

Quote:
Originally Posted by sparksandtabs
IC-Prog does not work fine, everytime i hit the compile button the program just freezes up

Also, where can I purchase something for it that would run at 4 mhz, I believe that I would need a Resonator, is this correct
As you stated, let's start over. From now on, I am making all references to the University of Texas web site...

You do not need an oscillator to program the chip. Only the components noted here.

You do not need to compile anything right away. Just use the TEST1.HEX file provided here.

You do need a crystal oscillator to test the chip with the TEST1.HEX program loaded as shown here.

You will also note a rather extensive debugging list here in the event that you have problems with IC-PROG. Of particular note are the special drivers required for XP operation.

Are you sure that you have followed the instructions indicated?

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #25   Spotlight this post!  
Unread 08-09-2005, 19:35
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
Re: 16F84 HELP!!!

Mike, no i havent done that stuff you listed because i was using a different programming circuit, as soon as i get the parts i can try, but i do not know where to get the resonator
  #26   Spotlight this post!  
Unread 08-09-2005, 20:57
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: 16F84 HELP!!!

Quote:
Originally Posted by sparksandtabs
Mike, no i havent done that stuff you listed because i was using a different programming circuit, as soon as i get the parts i can try, but i do not know where to get the resonator
If you look carefully, both http://www.josepino.com/3/ and http://www.ece.utexas.edu/handson/ro...programmer.gif are close to identical. The latter is just easier to read (in my humble opinion) and the likelihood that you have made (or will make) a wiring error is not outside the realm of possibility.

For the test circuit, you should be able to get the 3.864 MHz crystal almost anywhere. Radio Shack used to carry them for about 2.50 each (although I have been repeatedly disappointed recently by RS).

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #27   Spotlight this post!  
Unread 09-09-2005, 16:43
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: 16F84 HELP!!!

Quote:
Originally Posted by sparksandtabs
Mike IC-Prog does not work fine, everytime i hit the compile button the program just freezes up
I've never noticed a "compile button" in IC-PROG. Did you get the program from http://www.ic-prog.com/?
  #28   Spotlight this post!  
Unread 09-09-2005, 22:14
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
Re: 16F84 HELP!!!

well I dont know what it is called, i thought it was a compile button, but it is what makes the program download
  #29   Spotlight this post!  
Unread 09-09-2005, 22:25
sciguy125 sciguy125 is offline
Electrical Engineer
AKA: Phil Baltar
FRC #1351
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Sunnyvale, CA
Posts: 519
sciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond repute
Send a message via AIM to sciguy125 Send a message via MSN to sciguy125 Send a message via Yahoo to sciguy125
Re: 16F84 HELP!!!

Quote:
Originally Posted by sparksandtabs
well I dont know what it is called, i thought it was a compile button, but it is what makes the program download
The button to flash the chip should be the button with a lightning bolt over a microchip. When you hover your mouse over it it will say "Program All".
__________________

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GE/S/P a-- e y-- r-- s:++ d+ h! X+++
t++ C+ P+ L++ E W++ w M-- V? PS+ PE+
5- R-- tv+ b+ DI+++ D- G
------END GEEK CODE BLOCK------
  #30   Spotlight this post!  
Unread 10-09-2005, 14:24
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
Re: 16F84 HELP!!!

well yea what ever it is called, an error comes up when i click it.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 06:57.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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