|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
PIC16F84 -> Problem converting ASM to Hex
Hey Hey
Im not too sure if this is the right forum, but im having a few problems with a PIC16F84 microcontroller.... i have tried several of my own programs (All tested in MPLAB) and nothing happens.... i've also tried a couple of ASM files i have downloaded off the internet and converted myself.... but still, nothing happens.... however i downloaded a pre-converted hex file off the internet and it works fine.... so i've come to the conclusion that its a problem when im converting the file? Im using default settings in MPASMWIN.exe but i have changed the processor to 16f84. Is there anything missing here? Thanks in advance -Ballam |
|
#2
|
||||
|
||||
|
Re: PIC16F84 -> Problem converting ASM to Hex
what do you mean by converting the asm file?
the asm file is the source file, it must be compiled (make or build) and you probabally need to have some include (.inc) files in the same directory what do you mean "nothing happens" ? does the assembly run when you click on 'BUILD'? do you get error messages? did you set up the project in MPLAB to point to the right directories? did you ADD your .asm files to the project? |
|
#3
|
|||
|
|||
|
Re: PIC16F84 -> Problem converting ASM to Hex
Sorry for not being very precise
I mean it builds and succeeds. no errors..... but i burn it to the chip, when i run the chip all the pins all stay low... i don't have any .inc files |
|
#4
|
||||
|
||||
|
Re: PIC16F84 -> Problem converting ASM to Hex
did you use the TRIST registers to make them outputs?
BTW, the TRIST registers are not in the default register bank. how did you configure the chip to run, internal clock? external RC? |
|
#5
|
|||
|
|||
|
Re: PIC16F84 -> Problem converting ASM to Hex
external 4mhz crystal
and yes i used the TRIST registers to make them all outputs.... and even if i didn't, i downloaded a couple of sample ASM files to test with Last edited by Ballam : 07-11-2005 at 18:14. |
|
#6
|
|||
|
|||
|
Re: PIC16F84 -> Problem converting ASM to Hex
HelloLed.asm is one i downloaded
test.asm is mine PS: They are .asm but the forum wouldn't allow me to upload asm files Last edited by Ballam : 07-11-2005 at 18:19. |
|
#7
|
||||
|
||||
|
Re: PIC16F84 -> Problem converting ASM to Hex
neither one of those files has a 'config' statement
the config statement tells the µC whether to use the internal clock, an external crystal, an external clock input, a watchdog timer, the brownout, which pins to put various special functions on, whether to use an external reset.... So your µC doesnt know whats what - try looking for default or example code on the MicroChip website - or read up on the config register for the chip you are using (in the spec sheet for the chip). If your µC is doing nothing then most likely its looking for a clock input, or a reset signal that isnt there. BTW- are you a member of a FIRST robotics team, or Vex team, or did you google Microchip and just happen to find this website? Last edited by KenWittlief : 07-11-2005 at 21:11. |
|
#8
|
|||
|
|||
|
Re: PIC16F84 -> Problem converting ASM to Hex
aah sorry i didn't reply
yes it was the config bits. I just found the site on google |
|
#9
|
||||
|
||||
|
Re: PIC16F84 -> Problem converting ASM to Hex
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IFI Loader problem - "Invalid HEX file" | wun | Programming | 9 | 22-09-2004 12:35 |
| FIRST-SME membership | archiver | 2001 | 5 | 24-06-2002 00:41 |