MPASM is a compiler. MPLAB is the editor (IDE).
Here is how you set MPLAB up to work directly with PBP.
http://www.melabs.com/support/mplab.htm
Is that what you are after?
Dave
Always wear safety glasses while programming.
Yes MPLAB is supose to be the Editor but I can't get it to open a blank Source file so I can start wrighting code. I tried going threw the project wizard but when I try to compile it it tells me that there isn't a source file.
?? What Language is MPLAB for ?? I made sure I didn't download the "C" verson.
MPLAB 8.00.00.00 Certified MPASM Installed and PICSTART Plus Installed.
I was going to try to work with MPLAB but frankly it's a real Pain. I am about to just go back to MicroCode Studio it seams to support allot of good Development platforms. Any Suggestions for a good Development Board the following support.
PicBasic Pro Compiler
Microcode Studio
EPIC Programmer (Parallel Port)
If I go further with this Platform I'll purchase MicroCode Studio Plus
Once the project is created, goto project on the tool bar and add a source file. If you do not have a *.bas file as a source, then goto file, new and make one.
MPLAB is for several languages. First assembly and then if you tell it PBP, C, and I think I remember something about java???
Development board = bread board and what ever parts you plan to use.
Dave
Always wear safety glasses while programming.
Gents
I would like to ask if the approach written by Chuck Hellebuyck on Nuts & Volts issue May 2008 would be better in running PBP in MPLAB for a newbie like us.
Any advantage or disadvantage to his approach.....?
Before I read this thread I found the same problem with the .BAS file not found by MPLAB. I get to run it after doing the suggestion by Chuck & decided of creating a Blank.Bas file so I can add it everytime I create a new project in MPLAB 8.15a.
Also the .INC file for the particular PIC I am using as per Chuck suggestion.
Any thought about this
I have never read any. Of the things from "Chuck", but it
seems like everyone that comes here that has always have
problems. So do not read from this guy...
If you want to run PBP from MPLAB follow these instructions
http://www.melabs.com/support/mplab.htm
Dave
Always wear safety glasses while programming.
I have had great success with and highly recommend the following development configuration:
Compiler: PICBasicPro (comes with MicroCode Studio lite...more than adequate)
Editor: MicroCode Studio (lite version is good enough if you don't need debugging)
Programmer: PICkit2 Starter Kit
Development Board: Either the development board that comes with the Starter Kit or your own development board with an ICSP 6-pin header installed on it so it will interface with the PICkit2.
Once you set up the "Compile and Program Options" on MicroCode Studio it will:
1) Recognize you are using PICBasicPro compiler
2) give you choice of using MPASM hex compiler or the PM compiler,
3) Load your code file into the editor
4) permit you to edit, print and compare code file versions in side-by-side button controlled windows,
6) compile your code into a hex file which is automatically saved at a specific location for you to find,
6) automatically launch PICKit2 programmer with presettings for your chosen MCU device and for the _config settings from your code,
Once PICkit2 automatically launches per above all you have to do is point it to your hex file location on your computer drive using its "Auto Import Hex & Write Device" button and it will program your device for you. Once programmed you can use various features of PICkit2 to:
1) run program on your development board,
2) review the programmed hex code that resides in the device in a listing of the hex code as programmed in each program memory location,
3) review the created data in data memory locations after running the program.
This is a very efficient way to develop programs and test them on your chosen device....and for a very low cost if you already own PICBasic Pro....MPASM and MCU lite are included free and PICkit2 is less than $50. And I don't work for or get any commissions from any of the companies who have these products. I just learned after a lot of experimentation this was a good setup.
Welcome to PICBasic programming and I hope this might help you get started.![]()
Bookmarks