![]() |
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 |
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? |
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 |
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? |
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 |
Re: PIC16F84 -> Problem converting ASM to Hex
2 Attachment(s)
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 |
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? |
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 |
Re: PIC16F84 -> Problem converting ASM to Hex
Quote:
|
| All times are GMT -5. The time now is 04:31. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi