|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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
|
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
||||
|
||||
|
Re: 16F84 HELP!!!
|
|
#4
|
||||
|
||||
|
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.
|
|
#5
|
||||
|
||||
|
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 Last edited by John Gutmann : 01-09-2005 at 21:31. |
|
#6
|
||||
|
||||
|
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 |
|
#7
|
||||
|
||||
|
Re: 16F84 HELP!!!
Quote:
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. |
|
#8
|
||||
|
||||
|
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 Last edited by John Gutmann : 02-09-2005 at 12:59. |
|
#9
|
||||
|
||||
|
Re: 16F84 HELP!!!
Quote:
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). |
|
#10
|
||||
|
||||
|
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
|
|
#11
|
|||
|
|||
|
Re: 16F84 HELP!!!
Quote:
|
|
#12
|
||||
|
||||
|
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.
|
|
#13
|
||||
|
||||
|
Re: 16F84 HELP!!!
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|