0% found this document useful (0 votes)
48 views

Lab Work - 03: Microprocessor Based System

This document outlines the lab work assignments for a microprocessor-based systems course. It includes 4 objectives involving writing assembly code to blink an LED using delays and toggling based on a switch. It also includes 2 home assignments - one to blink LEDs in a alternating pattern and another taking input from a button to start/stop blinking. Students are marked out of 10 total based on completing tasks in Proteus simulation, homework, and a working hardware implementation. Configuration bits for the microcontroller are also listed.

Uploaded by

MuhammadHadi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views

Lab Work - 03: Microprocessor Based System

This document outlines the lab work assignments for a microprocessor-based systems course. It includes 4 objectives involving writing assembly code to blink an LED using delays and toggling based on a switch. It also includes 2 home assignments - one to blink LEDs in a alternating pattern and another taking input from a button to start/stop blinking. Students are marked out of 10 total based on completing tasks in Proteus simulation, homework, and a working hardware implementation. Configuration bits for the microcontroller are also listed.

Uploaded by

MuhammadHadi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

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 asharali.qureshi@pafkiet.edu.pk
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 asharali.qureshi@pafkiet.edu.pk

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy