PIC microcontroller development environment construction_MPLAB X IDE installation steps

Publisher:数字狂舞Latest update time:2020-06-20 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Getting familiar with the development environment is the first step to learn MCU. Now let's introduce the development environment of PIC. The development environment of PIC includes the old MPLAB IDE and the latest MPLAB X IDE.


MPLAB X IDE is more convenient to write code than the old MPLAB IDE, and the probability of error is also lower because MPLAB X IDE always detects writing errors.


MPLAB X IDE Installation:


The first step is to install the JAVA operating environment (because MPLAB X IDE is written in JAVA)


Install jdk 6.1 (jdk includes the runtime environment jre, of course, you can also install only jre)


Double-click jdk-6u10-rc2-bin-b32-windows-i586-p-12_sep_2008.exe to install JDK 6.1


Step 2: Install the development environment MPLAB X IDE


mplabx-ide-v1.10-windows-installer.exe


Step 3 Install the C compiler 


We use the PIC/10/12/16 series, just install picc-9_81-win.exe.


After the installation is complete, two icons will appear on the desktop.


MPLAB driver switcher driver selection If you have both MPLAB IDE 8 and MPLAB X IDE installed on your computer, it is used to select which software to use with a debugger such as ICD PICkit.


MPLAB X IDE v1.10 Development Environment


Create a project:


1 Open MPLAB X IDE, File->New Project pop-up window, select Microchip Embedded in Categories:, and then select Standalone Project in Projects:.  

2 Click next, and then select the microcontroller model in Device, such as: PIC16LF1823.

3 Click next, uncheck whether to support debug header

4 Click next and select tools such as; select ICD3

5 Click next and select the compiler, such as: select HI-TECH PICC (V9.81)

6 Click Next, enter the project name in Project Name, such as myproject, click Browse... to select the path where the project files are stored, and then click Finish to complete the project creation.

7 In the Projects window, you can see the project we created.

8 Right click Source Files ->New->C Main File.... A window New C Main File pops up, click Finish to create the source file.

9 We can write C program code in it.

10 After writing the code, you can compile it by clicking the button on the toolbar


11 Flash Click on the toolbar


Replenish: 


If ICD3 is used for programming, how can I choose internal power supply?


1. File->Project Properties pop-up window

2. Click ICD3 in Categories, and then select Power from the drop-down list in Option categories.

3. Check Power target circuit from ICD3 and select the voltage in Voltage Level (usually the default is fine).

Reference address:PIC microcontroller development environment construction_MPLAB X IDE installation steps

Previous article:MPLAB XIDE development environment
Next article:【MPLAB X IDE】04: Unable to find target device

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号