Hello,
I'm a new member here, and this is my first question.
I was reading about programming the PIC microcontrollers, and the commands entered into the IDE looked to be done in C programming language. Would the IDE allow commands to be entered in as machine language commands? I don't know C, but the machine language commands make a lot of sense to me and my projects are small.
Thanks
Thanks Violet.
Here's another question. A few years ago I put a program onto a PIC microcontroller, using a much earlier version of MPLAB, but I don't have the file anymore. Now that I am coming back to using microcontrollers I would like to get the program from the chip. I think that this would help jump start my programming if I could study what I did back then. Is there a way to download the program from a PIC microcontroller to LABX? The program still works just fine.
Thanks,
Gary
I remember doing something like that long back.
There is a way to use pickit3 to get the program out of a MCU which was not locked during programming.
But you will be able to get only the HEX code it would be of no use for recreation. You can only use to duplicate the same on other MCUs
Violet
PermalinkHi Gary,
Yes you can program your PIC directly in assembly langugae using MPLAB X
Just enter the assemble code in the same place where C code is written and compile it. It is also possibel to comine both C code and assembly code.
It is highly recommended that you also learn C code since assembly code will not get you much further
Cheers,
Violet
- Log in or register to post comments
Joined August 16, 2018 42Thursday at 11:31 AM