logo image - link to home page

Products | Support | Resources | PurchaseContact  | Basket  | Checkout

  Home
  What's New
  Products
  Distributors
  Purchasing Info
  Developer Resources
  Support
  Upgrades
  Site Index
  Contact Us
  Pb-Free Info (RoHS)
 

 

keyword search:
 


 

Home:
  Support home:
General Topics:
    FAQ
    MCU selector guide
    Developer's resources
    Downloads and patches
    Sample programs
Support by Product:
    melabs USB/U2 
Programmer
    melabs Field
Programmer
    melabs Serial 
Programmer
    EPIC™ Programmer
    Programming Adapters
    PICBASIC PRO™ 
Compiler
    PICBASIC™ Compiler
    PICPROTO™ Boards
    LAB-X1 Experimenter Board
    LAB-X2 Experimenter Board
    LAB-X3 Experimenter Board
    LAB-X4 Experimenter Board
    LAB-X18 Experimenter Board
    LAB-X20 Experimenter Board
    LAB-XT Experimenter Board
    LAB-XUSB Experimenter 
Board
    melabs Loader
 

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®.

(01/26/2009)  Microchip's MPLAB version 8.15a appears to be the last version that will support COD file functionality.  This means that PBP will generate errors in MPLAB version 8.20 and later.

We will be releasing a new version of PBP with COFF file compatibility in response to this surprise move by Microchip.  In the meantime, MPLAB version 8.15a is available for download here:  Download MPLAB 8.15a (93M ZIP)

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.

 


Copyright 2009
microEngineering Labs, Inc.
Box 60039
Colorado Springs CO 80960
(719) 520-5323
(719) 520-1867 fax
email: support@melabs.com

Last Updated: 04/10/2009

Home | Products | Support | Resources
Purchase | Index | Privacy |   Contact

PIC, PICmicro, dsPIC, and  MPLAB are registered trademarks of Microchip Technology Inc. in the USA and other countries.  PICBASIC, PICBASIC PRO, PICPROTO, and EPIC are trademarks of Microchip Technology Inc. in the USA and other countries.   BASIC Stamp is a trademark of Parallax, Inc.

Microchip third-party partner    Microchip Consultant Program Member