Getting Started with Development Tools
Development Tools Home
Getting Started Development Tools Home
Step 1 An Overview of Embedded Systems
Step 2 Start Now with Microchip Development Tools
Step 3 Implementing an Embedded System Design with MPLAB® IDE
Step 4 The Development Cycle
Step 5 MPLAB® Project Manager
Step 6 Language Tools
Step 7 Target Debugging
Step 8 Programming
Step 9 MPLAB® IDE: For More Information
Getting Started with MPLAB Editor
Getting Started with MPASM/MPLINK
Getting Started with MPLAB SIM
Getting Started with MPLAB ICD
Getting Started with MPLAB C18 1
Getting Started with MPLAB C18 2
Getting Started with MPLAB C18 3
Introduction to Microchip’s Development Tools
Introduction to MPLAB® IDE
Tips and Tricks Using MPLAB® IDE v6.61
Introduction to MPLAB® SIM Software Simulator
Basic dsPIC Development Tools
Introduction to the Signal Analysis PICtail daughterboard
Choosing a Debug Tool
MPLAB® IDE User's Guide
MPLAB® IDE Quick Chart
MPLAB® Download Page
Online Discussion Groups
Development Tools Selector Guide
Available Books
Third Party Tools
  Featured Products
 

Pick your MCU
 
 
     

START NOW WITH MPLAB® EDITOR

MPLAB IDE Programmer’s Text Editor

The MPLAB Editor is an integrated part of the MPLAB IDE Integrated Development Environment. The editor is always available when MPLAB IDE is running.

The MPLAB IDE and MPLAB Editor are designed to provide developers with an easy and quick method to write, edit and debug source code for firmware for Microchip Technology’s PIC® microcontroller (MCU) and dsPIC® digital signal controller (DSC) product families.

The editor functions in a File window of MPLAB IDE. Menu items on File and Edit menus and the right-mouse button are available for editor control.

The MPLAB Editor provides an easy-to-use source code editor.

MPLAB Editor Window

CONFIGURING THE EDITOR

The editor can be customized to show/suppress line numbers, to enable color printing, control word wrap, and to enable mouseover debugging. Fonts, font sizes, and general text window properties can be customized.

The editor displays

    assembly code for each type of PIC and dsPIC MCU,

    C source code,

    BASIC source code, as well as

    other types of text files used within MPLAB IDE.

Color coding is customizable, and depends upon the file type assigned to the text file. Assembly, C, and BASIC keywords are recognized and highlighted to enable easy visual inspection, and to quickly point out typographic errors.

WORKING WITH TEXT

As a programmer’s text editor, the MPLAB editor provides comprehensive features for writing, formatting and working with source code. The following editor features are included:

    Select Text

    Move to a Specific Line

    Cut/Delete Text

    Copy Text

    Paste Text

    Find Text

    Replace Text

    Match Braces

    Undo Editor Actions

    Redo Editor Actions

    Indent and Outdent

    Format Text

    Bookmark Text

    Set Text Mode

Most controls are available from the right mouse menu:

Right Mouse Button Controls


WORKING WITH DEBUG FEATURES

When a debugger is selected in MPLAB IDE, several code debugging features are available in the editor window.

    Breakpoints – Breakpoints can be set and cleared directly in source code.

    Debugging functions – Mouseover features allow variables to be monitored in the source text, and allows variables to be dragged to watch windows for continuous monitoring. Run to cursor, set PC to cursor, and single step are all controlled from the editor window.

    Filter Trace – The simulator and emulator trace analyzer can be enabled to trace sections of selected code.

Step 9: MPLAB IDE: For More Information

Start Now With MPASM and MPLINK