MICROPROCESSORS-Ktunotes in
MICROPROCESSORS-Ktunotes in
MICROPROCESSORS-Ktunotes in
Year of
CST MICROPROCESSORS AND Category L T P Credit
Introduction
307 MICROCONTROLLERS
PCC 3 1 0 4 2019
Preamble: The course enables the learners capable of understanding the fundamental architecture
of microprocessors and micro controllers. This course focuses on the architecture, assembly
language programming, interrupts, interfacing of microprocessors with peripheral devices and
microcontrollers and its programming. It helps the learners to extend the study of latest
processors and develop hardware based solutions.
Prerequisite : Sound knowledge in Logic System Design and Computer organization &
architecture.
CO2 Develop 8086 assembly language programs. (Cognitive Knowledge Level: Apply)
CO3 Demonstrate interrupts, its handling and programming in 8086. (Cognitive Knowledge
Level: Apply))
CO4 Illustrate how different peripherals (8255,8254,8257) and memory are interfaced with
microprocessors. (Cognitive Knowledge Level: Understand)
CO5 Outline features of microcontrollers and develop low level programs. (Cognitive
Knowledge Level: Understand)
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12
CO1
CO2
CO3
CO4
CO5
39
Downloaded from Ktunotes.in
COMPUTER SCIENCE AND ENGINEERING
Assessment Pattern
Remember 20 20 20
Understand 40 40 40
Apply 40 40 40
Analyze
Evaluate
Create
Mark Distribution
40
Downloaded from Ktunotes.in
COMPUTER SCIENCE AND ENGINEERING
Syllabus
Module-1(Evolution of microprocessors):
8085 microprocessor (-Basic Architecture only). 8086 microprocessor – Architecture and
signals, Physical Memory organization, Minimum and maximum mode of 8086 system
and timings. Comparison of 8086 and 8088.Machine language Instruction format.
Module-2 (Addressing modes and instructions):
Addressing Modes of 8086. Instruction set – data copy /transfer instructions, arithmetic
instructions, logical instructions, string manipulation instructions, branch instructions,
unconditional and conditional branch instruction, flag manipulation and processor control
instructions. Assembler Directives and operators. Assembly Language Programming with
8086.
Module- 3 (Stack and interrupts):
Stack structure of 8086, programming using stack- Interrupts - Types of Interrupts and
Interrupt Service Routine- Handling Interrupts in 8086- Interrupt programming. -
41
Downloaded from Ktunotes.in
COMPUTER SCIENCE AND ENGINEERING
Programmable Interrupt Controller - 8259, Architecture (Just mention the control word, no
need to memorize the control word)- Interfacing Memory with 8086.
Module- 4 (Interfacing chips):
Programmable Peripheral Input/output port 8255 - Architecture and modes of operation-
Programmable interval timer 8254-Architecture and modes of operation- DMA controller
8257 Architecture (Just mention the control word, no need to memorize the control word
of 8254 and 8257)
Module- 5 (Microcontrollers):
8051 Architecture- Register Organization- Memory and I/O addressing- Interrupts and
Stack- 8051 Addressing Modes- Instruction Set- data transfer instructions, arithmetic
instructions, logical instructions, Boolean instructions, control transfer instructions-
Simple programs.
Text Books
1. Bhurchandi and Ray, Advanced Microprocessors and Peripherals, Third Edition
McGraw Hill.
2. Raj Kamal, Microcontrollers: Architecture, Programming, Interfacing and System
Design, Pearson Education.
3. Ramesh Gaonkar, Microprocessor Architecture, Programming, and Applications with
the 8085, Penram International Publishing Pvt. Ltd.
Reference Books
1. Barry B. Brey, The Intel Microprocessors – Architecture, Programming and
Interfacing, Eighth Edition, Pearson Education.
2. A. NagoorKani, Microprocessors and Microcontrollers, Second Edition, Tata
McGraw Hill
3. Douglas V. Hall, SSSP Rao, Microprocessors and Interfacing, Third Edition,
McGrawHill Education.
42
Downloaded from Ktunotes.in
COMPUTER SCIENCE AND ENGINEERING
43
Downloaded from Ktunotes.in
COMPUTER SCIENCE AND ENGINEERING
QP CODE:
PART A
3. Assume AL register is having the value 7FH. What will be the content of AL
after the following instructions are executed
a)ROR AL,01 b)SAR AL,01
6. Define Interrupt Service Routine? How to find the address of the ISR
corresponding to a given interrupt in 8086?
44
Downloaded from Ktunotes.in
COMPUTER SCIENCE AND ENGINEERING
10. Write the sequence of 8051 instructions to store any two numbers at two
consecutive locations 70H and 71H, multiply them and store the result in (10x3=30)
location 72H.
Part B
(Answer any one question from each module. Each question carries 14 Marks)
11. (a) Specify the significance of segmentation and how it is implemented in 8086 (5)
OR
12. (a) Write down the differences between 8086 and 8088 processors (4)
(b) Explain the physical memory organization of 8086 with a neat diagram. (10)
How does the 8086 processor accesses a word from an odd memory
location? How many memory cycles does it take?
13. (a) Write an 8086 assembly language program for finding the sum of the (10)
squares of first N natural numbers. Calculate the squares of each number
using a subroutine SQUARE.
OR
14. (a) Write an 8086 assembly language program for printing the reverse of a (5)
given input string.
(b) Explain the addressing modes for sequential control flow instructions in (9)
8086.
OR
16. (a) Interface 32Kx8 RAM using four numbers of 8Kx8 memory chips and (10)
16Kx8 ROM using two numbers of 8Kx8 EPROM chips. The address
map is given as RAM starts at 00000H and ROM ends at FFFFFH
45
Downloaded from Ktunotes.in
COMPUTER SCIENCE AND ENGINEERING
17. (a) Explain the architecture of 8255 with a neat diagram (10)
(b) Identify the mode and I/O configuration for ports A, B and C of an 8255 (4)
after its control register is loaded with 86 H?
OR
18. (a) Define Direct Memory Access (DMA)and illustrate the role of a DMA (8)
controller? Explain the register organization of 8257 and state how these
registers are used during DMA transfer operations.
(b) Write an 8051 assembly language program for adding two matrices whose (5)
elements are stored sequentially in some memory location. Assume suitable
locations.
OR
20. (a) Explain the internal data memory organization of 8051. (9)
46
Downloaded from Ktunotes.in
COMPUTER SCIENCE AND ENGINEERING
Teaching Plan
No of
No Contents Lecture
Hrs
Module 1 : (Evolution of microprocessors) (9 hours)
1.1 Overview of 8085 microprocessor 1 hour
47
Downloaded from Ktunotes.in
COMPUTER SCIENCE AND ENGINEERING
48
Downloaded from Ktunotes.in