Hello Kenny,
First thing to do before start with this is setup according to the instructions bellow:
Using PBP With MPLAB
The PicBasic Pro Compiler can be used within the MPLAB IDE.
First, download the latest release of MPLAB, if you don't have it, from
Microchip's web site (www.microchip.com). As of this writing, version 7.00
is Microchip's latest release with support for our products.
Install MPLAB and its components. The default installation directory for
MPLAB is C:\Program Files\Microchip. MPASMWIN.EXE is located in the
subdirectory C:\Program Files\Microchip\MPASM Suite.
Install the PicBasic Pro Compiler according to the instructions found in its
readme file. Avoid long directory names or spaces in the installation path.
It is best to install the PicBasic Pro Compiler in its default directory,
C:\PBP.
The next step is to include both of the install directories within the
search path on your system. The procedure differs depending on the version
of Windows running. The melabs web site has details on setting the path for
each version of Windows. (http://melabs.com/support/mplab.htm)
Next, setup PicBasic Pro as a language tool within MPLAB. Start MPLAB and
select Set Language Tool Locations under the Project menu. Select the
appropriate Toolsuite Name (PicBasic Pro Compiler) and then Executables.
Use the browse button to select PBPW.EXE within the subdirectory where it
was installed (C:\PBP).
Installation of the compiler into MPLAB is now complete. You can now write,
edit, simulate and program BASIC projects from within MPLAB.
To create a BASIC project within MPLAB, run the Project Wizard under the
Project menu. Select the desired processor. Select the appropriate
microEngineering Labs, Inc. Toolsuite (PicBasic Pro Compiler). Name the
project. Choose the directory where the source file exists. Add the source
file to the project. Click Next, then Finish. You should now be able to
edit the source and build the project.
Hope it helps!
Bookmarks