Department of Electrical Engineering
Faculty of Engineering & Applied Sciences
Riphah International University, Lahore, Pakistan
Program: [Link]. Electrical engineering Semester: V
Subject: EE-342 Microprocessor and Interfacing Date: …………….
Experiment 1: Introduction to MPLABX.
Objectives:
You will learn following.
To create a project.
To understand the tools.
To run program in MPLABX.
Name: …………………………… Sap ID: ………………………………
Lab Performance Evaluation
No. Title Marks Obtained Marks
1 Ability to Conduct Experiment 05
2 Data Evaluation and Report 05
Total 10
Lab Report Evaluation
No. Title Marks Obtained Marks
1 Organization & Structure 05
2 Data Presentation and Calculations 05
Total 10
Remarks (if any): ………………………………….
Name & Signature of faculty: …………………………………
Objective:
To learn how to install the MPLABX and learn how to create a project by using its tools and to
run the program.
Background:
Microprocessor vs Micro Controller:
A microcontroller is a small computer on a single integrated circuit chip. A
microcontroller typically contains one or more processor cores, along with additional
peripherals (memory, serial interface, timer, programmable I/O peripherals, etc.) on the
same chip.
A microprocessor is a computer processor that incorporates the functions of a central
processing unit (CPU) onto just a few (and often only one) integrated circuits.
PIC:
PIC, or Peripheral Interface Controller, software typically refers to the software
development tools and environments used to program and configure microcontrollers
manufactured by Microchip Technology. These microcontrollers are widely used in
various electronic devices and systems, ranging from consumer electronics to industrial
automation. PIC software includes Integrated Development Environments (IDEs) like
MPLAB X, compilers such as XC8, and various libraries and tools to facilitate the
development and debugging of embedded systems. These software tools help in writing,
compiling, debugging, and simulating code for PIC microcontrollers, enabling the
creation of efficient and reliable embedded applications.
MPLAB X IDE:
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 our microcontrollers
and digital signal controllers. MPLAB X IDE works seamlessly with the MPLAB
development ecosystem of software and tools, many of which are completely free
Material Required:
Computer System Or Laptop
MPLABX Software
Internet Connection
User
Procedure for installation of MPLABX Software:
1. First we search the MPLABX on the Google chrome.
Figure 1
2. Secondly download the MPLABX.
Figure 2
3. Then open the file from the downloads and read and agreed the
license.
Figure 3
4. Now select the user system proxy settings and click the next.
Figure 4
Figure 4
5. Now choose all the Applications you want to install.
Figure 5
6. Setup is ready to install.
Figure 6
7. Setup is installing.
Figure 7
8. Here you have to install the device software.
Figure 8
9. Now select the all launches and compliers and tap to finish.
Figure 9
10. Download the complier of MPLABX
Figure 10
11. And allow the accesses.
Figure 11
Figure 12
12. Here the complier is installing and select next in the setup
window.
13. Select the free in the setup window of license type And tap
next.
Figure 13
14. Tap on the option that (I accept the Agreement) and select
next.
Figure 14
15. Now we setup the complier settings after its installation.
Figure 15
Figure 16
16. Here we enter the host ID and finish the installation.
Figure 17
Figure 18
17. Here our main window of MPLABX is opened.
Figure 19
Figure 20
18. Now open the MPLAB IPE and enter the device name the
window of MPLAB IPE which we are using in the software .
Figure 22
Figure 23
Procedure for making a project:
1. First we tap on the file on the top left corner and select new
project.
Figure 24
2. Now choose project from the categories and projects.
Figure 25
3. Here we have to select the device and tap on next.
Figure 26
4. Now examine the complier type And tap on the next.
Figure 27
5. Here we enter our project name, location and folder.
Figure 28
6. Now new page is opened and we are ready to start our
project.
Figure 29
Conclusion:
__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________