I decided after a long time of resistance to leave PM assembler and start using MPASM. Up to this moment I could not find a way to define the use of PIC type in my program like the usual
@ device pic18fxxx
in PM assembler.
Thanks,
Ioannis
Printable View
I decided after a long time of resistance to leave PM assembler and start using MPASM. Up to this moment I could not find a way to define the use of PIC type in my program like the usual
@ device pic18fxxx
in PM assembler.
Thanks,
Ioannis
HI, Ioannis
I didn't find nor ... that way.
BUT ... if you use The MPLAB Project Wizard ( you should !!! )... you define the processor there and do not need to define it in your program !!!
Alain
Thanks Alain. When using Mpasm, to assemble my program, it is funny, I cannot bootload it to the PIC. It seems that the mcu should be defined in the Basic program. I'll have to dig further and see what causes this to happen.
Ioannis
Ha ! Bootloaders and Hex files ...
1) in MPLAB : Configure/Select Device
2) Select your programmer
2) " : FILE / Import " my bootloader.hex "
3) " : View / Program memory ( optionnal ... but useful !!! )
4) Program the bootloder ...
Here it is ...
Alain
Hi Alain.
I have already loaded the PIC with the appropriate bootloder hex code. It is working just fine with any program created from PBP with it's own assembler. But it is not working with Mpasm!
Of course I can always load the new hex file without Bootloader, but...
Ioannis
I do not know any real Bootloading directly from MPLAB ...
download AN 851 and its softs from Microchip Website ... interesting - and useful !!!
do not forget to (copy into the "Program Files/P1618QP" directory)
: http://ww1.microchip.com/downloads/e...618QP_v1_1.zip
and select AN851 as a programmer ...
For REAL Bootloaders ( free ... ) see here :
http://www.etc.ugal.ro/cchiculita/so...bootloader.htm
Alain
Thanks, I'll check it. Indeed interesting!
Ioannis