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).
Previous article:MPLAB XIDE development environment
Next article:【MPLAB X IDE】04: Unable to find target device
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Detailed explanation of intelligent car body perception system
- How to solve the problem that the servo drive is not enabled
- Why does the servo drive not power on?
- What point should I connect to when the servo is turned on?
- How to turn on the internal enable of Panasonic servo drive?
- What is the rigidity setting of Panasonic servo drive?
- How to change the inertia ratio of Panasonic servo drive
- What is the inertia ratio of the servo motor?
- Is it better for the motor to have a large or small moment of inertia?
- What is the difference between low inertia and high inertia of servo motors?
- 【AT32F421 Review】+ Unboxing and Quick Start
- 【Smart Desktop Interactive Robot】Completed
- [Project source code] [Modelsim FAQ] Definition of port reg and wire in TestBench
- Countdown 2 weeks! Shenzhen Electronics Fair opens on September 9, full guide to visiting the exhibition~
- Video: UWB for Automotive Applications: An Engineering Primer
- msp430g2553 microcontroller
- Why can't the output of the following figure be 5V? Now the output voltage is 0V. I don't know where the problem is.
- What are the requirements for the main control chip to drive this OLED screen?
- 【CH579M-R1】+A/D acquisition and sensor use (2)
- Thank you + my family for your understanding and support! + Thank you to my new colleagues for their generous help along the way! + Thank you to the leaders of my company for their trust in me! + Thank you to the EE forum for providing me with professional knowledge!