MPLAB® X IDE | Microchip Technology (2022)

I/O View

I/O View gives a register overview of the target device for the current project, serving as a quick reference during design. When debugging, a live view of the registers is displayed and bits can be directly manipulated for fast hardware verification.

MPLAB® X IDE | Microchip Technology (1)

One-Click Access to Data Sheet Content as Online Context Help

You can access the data sheet content as online context help in a browser. When you see the Online Data Sheet button is active, you can click on it and get online context help for the selected register. Watch thisvideoto see a demonstration of this feature.The online data sheet is available for select MCU devices, including newer AVR®, SAM and 8-bit PIC® devices when a register is selected.

One-Click Make, Program, Debug/Execute

Unlike other IDEs where you need to build, connect to the hardware tool, program the target and then start your debug session, all these functions are offered inone action button. Run, Program, or Debug Run starts ‘Make’, which will check for changes and build any relevant updates, connect to the tool program the images and either start a debug session or start an execution of the programmed image. If you prefer, you can choose to perform these functions individually.

MPLAB® X IDE | Microchip Technology (2)

Call Graph for Navigating Complex Codes

The Call Graph provides a static call tree of all functions called from other functions. It can also be exported to a Portable Network Graphics (PNG) image. This makes it easier to navigate your code or understand a colleague's code.

MPLAB® X IDE | Microchip Technology (3)

Multiple Configurations Within Your Projects

A single project can build the same set of source files in many different ways. Each configuration has its own compiler options, compiler, hardware tool and target device.

MPLAB® X IDE | Microchip Technology (4)

Support for Multiple Versions of the Same Compiler

You can have as many versions of a compiler installed as you wish. Each is identified by its own version. For any project, you can select the specific version of your choice. This enables you to use more than one instance of a compiler within the IDE at the same time.Project configurations can be set to use an older version while trying a new release of a compiler.

MPLAB® X IDE | Microchip Technology (5)

Support for Multiple Debug Tools of the Same Type

You can have multiple debug tools connected to the computer at the same time. You can select any tool you desire for a specific project or configuration within a project (example: Programmer and Simulator in their own configurations). You can also debug more than one target at the same time using just one installation of MPLAB X IDE.

MPLAB® X IDE | Microchip Technology (6)

Live Parsing

Live parsing will flag something that the C parser doesn't recogize while you are typing in your code, which frequently allows you to fix your code even before you compile it.

MPLAB® X IDE | Microchip Technology (7)

Import Existing MPLAB 8 IDE Projects and Use Either IDE for the Same Source

You can import an existing MPLAB 8 project and develop the code from within either IDE. The same compiler and same debug tools are used, so the code is still as production worthy as always. This flexibility allows you to use MPLAB X IDE without affecting your MPLAB 8 project.

MPLAB® X IDE | Microchip Technology (8)

Hyperlinks for Fast Navigation to Declarations and Includes

View the declaration for a function, variable, macro, or include statement by using the CTRL key and mouse over. Clicking on the hyperlink will take you right to the source of declaration. Alternatively, you can right click on it and choose Navigate → Go to Declaration from the context menu to jump to its declaration.

MPLAB® X IDE | Microchip Technology (9)

Live Code Templates

Within the IDE there are many code templates that can be accessed using a couple of letters then tab (or specified key). You can create your own templates, even live templates, so that when you enter values into the template area, other areas of code are also populated. For example the 'func' active code template is shown below. As you enter parameters in the comments to document the function, the real function is also populated.

MPLAB® X IDE | Microchip Technology (10)

Enter File Code Templates with License Headers or Template Code
You can select from a template file whenever you create a new file to add source code.
Track Changes Within Your Own System Using Local History

If you are unsure of what changes you made to the software since the last version control update, you can use the Local History utility to visualize the changes that were made. This feature is very useful for backtracking.

MPLAB® X IDE | Microchip Technology (11)

Configure Your Own Code Format Style

You or your company can set up a code format standard to be used within the editor. Just select the file to format the code in and menu Source >/Format to reapply the template to your source code.

MPLAB® X IDE | Microchip Technology (12)

Tasks Window to Keep Track of Loose Ends in Your Code

The Tasks operation automatically scans your code and lists commented lines containing words such as "TODO" or "FIXME" (these words can be customized under Options). Tasks provide a convenient way to keep track of important items you feel need addressing.

MPLAB® X IDE | Microchip Technology (13)

Show Macro Expansions

Macros are incredibly useful, but sometimes they can have unexpected values if they are conditionally defined. This window allows you to see what the compiler will consume after the preprocessor is done. With the expansion view, you see exactly what value they expand to. Blocks of code that are not to be compiled are omitted in the view. In the editor window, MPLAB X IDE shows you all the #ifdef/#endif blocks. It uses the comment color (grey by default) to show you sections that will not be included.

MPLAB® X IDE | Microchip Technology (14)

Configurable Memory Views

You can change any memory view to look at any type of memory. Formats for those views are also selectable from the dropdowns. This provides a quick view of a change without going through the menus.

MPLAB® X IDE | Microchip Technology (15)

Project Status Window

Do you need one place to summarize your project? For convenience there is a single window that gathers all the relevant project information and its environment. It shows Device name, Debug Tool, Language Build Tool, and Connection state. The Memory section shows Total, Used and Reserved by Debug Tool for RAM and Flash memory. Checksum and Breakpoint (silicon resource) status is also shown. The Debug tool provides additional status for Device ID, firmware versions and voltages.

MPLAB® X IDE | Microchip Technology (16)

Attach a Specific Debugger Tool Firmware Version to a Project

With this feature, you’ll never have to worry about which firmware version you were using. MPLAB X IDE will remember it and automatically restore it to the correct version when you connect to the debugger.Just set it and forget it.

MPLAB® X IDE | Microchip Technology (17)

Two Types of Disassembly Windows

Available only during a debug session and accessed through the Window >/ Debugging menu, this Disassembly windowshows the disassembled memory of the high-level language function in the scope of the current execution point of the debugger. It is extremely useful for debugging program execution at the assembly level.

The Disassemblylisting window is similar to the one provided in MPLAB IDE v8.x. It is available under the Window >/ Output menu. This window shows the disassembled code generated by the compiler for the current project. It interleaves the disassembled code with the original high-level language source code so it is possible to see what the compiler generates for each line of source code in the project. A project must be built with debugging information, since the display depends upon the debugging line table within the built project to display data.

MPLAB® X IDE | Microchip Technology (18)

Software Call Stack Window with Function Arguments
Use the Variables and Call Stack windows together to browse local variable history of each function in the call chain. Hint: The Variables window is docked at the bottom of the output pane to allow simultaneous interaction and display of the local variables with the selected function in the Call Stack window.
Focused Modes of the Variables Display

The Variables window is configured to show only variables used near the program counter location (cursor position). In this mode, note that global variables used in the scope of the function can be displayed as well as local variables.

MPLAB® X IDE | Microchip Technology (19)

Auto-Completion

Save time entering programs and ensure correctness using the editor’s auto-completion features.

MPLAB® X IDE | Microchip Technology (20)

Built-in Source Code Control

There are three flavors of configuration management source control already built into the IDE. Others are provided through the NetBeans community.

MPLAB® X IDE | Microchip Technology (21)

Navigation Window for Fast, Easy Access to Code

Save time navigating to particular locations in large code bases using the Navigation window. Use the context menu to filter out undesired types.

MPLAB® X IDE | Microchip Technology (22)

Fully Customizable Workspace and Multiple Screen Support

You can customize the actions in the toolbars, minimize the windows to have them on side bars which will pop out. Undock any editor tab by dragging and dropping it outside the IDE. This will turn into an independent window that will allow you to move onto a second screen.

MPLAB® X IDE | Microchip Technology (23)

Extend Functionality with the MPLAB IDE Plug-in Manager

You canuse the plug-in manager from the tools menu to add, remove or update sets of features for embedded programming, including a wide variety of NetBeans plug-ins. These include Change Case, Rectangular Edit Tools, Adobe Reader, Clear Case Revision Control, plus many more. Visitplugins.netbeans.org/PluginPortal. We host a plug-in portal for plug-ins developed by Microchip.

MPLAB® X IDE | Microchip Technology (24)

FAQs

What is Mplab X IDE used for? ›

MPLAB X Integrated Development Environment (IDE) is an expandable, highly configurable software program that incorporates powerful tools to help you discover, configure, develop, debug and qualify embedded designs for most of Microchip's microcontrollers and digital signal controllers.

What is the difference between Mplab IDE and Mplab X IDE? ›

MPLAB X IDE allows you may have multiple debug sessions active in one IDE. MPLAB IDE v8 allowed one debug or programming session. MPLAB IDE v8 allowed you to have multiple projects open in the IDE. However, you could only debug or program with one project at a time.

What language does Mplab X IDE use? ›

MPLAB X supports editing, debugging and programming of Microchip 8-bit, 16-bit and 32-bit PIC microcontrollers.
...
MPLAB X.
Developer(s)Microchip Technology
Written inJava (programming language)
Operating systemMicrosoft Windows >7, Mac OS X, Linux
LicenseProprietary EULA
5 more rows

Is MPLAB a software? ›

The MPLAB Integrated Programming Environment (IPE) is a software application that provides a simple interface to quickly access key programmer features.

How much does MPLAB cost? ›

There is only one version, which is free. And Which complier is best to use with MPLAB? The one which suits your PIC family, which you have not mentioned.

Which IDE is used for pic? ›

MPLABX IDE is an Integrated Development Environment that is developed by Microchip. It is used to develop a code for PIC microcontrollers.

What does MPLAB stand for? ›

What do the letters in MPLAB STAND FOR? 6/28/2017. qhb. MPLAB Make Programs Like A Boss. MPLABX Makes Programmers Lose A Brain boX.

Is MPLAB case sensitive? ›

Page 254 of the Assembler manual (DS51317H) has various comments and footnotes about case sensitivity. The next box to the right of that on the same line in that table says that the MPLAB assembler can not ignore case.

Is MPLAB compiler free? ›

Get Your Free MPLAB® XC32++ Compiler Software Today

Includes Dinkumware standard C, C++, and template libraries. Can be used with all C++ or mixed C/C++ projects in MPLAB® XC32. All Microchip C language extensions are available for use.

How do you program a PIC microcontroller using MPLAB? ›

  1. Step 1: Build Hardware. Before doing any programming the first step is to build the hardware. ...
  2. Step 2: Get Software. These instructions will use XC8 compiler and MPLAB X IDE by Microchip. ...
  3. Step 3: Create New Project. ...
  4. Step 4: Build Parameters. ...
  5. Step 5: Set Configuration Bits. ...
  6. Step 6: Configure Oscillator.

What language is used to program microchips? ›

If by microchip, you mean a small processor, the two most common languages are assembly and C. If you simply mean a microprocessor, virtually all computers use microprocessors and they run any computer language you want.

Which software is used for PIC microcontroller? ›

The PIC microcontroller programming is performed through 'MP-Lab' software. First instal the MP-Lab software, then select and install the compiler like CCS, GCC compiler, etc. Here 'CCS C compiler' is used for building the program.

Can I program PIC microcontroller using Arduino? ›

Program a PIC microcontroller with an Arduino? Yes! And not just because we can, but because it's easy to build and program stuff with Arduino.

Where are MPLAB projects stored? ›

When you try to open a project with MPLAB X, every directory you select (in the file browser opened via File->Open project for example) looks for an nbproject subdirectory which contains all the 'project' files. There are file such as configurations. xml, etc that tell MPLAB X that this folder is an MPLAB X project.

What is name of the compiler used in MPLAB software? ›

Additionally, we can use it along with XC8, XC16 and XC32 compilers to program PIC10F, PIC12F, PIC16, PIC18, PIC24, PIC32 and Dspic series of microcontrollers. In this post, we will see how to use MPLAB with XC8 compiler, but you can follow the same instructions to use this IDE with compilers.

How do I open MPLAB files? ›

Steps
  1. In the MPLAB X IDE, select File > Open Project.
  2. Demonstration applications come with most of the libraries. ...
  3. After the project opens, start MHC. ...
  4. Select the path to the folder containing the MPLAB Harmony framework and click Launch.
  5. The Configuration Database Setup window opens.

Is PIC compiler free? ›

It is developed by microchip for program the pic microcontrollers. It is free to use and is available at microchip official website. For installing this compiler first, you must need to install the MPLAB software then you could install the XC 8 compiler, which is also available at microchip official website.

What is the difference between MPLAB and mikroC? ›

MPLAB is an IDE and not a Compiler. mikroC is a Compiler. You can use C18, C30, C32, XC8, XC16, XC32, Hi Tech C for PIC16, PIC 18, PIC24 and dsPIC, and PIC32, CCS C Compilers with MPLAB or MPLABX IDE. With mikroC or any mikroE Compiler you get many libraries.

How do I change the speed of an MPLAB? ›

In MPLAB X IDE, go to File>Project Properties, select Snap in Categories, then Program Options in Option categories, Program Speed and select a slower speed from the drop-down menu. The default is Normal. In MPLAB IPE, the Program Speed option can be found in the Advanced Mode, Settings tab.

What IDE is most used? ›

Visual Studio

Is IDE good for beginners? ›

That being said, IDEs are a great tool. No argument here. The thing is, it may not be a good tool for a beginner, especially a student. It may be hindering your programming ability and maybe even your ability to get a job.

How do I find assembly code in Mplab? ›

" Window >> Debugging >> Disassembly ". Then you would see the corresponding assembly code.

How do I debug in Mplab? ›

  1. 4.1. Create a New Project. 4.1.1. ...
  2. 4.3. Open Project Properties. 4.4. ...
  3. 4.5. Set Up or Change Debugger/Programmer Tool Options. 4.6. ...
  4. 4.7. Set Language Tool Locations. ...
  5. 4.10. Set Build Properties. ...
  6. 4.15. Step Through Code. ...
  7. 4.17. Watch Local Variable Values Change. ...
  8. 4.19. Set Configuration Values in the Configuration Bits Window.

How do I read a hex file from Mplab IPE? ›

Launch MPLAB® IPE. Click File which is located at the upper left of the IPE window. Select Import > Hex, as shown below. File dialog box appears, navigate to the HEX file location (in the example below, the MPLAB®X project HEX file): _GettingStarted.

How do I create a hex file in Mplab? ›

This is done using the MPASM assembler which takes the source files and creates a HEX file that your programmer hardware can write into the PIC chip. You can do this by opening the source code files in the MPLAB IDE program and using the Quickbuild option to generate the HEX file.

How do I change devices in Mplab? ›

MPLAB® X TV Changing Tools or Device - YouTube

How do I reset Mplab? ›

To "reset" MPLAB X to its default state, simply delete all the files inside the version directory (where version is something like "1.80"). However, if for some reason you want to go back to the "troubled" state, just save the contents of the version directory somewhere else.

How do I add files to Mplab? ›

  1. 4.1.1. MPLAB X IDE v5 New Project Format. 4.1.2. Launch New Project Wizard. 4.1.3. Step 1: Choose Project. ...
  2. 4.9.1. Launch New File Wizard. 4.9.2. Create a New File. 4.9.3. Add Existing Files to a Project. ...
  3. 4.14.1. Set or Clear a Simple Line Breakpoint. 4.14.2. Set Breakpoints with the Breakpoint Dialog. 4.14.3.

How do I uninstall Mplab IDE? ›

Select Start>Settings>Control Panel to open the Control Panel. Double click on “Add/Remove Programs”. Find MPLAB X IDE on the list and click on it. Click Change/Remove to remove the program from your system.

Which is better PIC or AVR? ›

AVR are better known for low-voltage operation than the older PIC series such as PIC16F and PIC18F because these PIC series used chip-erased method that need at least 4.5V to operate, and below 4.5V PIC programmers have to use row-erase algorithm which cannot erase locked device. However this is not the case in AVR.

Is PIC a microcontroller? ›

PIC microcontrollers are a family of specialized microcontroller chips produced by Microchip Technology in Chandler, Arizona. The acronym PIC stands for "peripheral interface controller," although that term is rarely used nowadays.

How does a PIC microcontroller work? ›

It can be used to program microcontroller circuits. It allows the programmer to simulate the program, before downloading it to a PIC microcontroller IC (Integrated Circuit). Simulating the program on screen, allows the programmer to correct faults and to change the program.

How do you code a chip? ›

  1. •Switch on power to the. unit and wait for the LED. to turn green. ...
  2. •Program should. indicate that it is ready. •Place chip in the programmer in. ...
  3. Check that EPROM has. been erased. •Click Blank_Check and. ...
  4. •Press the Program button. •LED on device should turn orange. •LED will turn green again once programming is.

What software is used to design microchips? ›

Electronic design automation (EDA), also referred to as electronic computer-aided design (ECAD), is a category of software tools for designing electronic systems such as integrated circuits and printed circuit boards.

What program language does NASA use? ›

So what is NASA using? MATLAB – mainly for engineering analysis. Python – for analysis, data science, GUIs, and open-source projects. Other languages – such as Fortran, Node.

Is PIC microcontroller used in industry? ›

At present PIC microcontrollers are extensively used for industrial purpose due to low power consumption, high performance ability and easy of availability of its supporting hardware and software tools like compilers, debuggers and simulators.

What are 3 basic applications of a microcontroller? ›

Microcontroller Applications:
  • Light sensing & controlling devices.
  • Temperature sensing and controlling devices.
  • Fire detection & safety devices.
  • Industrial instrumentation devices.
  • Process control devices.
  • Industrial instrumentation devices.
  • Process control devices.
18 Oct 2013

How do I open an existing project in Mplab IDE? ›

So, if it isn't running already, launch MPLAB® X IDE.
  1. 1 From the Toolbar, Menu, or Keyboard. 1.1. Do one of the following: Click on the Open Project icon. ...
  2. 2 From the Projects Window. 2.1. Right click in the Projects window (upper left of IDE by default) and select Open Project… from the pop-up menu. Click image to enlarge.

Which is better PIC or Arduino? ›

Difference Between PIC vs Arduino. The expansion of PIC represents the peripheral interface controller which is the term rarely used these days. Arduino is available as an open-source that is user-friendly in terms of both software and hardware. They belong to the family of microcontrollers.

Is Arduino better than PIC? ›

The Arduino is best because it is user friendly as compared to the PIC microcontroller because if we want to load program in the Arduino we just click on the upload in the Arduino IDE while in case of PIC we will perform complex steps in order to upload the code in the controller also Arduino is helpful in complex ...

Which microcontroller is easy to program? ›

Step 3: Arduino (Uno)

A robust, open-source microcontroller and programming environment designed for beginners with some knowledge of circuits. There are lots of different types of Arduino boards. This is the Arduino Uno, the best fit for beginners!

› What-software-is-needed-for-a-... ›

For PIC micro-controller you need a software for programming and one more software for connecting your burner or dumper from your computer or laptop. so for cod...
Learning how to program a PIC microcontroller (MCU) involves a thorough understanding of the application, the basic hardware architecture of the PIC to be used,...
PICs are also easy to program, however getting the project set up can some times be tricky. These instructions will walk through the process of setting up the s...

What is PIC simulator IDE? ›

PIC Simulator IDE is a powerful tool that assists simulation of PIC family of microcontrollers. It provides developers with a rather simple, comprehensive, user-friendly graphical user interface (GUI) for Windows.

Which IDE is used for PIC? ›

MPLABX IDE is an Integrated Development Environment that is developed by Microchip. It is used to develop a code for PIC microcontrollers.

Which software is used for PIC microcontroller programming? ›

The PIC microcontroller programming is performed through 'MP-Lab' software. First instal the MP-Lab software, then select and install the compiler like CCS, GCC compiler, etc. Here 'CCS C compiler' is used for building the program.

What does MPLAB stand for? ›

What do the letters in MPLAB STAND FOR? 6/28/2017. qhb. MPLAB Make Programs Like A Boss. MPLABX Makes Programmers Lose A Brain boX.

Is PIC compiler free? ›

It is developed by microchip for program the pic microcontrollers. It is free to use and is available at microchip official website. For installing this compiler first, you must need to install the MPLAB software then you could install the XC 8 compiler, which is also available at microchip official website.

Is Msfs a good simulator? ›

As an aviation geek, Microsoft Flight Simulator (MSFS) is a fix for my flying machines addiction. It is not exactly the most perfect desktop flight simulators out there, but it ticks most of the boxes alright, so it is the arguably still the best choice.

What is a PIC programmer used for? ›

PIC microcontroller can be used in different applications such as audio accessories, peripherals, and video games, etc.

What IDE is most used? ›

Visual Studio

Is IDE good for beginners? ›

That being said, IDEs are a great tool. No argument here. The thing is, it may not be a good tool for a beginner, especially a student. It may be hindering your programming ability and maybe even your ability to get a job.

How do you code in Mplab? ›

Use MPLAB® PM3 with MPLAB X IDE to program a device following the steps below:
  1. Install MPLAB® X IDE. Install MPLAB X IDE software on your PC.
  2. Setup Programmer Hardware. ...
  3. Install a Compiler. ...
  4. Launch MPLAB X IDE and Create/Open a Project. ...
  5. Setup for Programming. ...
  6. Generate a Hex File. ...
  7. Insert and Program the Device.

Is PIC microcontroller used in industry? ›

At present PIC microcontrollers are extensively used for industrial purpose due to low power consumption, high performance ability and easy of availability of its supporting hardware and software tools like compilers, debuggers and simulators.

What are 3 basic applications of a microcontroller? ›

Microcontroller Applications:
  • Light sensing & controlling devices.
  • Temperature sensing and controlling devices.
  • Fire detection & safety devices.
  • Industrial instrumentation devices.
  • Process control devices.
  • Industrial instrumentation devices.
  • Process control devices.
18 Oct 2013

Where are MPLAB projects stored? ›

When you try to open a project with MPLAB X, every directory you select (in the file browser opened via File->Open project for example) looks for an nbproject subdirectory which contains all the 'project' files. There are file such as configurations. xml, etc that tell MPLAB X that this folder is an MPLAB X project.

How do I debug in MPLAB? ›

  1. 4.1. Create a New Project. 4.1.1. ...
  2. 4.3. Open Project Properties. 4.4. ...
  3. 4.5. Set Up or Change Debugger/Programmer Tool Options. 4.6. ...
  4. 4.7. Set Language Tool Locations. ...
  5. 4.10. Set Build Properties. ...
  6. 4.15. Step Through Code. ...
  7. 4.17. Watch Local Variable Values Change. ...
  8. 4.19. Set Configuration Values in the Configuration Bits Window.

How do you use MPLAB simulation? ›

To select the simulator, select the Debugger pull down menu, and scroll to “Select Tool”… Scroll down to select MPLAB SIM. are the source files that are used to build the application along with compilers, assemblers and linkers to “build” the firmware for the application. In this project are three files, “main.

Videos

1. Create New Project MPLAB X IDE
(Microchip Technology)
2. MPLABX® IDE Essentials - 04: Create a New Project Project Dashboard
(Microchip Developer Help)
3. MPLAB X IDE Introduction and Experiment No. 1
(Ravikant Khamitkar)
4. Getting started with Microchip's advanced MPLAB X IDE from DesignSpark
(DesignSpark)
5. MPLAB-X IDE integrated with PICKitPlus to support a PICkit2 or PICkit3 programming operations.
(Evan Venn)
6. Microchip Technology Booth - MPLAB X IDE Demo
(Allied Electronics & Automation)

Top Articles

Latest Posts

Article information

Author: Nathanial Hackett

Last Updated: 01/04/2023

Views: 6439

Rating: 4.1 / 5 (52 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Nathanial Hackett

Birthday: 1997-10-09

Address: Apt. 935 264 Abshire Canyon, South Nerissachester, NM 01800

Phone: +9752624861224

Job: Forward Technology Assistant

Hobby: Listening to music, Shopping, Vacation, Baton twirling, Flower arranging, Blacksmithing, Do it yourself

Introduction: My name is Nathanial Hackett, I am a lovely, curious, smiling, lively, thoughtful, courageous, lively person who loves writing and wants to share my knowledge and understanding with you.