You are on page 1of 8

Page 1 of 2

PAF KARACHI INSTITUTE OF ECONOMICS AND TECHNOLOGY

College of Engineering

EE3417 – Embedded Systems Design

Semester: FALL 2023


Date of Experiment: 11th Oct 2023
Student name: Halima Sadia
Faculty Signature:
Student ID: 13762 Class ID: 113498
Remarks/Comments: _

Lab
Introduction to Proteus Software, Led Blinking and Switch interfacing.
3

PLO1 – Engineering Knowledge C1 – Recall


PLO2 – Problem Analysis C3 – Apply
PLO4 – Investigation Bloom’s P3 – Guided Response
PLO’s
PLO5 – Modern Tool Usage Taxonomy P2 – Set
PLO8 – Ethics A3 – Assume responsibility
LAB TASK PERFORMANCE
Excellent Average Poor
CLO’s Aspects of Assessments M
(75-100%) (50- (<50%)
75%)
Recall: Recall the associated Complete understanding of the Understand the lab topic(s) Student lacks clear understanding
CLO1 concepts form theory regarding concepts / actively participate concepts / participates less in of microprocessor and micro-
10% microprocessor systems and during lecture /read & interpret class / get knowledge of module controller architecture and its
architecture with interfacing different module usage in but unable to interpret accurately. module concepts/ Unable to
techniques. microcontroller. clarify the difference completely.
CLO2 Problem Analysis Problem Completely identifies the Partially identifies the problem in Lack of identification of the
identification, analysis problem in question through question and with academic problem, needing more than par
30%
/literature review, resulting in efficient analysis/produces near support produces the required support to analyze the problem and
meaningful conclusions to exact results results. production of results.
Experimental Validation Observe Student efficiently observe / Observe the module behavior by Module is validated accurately
the working of various module validate working that include in following theoretical instruction only with help from the teacher.
CLO4
of microprocessor and micro- lab work. and program but with minor
40%
controllers’ interface with errors.
different sensors and displays
according to the lab task
CLO5 Tools Utilization Interfacing Successfully implement the Implement the interfacing logic Does not know how to interface a
different Input / Output interfacing logic to control all with less control of input / output peripherals device with micro-
10%
peripherals devices with micro- input / output elements through elements through the Graphical controller.
controller. Graphical program. with program instruction.
CLO6 Lab Safety Properly handle lab Properly handle lab equipment Moderate level lab handling and Minor or no safety measurements
10% infrastructure/ safety & obey safety measures. safety measurements has been considered.
precautions
Total Marks: 10
Embedded Systems Design Instructor:
College of Engineering Engr. Farhan Ghafoor
PAF-Karachi Institute of Economics & Technology farhan.ghafoor@pafkiet.edu.pk
Page 2 of 2

Embedded Systems Design Instructor:


College of Engineering Engr. Farhan Ghafoor
PAF-Karachi Institute of Economics & Technology farhan.ghafoor@pafkiet.edu.pk
Page 3 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
Write a program in Embedded C or Assembly language to add B’10101010’ and B’01010101’. Display
the result of addition at PORTC and also simulate on PROTEUS.

OBJECTIVE #2
Make program on MPLAB IDE that blink LED on PORTB pin B0 also simulate on PROTEUS.

OBJECTIVE #3
Verify your code using Proteus. Again, make this program but this time put DELAY LOOPS in it.

OBJECTIVE #4
Now make this program but this time by using DELAY file.

OBJECTIVE #5
Blinking LED on PORTB Pin B0 when a switch is toggle between ON and OFF at PORTC Pin
C0.

Open Ended Lab Task:


 Write a program that blink PORTC bits alternately like 01010101 and 10101010 including
with and without delay of 2sec.

Embedded Systems Design Instructor:


College of Engineering Engr. Farhan Ghafoor
PAF-Karachi Institute of Economics & Technology farhan.ghafoor@pafkiet.edu.pk
Page 4 of 2
With Delay:

WITHOUT DELAY:

Embedded Systems Design Instructor:


College of Engineering Engr. Farhan Ghafoor
PAF-Karachi Institute of Economics & Technology farhan.ghafoor@pafkiet.edu.pk
Page 5 of 2

 Write a program that takes input from a push button when push button gives 0, it should
start blinking and if it gives 1, it should stop blinking.

Embedded Systems Design Instructor:


College of Engineering Engr. Farhan Ghafoor
PAF-Karachi Institute of Economics & Technology farhan.ghafoor@pafkiet.edu.pk
Page 6 of 2

Submission Details:
 Lab manual
 Code in Embedded C or Assembly language.
 Proteus simulation circuit bitmap image (print screen and sniping tool’s images are
not acceptable)

IN LAB TASKS:
1)
TURNING PORTB ON:

Embedded Systems Design Instructor:


College of Engineering Engr. Farhan Ghafoor
PAF-Karachi Institute of Economics & Technology farhan.ghafoor@pafkiet.edu.pk
Page 7 of 2

2) Toggle between PORTA AND PORTB:

3) BLINKING PORTA:

Embedded Systems Design Instructor:


College of Engineering Engr. Farhan Ghafoor
PAF-Karachi Institute of Economics & Technology farhan.ghafoor@pafkiet.edu.pk
Page 8 of 2

Embedded Systems Design Instructor:


College of Engineering Engr. Farhan Ghafoor
PAF-Karachi Institute of Economics & Technology farhan.ghafoor@pafkiet.edu.pk

You might also like