mplab tutorial

11
Lab # 06 Lab Title: “USER’S GUIDE OF MPLAB” Course Title : Microprocessor Systems & Interfacing Course Code : EEE342 Class : BEE-6A Teacher’s Name : Sir Usman Khalid Student Name : SAMIULLAH Reg. No. : SP10 BEE 043 Marks : ________________ Department of Electrical Engineering COMSATS Institute of Information Technology Abbottabad

Upload: psieta

Post on 21-Jul-2016

34 views

Category:

Documents


3 download

DESCRIPTION

A tutorial

TRANSCRIPT

Lab # 06

Lab Title: “USER’S GUIDE OF MPLAB”

Course Title : Microprocessor Systems & Interfacing

Course Code : EEE342

Class : BEE-6A

Teacher’s Name : Sir Usman Khalid

Student Name : SAMIULLAH

Reg. No. : SP10 – BEE – 043

Marks : ________________

Department of Electrical Engineering

COMSATS Institute of Information Technology Abbottabad

Introduction MPLAB Integrated Development Environment (IDE) is comprehensive editor, project

manager and design desktop for application development of embedded designs using Microchip

PIC microcontrollers.

Running MPLAB Start>Programs>Microchip>MPLAB IDE v8.10>MPLAB IDE.exe

Go to Project in the toolbar and select Project Wizard

MPLAB can also work with C and other languages using different Tool suite. When using

Assembly language Microchip MPASM Tool suite is used and there is no need of adding linker file, but

for other languages other Tool suites are used and linker file is needed to be added.

When project file is created it is in MCP format use ASM format.

Go to Project in the toolbar and select add new file to project in ASM format.

Writing Code and in source file who is create and Building it.

Go to view in the toolbar and select watch,programe memory,file register.

Adding WREG,LATB,PORTB in watch .

Simulation is done from Debugger>Select Tool>MPLAB SIM.

Final result of programe.