The PICBASIC™ and PICBASIC PRO™ Compilers can now
be used with Microchip's MPLAB®!
With the latest releases of Microchip's MPLAB® , the PICBASIC™ and PICBASIC PRO™
Compiler can be used within the IDE.
Installing PICBASIC and MPLAB®
First, download the latest release of MPLAB®, if you don't have it, from Microchip's web
site.
As of this writing, version 7.00 is Microchip's latest release.
Install MPLAB and its components. In the following examples, the
default installation directory (C:\Program Files\Microchip\...) will be used.
Install the PICBASIC or PICBASIC PRO Compiler according to the instructions found
in the readme file on the floppy disk. Avoid long directory names in the
installation path. Some versions will have problems if installed in
C:\Program Files\PBP. In the following examples, we
assume that PICBASIC PRO has been installed in C:\PBP.
Next,
download the following plugins zip file and extract its contents into your PBP installation folder. The path is usually
"C:\PBP". Once extracted, run the
file "PBregister.bat" (Start - Run - C:\PBP\PBregister.bat).
(WINDOWS VISTA users may need to right-click the bat file in My Computer or
Windows Explorer and select "Run As Administrator".
Restart MPLAB for the changes to take
effect.
Download MPLAB
Plugins (zip file)
Include the directories in your system's search path
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 path that you need to add in order to locate MPASMWIN is different for
different version of MPLAB.
For MPLAB versions 6.xx.xx, the default location is:
"C:\Program
Files\MPLAB IDE\Mchip_Tools".
For MPLAB versions 7.xx.xx, the default location is:
"C:\Program
Files\Microchip\MPASM Suite".
Windows 95/98/ME
The search path is specified in a file called autoexec.bat, that should be
located in the root directory of your C drive (C:\). You can edit the file
with a text editor such as notepad, or run msconfig (Win98 only).
The path statement uses the format: PATH=path1;path2;.... Add the paths
to MPLAB and PICBASIC PRO to the end of the line, separating each path with a
semicolon.
An example path statement is: PATH=C:\WINDOWS;C:\PBP;C:\PROGRA~1\Microc~1\MPASMS~1.
Notice that long directory names must be shortened to their 8
character DOS equivalent. For example, the "Program Files" directory must be shortened to
"Progra~1".
Restart your computer after making changes to the autoexec.bat file.
Windows NT
In Windows NT, the path statement is found on the Environment tab of the
system properties dialog box.
Right click the My Computer icon
on your desktop and click Properties. Click the Environment tab.
Find the Path variable in the System Variables window and click
to highlight it. The Variable and Value textboxes should fill with the
Path information.
Add the paths
to MPLAB and PICBASIC PRO to the end of the line in the Variable Values text
box, separating each path with a
semicolon.
An example path statement is: %SystemRoot%\System32\;C:\PBP;C:\Program
Files\Microchip\MPASM Suite
Restart your computer after making changes to the path variable.

Windows 2000/XP
The path statement is found in the Environment Variables dialog box.
To get there, right-click the My Computer icon on your desktop and select
Properties.
Click the Advanced tab, then the button labeled Environment Variables.... Find the Path variable in the
System Variables window, highlight the line, and click Edit.
Add the paths
to MPLAB and PICBASIC PRO to the end of the line in the Variable Values text
box, separating each path with a
semicolon.
An example path statement is: %SystemRoot%\System32\;C:\PBP;C:\Program
Files\Microchip\MPASM Suite
Restart your computer after making changes to the path variable.

Selecting PICBASIC as the language tool within MPLAB®
Start MPLAB and select Set Language Tool Locations under the Project menu.
Select the appropriate Toolsuite Name (PICBASIC or PICBASIC PRO Compiler). Use the browse button to select PBC.EXE or
PBPW.EXE within the subdirectory where it was installed.
Creating a BASIC project within MPLAB
Run the Project Wizard to create a project in MPLAB.
Select the desired processor.
Select appropriate microEngineering Labs, Inc. Tool Suite.
Name the project. Choose the directory where the source file exists.
Add the source file to the project.
Click Next, then Finish. You should be able to edit the source and
build the project.
|