![]() |
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? |
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. |
Re: 16F84 HELP!!!
Quote:
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? |
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/ |
Re: 16F84 HELP!!!
Quote:
Quote:
Quote:
|
Re: 16F84 HELP!!!
2 Attachment(s)
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.
|
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. |
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 |
Re: 16F84 HELP!!!
Quote:
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 |
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
|
Re: 16F84 HELP!!!
Quote:
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 |
Re: 16F84 HELP!!!
Quote:
|
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
|
Re: 16F84 HELP!!!
Quote:
|
Re: 16F84 HELP!!!
well yea what ever it is called, an error comes up when i click it.
|
| 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