Page 1 of 2
Department of Electrical Engineering
LAB WORK - 03
Microprocessor Based System
Spring/Fall/Summer 20__
Student Name SID Marks
Marks Distribution:
CLO_1
Tasks Total Marks
Marks Obtained
LED blink Assembly Code. 3
Task Proteus simulation. 2
Home Assignment. 2
Hardware Working. 3
Total Marks 10
CLASS ID: __________________
DATE: ______________________
Signature of Faculty/Lab Engineer: ___________________________________________
Remarks: ________________________________________________________________
Microprocessor Based System Instructor:
College of Engineering Ashar Ali Qureshi
PAF-Karachi Institute of Economics & Technology [email protected]
Page 2 of 2
Configuration bits
LIST P=PIC18F452, F=INHX32, N=0, ST=OFF, R=HEX ; INCLUDE CONTROLLER TYPE
#INCLUDE P18F452.INC ; INCLUDE CONTROLLER FILE
; FUSE BIT SETTINGS
CONFIG OSC = HS, OSCS = OFF ; HS=HIGH OSCILATOR
CONFIG WDT = OFF ; WATCH DOG TIMER OFF
CONFIG PWRT = ON, BOR = OFF ; POWER UP TIMER ON
; BROWN OUT RESET VOLTAGE
OFF
CONFIG DEBUG = OFF, LVP = OFF, STVR = OFF ; DEBUG OFF
; LOW VOLTAGE PROGRAMMING
; ;OFF
OBJECTIVE #1 CLO_1
Make program on MPLAB IDE that blink LED on PORTB pin B0 also simulate on PROTEUS.
OBJECTIVE #2 CLO_1
Again, make this program but this time put DELAY LOOPS in it.
OBJECTIVE #3 CLO_1
Now make this program but this time by using DELAY file.
OBJECTIVE #4 CLO_1
Blinking LED on PORTB Pin B0 when a switch is toggle between ON and OFF at PORTC Pin
C0.
Home Assignment: CLO_1
• Write a program that blink PORTB bits alternately like 01010101 and 10101010.
• Write a program that takes input from a push button when push button gives 1 start blinking if it
gives 0 stop blinking
Submission Details:
• Lab manual
• Print of code in assembly language.
• Proteus simulation circuit bitmap image (print screen and sniping tool’s images are not
acceptable)
• Code implement on trainer kit.
Microprocessor Based System Instructor:
College of Engineering Ashar Ali Qureshi
PAF-Karachi Institute of Economics & Technology
[email protected]