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)

John Gutmann 31-08-2005 22:34

16F84 HELP!!!
 
i have a 16F84 assembled in a programming circuit but idk if the circuit will actually work cause i got it off the net and i cant figure out how to downlaod the code from my compiler to the PIC

fowlerm 01-09-2005 00:00

Re: 16F84 HELP!!!
 
That's not a whole lot of info to go on. Could you provide a link to the website you got this from, or a schematic of the programming circuit.

John Gutmann 01-09-2005 18:27

Re: 16F84 HELP!!!
 
http://www.josepino.com/3/

fowlerm 01-09-2005 20:47

Re: 16F84 HELP!!!
 
That programming circuit requires you to use an application called IC-Prog. Once you have the hex file from whatever development tools you are using you would use IC-Prog to flash the PIC.

John Gutmann 01-09-2005 20:57

Re: 16F84 HELP!!!
 
what program can I use to get the hex file?

do you know of any circuts i can use that you know will work?

or any other applications i can use?

i got the .ASM file but not i have no way of getting the .HEX file

Mike Betts 01-09-2005 21:58

Re: 16F84 HELP!!!
 
Calm down...

You make a .hex file every time you program the IFI controller. The linker actually creates the .hex from object code (.o files).

.asm files are either source code in assembler or a compiler generated intermediate file from a higher level language like C.

If you are not generating .hex files, either you have the integrated environment set up wrong or the linker had an error during its processing.

Mike

fowlerm 01-09-2005 23:15

Re: 16F84 HELP!!!
 
Quote:

Originally Posted by sparksandtabs
i got the .ASM file but not i have no way of getting the .HEX file

First off - do you have Microchip MPLAB installed?

If you don't then download and install it from here.

If so, then the simplest way to do this (assuming your code is only one assembly file) is to do the following:

1) Open the assembly source file in MPLAB
2) On the MPLAB menubar choose Configure->Select Device...
3) In the dialog that comes up choose the PIC16F84 or PIC16F84A depending upon what chip you have.
4) On the MPLAB menubar choose Project->Quickbuild

MPLAB will launch the assembler (MPASM) and will build a hex file in the same directory as your assembly source file. Then you can use IC-Prog to flash the PIC with your newly created hex file.

John Gutmann 02-09-2005 12:32

Re: 16F84 HELP!!!
 
i am having problems using IC-PROG because everytime i go to flash the PIC it freezes, it comes up with an error message thats says

"if you were in the middle of something, your information might be lost"

then IC-PROG just freezes :(

and yes i have MPLAB installed

also i need a way to get a .ASM file because they way i thought would work didn't

fowlerm 02-09-2005 14:50

Re: 16F84 HELP!!!
 
Quote:

Originally Posted by sparksandtabs
also i need a way to get a .ASM file because they way i thought would work didn't

I'm not exactly sure what you mean by this. Correct me if I'm wrong, but from what I understood from your other posts was that you had written the code in assembly.

If this is not the case, how were you going to get the assembly file?

If you could tell me exactly what your development setup is, it would help alot. Like what your MPLAB version is and what compiler you are using (if any).

John Gutmann 02-09-2005 17:28

Re: 16F84 HELP!!!
 
i wrote the code in c but i need to convert it to assembly, and i am just using mplabs and ic-prog

BrianBSL 02-09-2005 17:39

Re: 16F84 HELP!!!
 
Quote:

Originally Posted by sparksandtabs
i wrote the code in c but i need to convert it to assembly, and i am just using mplabs and ic-prog

You can't do that with a 16F84 without using a 3rd party compilier. We told you that in another thread. The C18 compiler does not compile for 16F's, only 17's and 18's. You have to write the code in assembly by hand or buy a 3rd party compilier to use it with a 16F84, as you were told in another thread.

fowlerm 02-09-2005 18:08

Re: 16F84 HELP!!!
 
HI-TECH Software has a free compiler called PICC Lite that targets PICs commonly used by hobbyists, including the PIC16F84(A). You have to register with HI-TECH, but the compiler is free. The compiler integrates with MPLAB, and is very easy to get up and running.

John Gutmann 03-09-2005 18:14

Re: 16F84 HELP!!!
 
Quote:

Originally Posted by BrianBSL
You can't do that with a 16F84 without using a 3rd party compilier. We told you that in another thread. The C18 compiler does not compile for 16F's, only 17's and 18's. You have to write the code in assembly by hand or buy a 3rd party compilier to use it with a 16F84, as you were told in another thread.

i WAS TRYING to use a 3rd party compiler to assemble it but it didnt work, that is why i asked if anybody knew how i cud get it from c to assembly

BrianBSL 04-09-2005 20:33

Re: 16F84 HELP!!!
 
Quote:

Originally Posted by sparksandtabs
i WAS TRYING to use a 3rd party compiler to assemble it but it didnt work, that is why i asked if anybody knew how i cud get it from c to assembly

First of all, you never said that. Second, your sentences have so many case, grammar, and spelling problems that they are very difficult to read. This isn't an instant message, it would be nice if you would use full words. Could is spelled "could" not "cud". Is English your first language?

John Gutmann 05-09-2005 19:54

Re: 16F84 HELP!!!
 
Quote:

Originally Posted by BrianBSL
First of all, you never said that. Second, your sentences have so many case, grammar, and spelling problems that they are very difficult to read. This isn't an instant message, it would be nice if you would use full words. Could is spelled "could" not "cud". Is English your first language?

yes english is my first language, and i try to type the right way, not like i type like a freak just to piss you off, and dont say my sentance are FULL of errors, when i spell one word wrong, is a bucket of water FULL after one drop?
and the spell check doesn't work when i click it it just comes up with a pop up that has the word error in it

also what do you mean we are not on a instant messenger messenger?, i try to type correctly on a messenger too, if you cant read my post then i guess that is my problem, so therefore if you cant read it or have troubles why are you torturing youself by struggling to read it, just come into the thread see you cant read it then leave.


All times are GMT -5. The time now is 04:33.

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