Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
2 views

22EECF202 Microcontroller Architecture and Programming 2024 25 ODD Final V1 (2)

The document outlines the course plan for 'Microcontroller Architecture & Programming' for the 3rd semester of the 2024-25 academic year, detailing prerequisites, course outcomes, and a comprehensive content structure. It includes a breakdown of course units, evaluation schemes, and assessment methods, emphasizing practical programming and interfacing with microcontrollers, particularly the 8051. The course aims to equip students with knowledge of microcontroller hardware, programming skills, and the ability to develop interface modules for applications.

Uploaded by

Aditya Telang
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

22EECF202 Microcontroller Architecture and Programming 2024 25 ODD Final V1 (2)

The document outlines the course plan for 'Microcontroller Architecture & Programming' for the 3rd semester of the 2024-25 academic year, detailing prerequisites, course outcomes, and a comprehensive content structure. It includes a breakdown of course units, evaluation schemes, and assessment methods, emphasizing practical programming and interfacing with microcontrollers, particularly the 8051. The course aims to equip students with knowledge of microcontroller hardware, programming skills, and the ability to develop interface modules for applications.

Uploaded by

Aditya Telang
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 25

School of Electrical and Electronics Engineering

FMTH0301/Rev.5.3
Course Plan

Semester: 3rd - Semester Year: 2024-25


Course Title: Microcontroller Architecture & Programming Course Code: 22EECF202
Total Contact hrs: 56 Duration of ESA: 2+2
ISA Marks: 50 ESA Marks: 50
Lesson Plan Author: Dr. Rohini Hongal Date: 13-09-2024
Prof Preeti S. Pillai
Prof. Supriya Katwe
Prof. Bhagyashree Kinnal

Checked By: Dr.P.C.Nissimagoudar Date: 14-09-2024

Prerequisites:
Fundamentals of computer organization, logic design, binary arithmetic operations, digital circuits, and
C programming.

Course Outcomes (COs):


At the end of the course the student should be able to:

1. Discuss an overview of the hardware components and memory organization of the


Microcontroller.
2. Develop programs in assembly or C languages for the Microcontroller.
3. Apply the process of configuring and programming the on-chip/off-chip peripherals of
the 8051 microcontroller.
4. Develop an interface module for the given application using a Microcontroller.

1
School of Electrical and Electronics Engineering

Course Articulation Matrix: Mapping of Course Outcomes (COs) with Program


Outcomes (POs)
Course Title: Microcontroller Architecture & Programming Semester: 3rd - Semester
Course Code: 22EECF202 Year: 2024-25

Course Outcomes (COs) / Program 1 2 3 4 5 6 7 8 9 10 11 12 13 14


Outcomes (POs)
1. Discuss an overview of the H
hardware components and
memory organization of the
Microcontroller.
2. Develop programs in assembly M M M H
or C languages for the
Microcontroller.
3. Apply the process of configuring M M M H
and programming the
on-chip/off-chip peripherals of
the 8051 microcontroller.
4. Develop an interface module for M M M H M
the given application using a
Microcontroller.

Degree of compliance L: Low M: Medium H: High

2
School of Electrical and Electronics Engineering

Competency addressed in the Course and corresponding Performance Indicators

Competency Performance Indicators


1.4 - Demonstrate competence in Electrical 1.4.3 - Apply knowledge of processors
Engineering knowledge 1.4.5 - Apply Programming Skills
2.1 - Demonstrate an ability to identify and 2.1.2 - Identify engineering systems, variables, and
characterize an engineering problem parameters to solve the problems
4.2- Demonstrate their ability to design 4.2.3- Ability to identify the constraints and
experiments to solve open-ended problems assumptions for the experiments/open-ended
problems.
5.2- Demonstrate an ability to select and apply 5.2.2- Demonstrate proficiency in using EDA tools
discipline-specific tools, techniques and
resources
10.1- Demonstrate an ability to comprehend 10.1.2- Produce clear, well-constructed, and well-
technical literature and document project work. supported written engineering documents

E.g.: 1.2.3: Represents program outcome '1', competency '2' and performance indicator' 3'.

3
School of Electrical and Electronics Engineering

Course Content

Course Code: 22EECF202 Course Title: Microcontroller Architecture & Programming


L-T-P : 2-0-1 Credits: 3 Contact Hrs: 56
ISA Marks: 50 ESA Marks: 50 Total Marks: 100
Teaching Hrs: 28 Practical Hrs: 28 Exam Duration: 2+2

Content Hrs
Unit - 1
Chapter 1: Microprocessors and Microcontroller 2 hrs
Introduction to Microprocessors and Microcontrollers, A Microcontroller Survey, RISC &
CISC CPU Architectures, Harvard & Von-Neumann CPU architecture.
Chapter 2: The 8051 Architecture 4 hrs
8051 Microcontroller Hardware, Input / Output Pins, Ports and Circuits, semiconductor
Memories, Interfacing external RAM & ROM memories.
Chapter 3: Addressing Modes and Operations 5 hrs
Addressing modes, External data Moves, Code Memory, Read Only Data Moves /
Indexed Addressing mode, Data exchanges, stack concept and related instructions,
example programs. Arithmetic Operations: Introduction, Flags, Incrementing and
Decrementing, Addition, Subtraction, Multiplication and Division, Decimal Arithmetic,
Example Programs. Logical Operations: Introduction, Byte level, logical Operations, Bit-
level Logical Operations, Rotate and Swap Operations, Example Programs, Jump
Operations: Introduction, The JUMP and CALL, Program range, Jump calls and
Subroutines Interrupts and Returns, Example Problems.
Chapter 4: 8051 Programming in 'C' 3 hrs
Data Types and Time delays in 8051C, I/O Programming, Logic operations, Data
serialization.
Unit - 2
Chapter 5: Counter/Timer Programming in 8051 4 hrs
Introduction, Timer SFRs, Programming 8051 Timers, Programming Timer0 and Timer1 in
assembly and C language.
Chapter 6: Serial Communication 4 hrs
Basics of Serial Communication, 8051 connections to RS-232,8051 Serial Communication
modes, Programming, Serial port programming in C.
Chapter 7: 8051 Interfacing and Applications 3 hrs
Interfacing external peripherals to 8051 microcontrollers like LCD, Keyboard, Stepper
Motor, and DC Motor.
Chapter 8: Interrupts 3 hrs
Introduction to interrupts, interrupts vs. polling, classification of interrupts, interrupt priority,
interrupt vector table, interrupt service routine

4
School of Electrical and Electronics Engineering

Text Book:
1. "The 8051 Microcontroller Architecture, Programming & Applications" by Kenneth J.
Ayala', Penram International, 1996
2. "The 8051 Microcontroller and Embedded systems", by Muhammad Ali Mazidi and
Janice Gillispie Mazidi', Pearson Education, 2003

References:
1. "Programming and Customizing the 8051 Microcontroller ", by 'Predko', TMH.

Evaluation Scheme
ISA Scheme

Assessment Assessment Weightage in Marks Max Marks


Component

( 23∗50)∗x
ISA 1
ISA 2 A 50
Post Test / Assignment 50
Review-1 Assembly
Programming
Review-2 C
Programming B
( 13∗50)∗ y 80
80
Review-3 Module
Development
Total A+B 50 130

ESA Scheme

Assessment Assessment Weightage in Marks Max Marks


Component

Theory ESA C ( 23∗50)∗x 60


60

Lab ESA D ( 13∗50)∗ y 20


20
Total C+D 50 80

Note: x = marks scored by the student in theory

y = marks scored by the student in lab

5
School of Electrical and Electronics Engineering

Course Unitization for Minor Exams and End Semester Assessment

No. of No. of No. of


Topics / Chapters Teaching
Questions Questions Questions
Hours
in ISA-1 in ISA-2 in ESA
Unit - 1
1 Microprocessor and Microcontroller 2 0.5 -- 0.5
2 The 8051 Architecture 4 1.0 -- 1.0
3 Addressing Modes and Operations 5 1.0 -- 1.0
4 8051 Programming in 'C.' 4 0.5 -- 0.5
Unit - 2
5 Counter/Timer Programming in 8051 4 -- 1 1
6 Serial Communication 4 -- 1 1
7 8051 interfacing and applications 4 -- 0.5 0.5
8 Interrupts 3 -- 0.5 0.5

Note
1. Each Question carries 15 marks and may consists of sub-questions.
2. Mixing of sub-questions from different chapters within a unit (only for Unit I and Unit II) is allowed in
ISA I, II and ESA
3. Answer 2 full questions of 15 marks each (two full questions from Unit I and II) out of 6 questions in
ESA.

6
School of Electrical and Electronics Engineering

Course Assessment Plan

Course Title: Microcontroller Architecture & Programming Code: 22EECF202

Course outcomes (COs) Weightage Assessment Methods


in ISA ISA Assessment R1 R2 R3 ESA ESA
assessment 1 2 Theory Lab
1. Discuss an overview 18% 6% - 2% - - - 10% -
of the hardware
components and
memory
organization of the
Microcontroller.
2. Develop programs 30% 6% - 2% 5% - - 10% 7%
in assembly or C
languages for the
Microcontroller.
3. Apply the process of 45% - 15% 2% - 5% - 13% 10%
configuring and
programming the
on-chip/off-chip
peripherals of the
8051
microcontroller.
4. Develop an 7% - - - - - 7% - -
interface module for
the given application
using a
Microcontroller.
Weightage 12% 15% 6% 5% 5% 7% 33% 17%

7
School of Electrical and Electronics Engineering

Chapter wise Plan

Course Code and Title: 22EECF202 / Microcontroller Architecture & Programming


Chapter Number and Title: 1: Microprocessors and Microcontroller Planned Hours: 2 hrs

Learning Outcomes: -
At the end of the topic, the student should be able to:

Topic Learning Outcomes COs BL CA Code


1. Distinguish the Microcontroller (C) and microprocessor-related CO1 L2 1.4
concepts
2. Explain different design architectures. CO1 L2 1.4

Lesson Schedule
Class No. - Portion covered per hour / per Class
1. Introduction to Microprocessor and Microcontroller architecture
2. RISC & CISC Instruction Architectures, Harvard & Von-Neumann Memory architecture.

Review Questions
Sl.No. - Questions TLOs BL PI Code
1. List 3 essential items needed to make up a development system for TLO1 L2 1.4.3
programming microcontroller
2. Differentiate between RISC & CISC TLO2 L2 1.4.3
3. Explain Harvard & Von-Neumann CPU architecture with a neat block TLO2 L2 1.4.3
diagram.
4. Differentiate between Microprocessors and Microcontrollers TLO1 L2 1.4.3

Course Code and Title: 22EECF202 / Microcontroller Architecture & Programming


8
School of Electrical and Electronics Engineering

Chapter Number and Title: 2: The 8051 Architecture Planned Hours: 4 hrs

Learning Outcomes: -
At the end of the topic, the student should be able to:

Topic Learning Outcomes COs BL CA


Code
1. Describe the hardware features of the 8051 microcontroller CO1 L2 1.4
2. Explain the memory organization of the 8051 microcontroller CO1 L2 1.4
3. Explain the internal registers of the 8051 microcontroller and their CO1 L2 1.4
functions.
4. State the physical differences between the Port 0, 1, 2 and 3 I/O pins. CO1 L2 1.4

Lesson Schedule
Class No. - Portion covered per hour / per Class
1. 8051 Microcontroller hardware features.
2. Internal Memory Organization
3. Special function registers
4. Input / Output Pins, Ports and Circuits

Review Questions
Sl.No. - Questions TLOs BL PI Code
1. With a neat block diagram, explain the architecture of the 8051 TLO1 L2 1.4.3
Microcontroller
2. Explain the data and program memory organization of the 8051 TLO2 L2 1.4.3
Microcontroller.
3. What are special function registers? List SFRs available in 8051. TLO3 L2 1.4.3
4. Explain the unique functions of port P3. TLO4 L2 1.4.3
5. With a neat register format, discuss the PSW register. TLO3 L2 1.4.3

9
School of Electrical and Electronics Engineering

Course Code and Title: 22EECF202 / Microcontroller Architecture & Programming


Chapter Number and Title: 3: Addressing Modes and Operations Planned Hours: 5 hrs

Learning Outcomes: -
At the end of the topic, the student should be able to:

Topic Learning Outcomes COs BL CA Code


1. Explain the different addressing modes supported by the 8051 CO2 L2 1.4
Microcontroller
2. Discuss the classification of instructions in 8051 Microcontroller CO2 L2 1.4
3. Discuss the instructions that read/write data from/to the registers, CO2 L3 1.4
stack, or internal/external memory.
4. Explain the arithmetic and logical instructions and develop CO2 L3 1.4
application programs.
5. Explain the branch instructions and develop application programs. CO2 L3 1.4
6. Explain the instructions related to function calls and develop CO2 L3 1.4
application programs.

Lesson Schedule
Class No. – Portion covered per hour / per Class
1. Addressing modes and Instruction Classifications.
2. Data movement instructions, Stack concept and related instructions, example programs.
3. Arithmetic Operations: Introduction, Flags, Addition, Subtraction, Multiplication, Division,
Increment, Decrement and Decimal Arithmetic, Example Programs.
4. Logical Operations: Introduction, Byte level, Bit-level Logical Operations, Rotate and Swap
Operations, Example Programs.
5. Branch Instructions: Introduction, Byte level and Bit-level branch Operations, Example
Programs, Jump calls and Subroutines, Interrupts and Returns Example Problems.

Review Questions
Sl.No. – Questions TLOs BL PI Code
1. Explain the different addressing modes available in the 8051 TLO1 L2 1.4.3
Microcontroller.
2. Explain the external addressing using MOVX & MOVC instructions. TLO2 L2 1.4.3
3. Explain how PUSH/POP instruction works with 8051. TLO2 L2 1.4.5
4. Write a program to divide the data in RAM locations 3EH by 12H, put TLO3 L2 1.4.5
the quotient in R4 and reminder in R5 in the current register bank.
Give explanatory comments.
5. Explain the significance of the overflow flag in arithmetic operations. TLO3 L2 1.4.5
10
School of Electrical and Electronics Engineering

6. Write a program to divide data in RAM location 13H by the data in TLO3 L3 1.4.5
RAM location 14H. Restore the original data in 13H by multiplying the
result by the data in 14H.
7. Explain the following instructions TLO1 L2 1.4.5
SWAP, CJNE, DJNZ, ACALL, AJMP, JNZ, ANL,
8. Write a program to sort n 8-bit numbers in ascending order. TLO5 L3 1.4.5
9. Write an ALP to convert the given hex data to BCD. TLO4 L2 1.4.5
10. The government has released vaccination to the age group of 18 to TLO5 L3 2.1.2
44. A total of 10 people have registered for the vaccination. It is
required to schedule the vaccination dates based on higher age to
lower age. Develop an assembly language program to arrange the
age and assign dates to each person, assuming one day one person.
(Assume the input to be age, and the dates available are from
1\7\2021 to 20\7\2021.)
Note: Display only the date as the month and year are fixed in
the given format.

0x40:Age1 0x41:date1

0x42:Age2 0x43:date2

Follow this pattern for display.

11. Write a program to find the factorial of a number using a subroutine. TLO6 L3 1.4.5
12. Calculate the minimum number of address lines needed for the row [GATE 2015 Set 1]
decoder if the 16 Kb (=16,384 bit) memory array is designed as a
square with an aspect ratio of one (the number of rows equals the
number of columns).
13. Which device is used to store information in DRAM [GATE 2017 Set 2]
14. How many MOS transistors are there in each cell of SRAM [GATE 1996]
15. For computers based on three-address instruction formats, each [GATE CSE 2015 set
address field can be used to specify which of the following: 1]
(S1) A memory operand
(S2) A processor register
(S3) An implied accumulator register
16. Suggest legal program counter if CPU has 24-bit instructions. A [GATE CSE 2006]
program starts at address 300 (in decimal).
17. Suggest the most appropriate matching for the following pairs [GATE CSE 2000]
Indirect addressing Loops
Indirect addressing Pointers
Indirect addressing Constants

11
School of Electrical and Electronics Engineering

Course Code and Title: 22EECF202 / Microcontroller Architecture & Programming


Chapter Number and Title: 4: 8051 Programming in 'C' Planned Hours: 3 hrs

Learning Outcomes: -
At the end of the topic, the student should be able to:

Topic Learning Outcomes COs BL CA Code


1. Select appropriate 8051 'C' data types for programming. CO3 L2 1.4
2. Develop 8051 'C' programs for I/O operations, time delay generation CO3 L3 2.1
& logical operations.
3. Develop 8051 'C' programs for data serialization. CO3 L3 1.4

Lesson Schedule
Class No. - Portion covered per hour / per Class
1. I/O Programming
2. Data Types and Time Delays in 8051
3. Logic operations, Data serialization

Review Questions
Sl.No. - Questions TLOs BL PI Code
1. Explain different 8051 C data types TLO1 L2 1.4.5
2. A door sensor is connected to the P1.1 pin, and the buzzer is TLO2 L3 2.1.2
connected to P1.7; write the 8051 C program to monitor the door sensor,
and when it opens, sound the buzzer.
3. Write an 8051 C program to send out the value serially 1 bit at a time TLO3 L3 1.4.5
through P1.0. The LSB should go out first.
4. Write an 8051 C program to send your first and last names to P2. TLO3 L3 1.4.5
5. Write a program to generate a triangular waveform of 10KHz on P1.1 TLO2 L3 1.4.5

12
School of Electrical and Electronics Engineering

Course Code and Title: 22EECF202 / Microcontroller Architecture & Programming


Chapter Number and Title: 5: Counter/Timer Programming in 8051 Planned Hours: 4 hrs

Learning Outcomes: -
At the end of the topic, the student should be able to:

Topic Learning Outcomes COs BL CA Code


1. Describe the various modes of 8051 timers CO3 L2 1.4
2. Explain the different control registers used to configure the timers. CO3 L2 1.4
3. Develop 8051 assembly/'C' programs for timers to generate required CO3 L3 2.1
time delays.
4. Develop 8051 assembly/'C' programs for counters as event counters. CO3 L3 2.1

Lesson Schedule
Class No. - Portion covered per hour / per Class
1. Timer introduction, Modes of operations and Timer SFRs.
2. Programming 8051 Timers.
3. Counter Programming.
4. Programming Timer0 and Timer1 in 8051C

Review Questions
Sl.No. - Questions TLOs BL PI Code
1. Discuss the operation of Timer 0 in mode 2. TLO1 L2 1.4.3
2. With a neat register format, explain the TMOD register. TLO2 L2 1.4.3

3. Assume that XTAL = 11.0592MHz. What value do we need to load TLO3 L3 1.4.3
into the Timer's registers if we want a time delay of 5ms? Show the
program for Timer 0 to create a pulse width of 5 ms on P2.3.

4. Write an 8051 C program to create a frequency of 2500hz on pin P2.7. TLO3 L3 1.4.3
Use timer1 mode2 to create the delay.

5. Program Timer 1 to be an event counter. Use mode 2 and TLO4 L2 1.4.3


continuously display the decimal count on P2, P1 & P0 Set the initial
count to 99.

13
School of Electrical and Electronics Engineering

Course Code and Title: 22EECF202 / Microcontroller Architecture & Programming


Chapter Number and Title: 6: Serial Communication Planned Hours: 4 hrs

Learning Outcomes: -
At the end of the topic, the student should be able to:

Topic Learning Outcomes COs BL CA Code


1. Explain steps to be followed for programming serial port and its CO3 L2 1.4
importance
2. Describe the importance of communication standard RS232 CO3 L2 1.4
3. Describe the various modes of 8051 serial communication CO3 L2 1.4
4. Develop 8051 assembly/'C' programs for serial ports to achieve data CO3 L3 2.1
transmission and reception.

Lesson Schedule
Class No. - Portion covered per hour / per Class
1. Basics of Serial Communication
2. 8051 connections to RS232
3. 8051 Serial Communication modes
4. Serial port programming.

Review Questions
Sl.No. - Questions TLOs BL PI Code
1. Explain half/full duplex transmission. TLO1 L2 1.4.3

2. Explain RS232 standards and their hand-shaking signals. TLO2 L2 1.4.3

3. Write the steps in programming 8051 for serial communication using TLO1 L2 1.4.5
mode 1.
4. Explain the importance of the TI/RI flag in serial communication. TLO3 L2 1.4.5

5. Write a program to continuously transfer the message "yes" serially at TLO4 L3 1.4.5
9600 baud, 8-bit data, and one stop bit.

14
School of Electrical and Electronics Engineering

Course Code and Title: 22EECF202 / Microcontroller Architecture & Programming


Chapter Number and Title: 7: 8051 Interfacing and Applications Planned Hours: 3 hrs

Learning Outcomes: -
At the end of the topic, the student should be able to:

Topic Learning Outcomes COs BL CA Code


1. Explain various peripheral devices used in building the applications CO4 L2 1.4
2. Select proper GPIOs to interface peripherals to the controller. CO4 L2 1.4
3. Develop an assembly/C program to interface OFF-chip peripherals to CO4 L3 2.1
the 8051 Microcontroller.
4. Develop an application code for the given scenario to meet the CO4 L3 2.1
system's requirements.

Lesson Schedule
Class No. - Portion covered per hour / Class
1. Interfacing techniques and programming: switches, LED, Seven-segment
2. LCD Programming
3. Keypad, Stepper Motor and DC Motor

Review Questions
Sl.No. - Questions TLOs BL PI Code
1. Develop a C program to control the ON and OFF action of LEDs using TLO1 L2 1.4.5
switches
2. With a neat diagram, discuss how seven segments are interfaced with TLO2 L2 1.4.3
the 8051 Microcontroller
3. Explain the pin descriptions for LCD and interfacing of LCD to the TLO2 L2 1.4.3
8051 Microcontroller
4. With a neat diagram, explain the interfacing of the stepper motor and TLO2 L2 1.4.3
define the following w.r.t Stepper motor.
i) Step angle ii) Motor speed
5. Interface 4x4 keypad to 8051 and write a program to scan a key TLO3 L3 1.4.5
pressed
6. Interface the DC motor to 8051 and write a C program to rotate it in TLO3 L3 1.4.5
both directions.
7. The door sensor is connected to count the number of people attending TLO4 L3 2.1.2
the conference. The conference hall is automated to control the AC and
FAN. Develop the above-said system to cater to the needs of the
auditorium.

15
School of Electrical and Electronics Engineering

8. A password based door locking system is connected to the door. TLO4 L3 2.1.2
Develop an application program using suitable input and output device to
open the door upon password match, else alert the authorized person.
9. Develop an application program to demonstrate grocery billing system TLO4 L3 2.1.2
using suitable input and output device. (Assume the data as necessary)

16
School of Electrical and Electronics Engineering

Course Code and Title: 22EECF202 / Microcontroller Architecture & Programming


Chapter Number and Title: 8: Interrupt programming Planned Hours: 3 hrs

Learning Outcomes: -
At the end of the topic, the student should be able to:

Topic Learning Outcomes COs BL CA Code


1. Compare and contrast interrupts versus polling. CO3 L2 1.4
2. Explain the steps involved in executing an interrupt. CO4 L2 1.4

Lesson Schedule
Class No. - Portion covered per hour / per Class
1. 8051 Interrupts, Different interrupts supported by 8051 Microcontroller.
2. Steps involved in handling an interrupt.
3. Interrupt Vector Table

Review Questions
Sl.No. - Questions TLOs BL PI Code
1. What are interrupts? Discuss the different types of interrupts TLO1 L2 1.4.3
supported by the 8051 Microcontroller.
2. Discuss the sequence of operations the processor performs to handle TLO2 L2 1.4.3
interrupts
3. What is ISR? TLO2 L2 1.4.3
4. In the 8051, what memory area is assigned to the interrupt vector TLO2 L2 1.4.3
table? Can the programmer change the memory space assigned to the
table?

17
School of Electrical and Electronics Engineering

Model Question Paper for ISA1 Examination


Course Code: 22EECF202 Course Title: Microcontroller Architecture & Programming
Duration: 1Hr.15min Max. Marks 40
Note: Answer Any Two Questions
Q.N Questions Mark CO BL PO PI Code
o s
1a Discuss how microcontrollers are classified based on
instruction set architecture and memory organization. 8 CO1 L2 1 1.4.3
Also, list the differences.
1b Write a program to put a random number in address 20h
and increment it until it equals a random number set in 6 CO2 L3 1 1.4.5
R5.
1c Discuss the importance of the overflow flag and Auxiliary
6 CO1 L2 1 1.4.5
carry flag in PSW with an example.
2a Check the status of bit location 22h and do the following
i. If the status is zero, then count the number of
zeros and ones of the data available in location
2050h 8 CO2 L3 1 1.4.5
ii. If the status is one, then find the average of values
stored from memory location 22h to 30h
2b Identify the addressing mode used by each of the
following instructions.
i) MOV A, R4 ii) MOVC A, @A+DPTR iii) MOV A, 6 CO2 L2 1 1.4.5
#30H
iv) ADD A,45H v) SUBB A,@R0 vi) SWAP A
2c Given the set of registers R0 to R7, exchange the nibbles
of each register, add the nibbles of each register, and 6 CO2 L3 1 1.4.5
store the result in memory location starting from 1100h,
respectively.
3a The government has released vaccination to the age
group of 18 to 44. A total of 10 people have registered for
the vaccination. It is required to schedule the vaccination
dates based on higher age to lower age. Develop an
assembly language program to arrange the age and
assign dates to each person, assuming one day one
person. (Assume the input to be age, and the dates
8 CO2 L3 2 2.1.2
available are from 1\7\2021 to 20\7\2021.)
Note: Display only the date as the month and year are
fixed in the given format.
0x40:Age1 0x41:date1

0x42:Age2 0x43:date2
Follow this pattern for display.
3b Develop an ALP to search a given number in an array of
10 bytes and find the factorial of the same using a 6 CO2 L3 1 1.4.5
subroutine.

18
School of Electrical and Electronics Engineering

3c What is Stack? Discuss the instructions to read/write data 6 CO2 L3 1 1.4.5


from/to stack memory.

Model Question Paper for ISA2 Examination


Course Code: 22EECF202 Course Title: Microcontroller Architecture & Programming
Duration: 1Hr.15min Max. Marks 40
Note: Answer Any Two Questions
Q.N Questions Mark CO BL PO PI Code
o s
1a Read the status of a switch connected to pin P1^0 and do
the following.
i)If SW=1, then display a 4-bit up-counter on LEDs
8 CO3 L3 1 1.4.5
connected to P2.0 to P2.3.
ii)If SW=0, then display right to left shift on LEDs
connected to P2.0 to P2.3.
1b Discuss the data types supported by the 8051
microcontrollers to support C language programming, with 6 CO3 L2 1 1.4.3
examples.
1c Write an ALP to generate a square wave of 2KHz on port
6 CO3 L3 1 1.4.5
pin P2.0.
2a Write an ALP to read the status of a switch connected to
P1.0 and do the following.
8 CO3 L3 1 1.4.5
i)If SW=1, then generate a 5KHz frequency on P2.0
ii)If SW=0, then generate a 3KHz frequency on P2.1
2b Explain the basic principle of operation of a Timer and its
6 CO3 L2 1 1.4.3
applications in serial communication.
2c Discuss the operation of Timer 0 in mode 2. 6 CO3 L2 1 1.4.3
3a Develop a C program to read the status of a switch 8 CO3 L3 2 2.1.2
connected to P1.0 and do the following.
i)If SW=1, then read the data serially and send it to port
P2
ii)If SW=0, transmit message "END" serially at 9600 baud
rate.
3b Write a program to send your name on P2 for display 6 CO3 L3 1 1.4.5
continuously.
3c Explain the RS232 serial interface protocol. With a neat 6 CO3 L2 1 1.4.3
register format, explain the SCON register.

19
School of Electrical and Electronics Engineering

Model Question Paper for End Semester Assessment (ESA)


Course Code: 22EECF202 Course Title: Microcontroller Architecture & Programming
Duration: 2 Hrs Max. Marks 60
Note: Answer any two full questions from Unit I and Unit II
UNIT I
Q.N Questions Mark CO BL PO PI Code
o s
1a Discuss how microcontrollers are classified based on
instruction set architecture and memory organization. 8 CO1 L2 1 1.4.3
Also, list the differences.
1b Write a program to put a random number in address 20h
and increment it until it equals a random number set in 7 CO2 L3 1 1.4.5
R5.
2a Check the status of bit location 22h and do the following
i. If the status is zero, then count the number of
zeros and ones of the data available in location 8 CO2 L3 1 1.4.5
2050h
ii. If the status is one, then find the average of
values stored from memory location 22h to 30h
2b Identify the addressing mode used by each of the
following instructions.
i) MOV A, R4 ii) MOVC A, @A+DPTR iii) MOV A, 7 CO2 L2 1 1.4.5
#30H
iv) ADD A,45H v) SUBB A,@R0 vi) SWAP A
3a The government has released vaccination to the age
group of 18 to 44. A total of 10 people have registered for
the vaccination. It is required to schedule the vaccination
dates based on higher age to lower age. Develop an
assembly language program to arrange the age and
assign dates to each person, assuming one day one
person. (Assume the input to be age, and the dates
8 CO2 L3 2 2.1.2
available are from 1\7\2021 to 20\7\2021.)
Note: Display only the date as the month and year are
fixed in the given format.
0x40:Age1 0x41:date1

0x42:Age2 0x43:date2
Follow this pattern for display.
3b Discuss the data types supported by the 8051 7 CO3 L2 1 1.4.3
20
School of Electrical and Electronics Engineering

microcontrollers to support C language programming, with


examples.
UNIT II
4a Read the status of a switch connected to pin P1^0 and do
the following.
i)If SW=1, then display a 4-bit up-counter on LEDs
8 CO3 L3 1 1.4.5
connected to P2.0 to P2.3.
ii)If SW=0, then display right to left shift on LEDs
connected to P2.0 to P2.3.
4b Write an ALP to generate a square wave of 2KHz on port
7 CO3 L3 1 1.4.5
pin P2.0.
5a Implement a single digit calculator (consider any 2
operations) by reading the data serially and also display 8 CO3 L3 2 2.1.2
the result on serial monitor.
5b Write an ALP to read the status of a switch connected to 7 CO3 L3 1 1.4.5
P1.0 and do the following.
i)If SW=1, then generate a 5KHz frequency on P2.0
ii)If SW=0, then generate a 3KHz frequency on P2.1
6a Discuss the different types of interrupts supported by the
8051 Microcontroller along with the sequence of 8 CO3 L2 1 1.4.3
operations the processor performs to handle interrupts
6b Write a program to send your name on P2 for display 7 CO3 L3 1 1.4.5
continuously.

21
School of Electrical and Electronics Engineering

List of experiments planned to meet the requirements of the course

# No Title of the Experiment


1 Write an 8051 ALP to verify
a) To copy 5 bytes of data from data memory to data memory.
b) To add 5 bytes of data stored in data memory from 50H address
onwards.
c) To mask the lower nibble of the data byte stored in data memory.
2 Write an ALP to
a) sort 5 bytes of data stored from memory location D: 0X40 in ascending
b) Convert byte data from BCD to ASCII
3 Write a program to send a text string "Hello" to the serial monitor. Set the baud
rate at 9600, 8-bit data and 1-stop bit.
4 Write a C-program to generate a 10KHz frequency on pin P2.1 using T0.
5 Write a C program & demonstrate interfacing of Seven Segment Display to
8051.
6 Write a C program & demonstrate interfacing of stepper motor to 8051
Microcontroller.
7 Write a C program & demonstrate interfacing of DC Motor to 8051
Microcontroller.
8 Write a C program & and demonstrate interfacing of Alphanumeric LCD and hex
keyboard to 8051 Microcontroller.
9 Write a C program to demonstrate the external interrupt to 8051 Microcontroller.
10 Development of application on 8051 breakout board

Evaluation Scheme

22
School of Electrical and Electronics Engineering

Review No. COs Level 1.4.5 2.1.2 4.2.1 5.2.2 10.1.2 Total
Marks
(80)
Review 1 2 3 7 - 6 7 5 25
Review 2 3 3 7 - 6 7 5 25
Review 3 4 3 6 6 6 7 5 30

Evaluation Rubrics

PI Performance Emerging Progressing Proficient Exemplary


Code Indicators (PI) (25%) (50%) (75%) (100%)
1.4.5 Apply Shows basic Demonstrates a Applies Demonstrates a
Programming familiarity with foundational programming deep and
Skills. programming understanding skills comprehensive
concepts and is of programming accurately and understanding
beginning to skills and makes effectively to of programming
apply them. successful most concepts and
Solutions reflect attempts to problems. applies them
a growing effort, apply them. Code is clear, effectively to
and needs Code may have well- complex
further practice. some errors or organized, and problems and
inefficiencies, functional. projects. Code
but overall is well-
progress is structured,
evident. efficient, and
innovative, with
exceptional
problem-solving
and debugging
skills.
2.1.2 Identify Shows very Demonstrates a Effectively Demonstrates a
engineering basic familiarity foundational identifies and deep and
systems, with variables understanding understands comprehensive
variables, and and parameters of variables and the key understanding
parameters to needed to solve parameters variables, and of variables, and
solve the a problem. needed to solve parameters parameters
problems Attempts to a problem. needed to relevant to
identify and Makes solve most solving complex
apply relevant successful problems. problems.
elements reflect attempts to Shows a solid Accurately
a growing effort. identify and grasp of identifies and
Needs further apply relevant important integrates all
practice. elements. elements with critical

23
School of Electrical and Electronics Engineering

Progress is only minor elements,


evident with areas for providing
room for refinement in thorough and
improvement. the selection insightful
or integration solutions.
of
components.
4.2.1 Ability to Identifies few or Identifies some Clearly Thoroughly
identify the unclear constraints and identifies and identifies and
constraints and constraints and assumptions but explains most critically
assumptions for assumptions, may miss key constraints evaluates all
the leading to factors or and relevant
experiments/op incomplete or provide assumptions constraints and
en ended inaccurate incomplete relevant to the assumptions,
problems. experimental explanations, experiments or providing a
design and affecting the open-ended comprehensive
problem-solving. effectiveness of problems, understanding
the experiment ensuring a that significantly
or problem well-defined enhances the
solution. approach. experiment or
problem-solving
approach.
5.2.2 Demonstrate Limited Has basic Shows good Demonstrates
proficiency in understanding understanding understanding comprehensive
using EDA of EDA tools, of EDA tools, of EDA tools, understanding
tools with minimal with some with clear of EDA tools,
knowledge of knowledge of knowledge of including their
their functionalities most functionalities,
functionalities. but limited functionalities features, and
application. and features. applications
across various
tasks.
10.1.2 Produce clear, The student The student The student The student
well- produces written produces basic consistently excels in
constructed, engineering written produces clear producing
and well- documents that engineering and well- exceptionally
supported are coherently documents that constructed clear, well-
written organized in demonstrate written constructed, and
engineering minimal manner. some clarity and engineering well-supported
documents Their structure. documents. written
documents have However, their Their engineering
emerging documents are documents are documents.
structural inconsistently generally well- Their
integrity and are well-supported supported with documents are
supported by and occasionally relevant highly
evidence in a lack evidence, and organized,
minimalistic thoroughness or they effectively thoroughly
proportion. coherence, communicate supported with
affecting overall key concepts relevant
effectiveness and details evidence, and
effectively
convey complex
concepts with
precision and
clarity

24
School of Electrical and Electronics Engineering

25

You might also like