microprocessors & microcrontrollers · to make the students understand microprocessor in order...
TRANSCRIPT
EEE IV Yr II Sem Page 1
MICROPROCESSORS & MICROCRONTROLLERS
Subject Code : E1503PC
Regulations : R16 - JNTUH
Class : III Year B.Tech EEE I Semester
Department of Electrical and Electronics and Engineering
BHARAT INSTITUTE OF ENGINEERING AND TECHNOLOGY
Ibrahimpatnam - 501 510, Hyderabad
MICROPROCESSORS & MICROCONTROLLERS (EI503PC)
COURSE PLANNER
I. COURSE OVERVIEW:
To make the students understand Microprocessor in order to equip them with the necessary
tools for the analysis ofElectronic equipment in the field of Microprocessor &Embedded
systems to be used in industries, research field and in commercial field applications.
II. PREREQUISITES:
EEE IIIYr I Sem Page 2
Computer Organization basics
Computer Networks basics
Number systems & digital logic design concepts
Basic compilation process
III.COURSE OBJECTIVE:
To develop an understanding of the operations of microprocessors and microcontrollers;
machine language programming and interfacing techniques
IV. COURSE OUTCOMES:
.S.NO DESCRIPTION BLOOM’S
TAXONOMY
LEVEL 1
Understand the internal architecture and
organization of 8086
Knowledge,
Understand(Level1,
Level2)
2 Analyze the Assembly language programs of
8086
Develop (Level 4)
3 Analyze the internal architecture and real time
control of 8051
Analyze ,knowledge (Level 1 ,Level 4)
4 Discuss the input /output ,memory interface ,
Serial Communication and Bus Interfacedevices
Discuss (Level 1)
5 Analyze the internal architecture of ARM
Processors
Analyze (Level 4)
6 Classify the internal architecture of CORTEX
ARM Processor and MAP ARM Processor
Classify(Level 1)
V. HOW PROGRAM OUTCOMES ARE ASSESSED:
PROGRAM OUTCOMES (PO) LEVEL
Proficiency assessed
By
PO1
Engineering Knowledge: Apply the knowledge
of mathematics, science, engineering
fundamentals, and an engineering specialization to
the solution of complex engineering problems.
2 Assignments
PO2 Problem Analysis: Identify, formulate, review
research literature, and analyze complex
engineering problems reaching substantiated
conclusions using first principles of mathematics,
natural sciences, and engineering sciences.
2 Assignments
PO3 Design/Development of Solutions: Design solutions
for complex engineering problems and design system
components or processes that meet the specified needs
with appropriate consideration for the public health
and safety, and the cultural, societal, and
2 Assignments
EEE IV Yr I Sem Page 3
environmental considerations.
PO4 Conduct investigations of complex problems: Use
research-based knowledge and research methods
including design of experiments, analysis and
interpretation of data, and synthesis of the information
to provide valid conclusions
2 Assignments
PO5 Moderntoolusage: Create, select, and apply
appropriate techniques, resources, and modern
engineering and IT tools including prediction and
modeling to complex engineering activities with an
understanding of the limitations
2 Assignments
PO6 The engineer and society: Apply reasoning informed
by the contextual knowledge to assess societal, health,
safety, legal and cultural issues and the consequent
responsibilities relevant to the professional engineering
practice.
2 Assignments
PO7 Environment and sustainability: Understand the
impact of the professional engineering solutions in
societal and environmental contexts, and demonstrate
the knowledge of, and need for sustainable
development
__
__
PO8 Ethics: Apply ethical principles and commit to
professional ethics and responsibilities and norms of
the engineering practice.
__
__
PO9 Individual and team work: Function effectively
as an individual, and as a member or leader in
diverse teams, and in multidisciplinary settings.
__
__
PO10 Communication: Communicate effectively on
complex engineering activities with the engineering
community and with society at large, such as, being
able to comprehend and write effective reports and
design documentation, make effective presentations,
and give and receive clear instructions.
__
__
PO11 Project management and finance: Demonstrate
knowledge and understanding of the engineering and
management principles and apply these to one’s own
work, as a member and leader in a team, to manage
projects and in multidisciplinary environments.
__
__
PO12 Life-long learning: Recognize the need for, and have
the preparation and ability to engage in independent
and life-long learning in the broadest context of
technological change.
2 Research
VI. HOW PROGRAM SPECIFIC OUTCOMES ARE ASSESSED
1: Slight (Low) 2: Moderate
(Medium)
3: Substantial
(High)
- : None
EEE IIIYr I Sem Page 4
PROGRAM SPECIFIC OUTCOMES (PSO) LEVEL
Proficiency assessed
By
PSO1 Talented to analyze, design, and implement
electrical& electronics systems and deal with the rapid
pace of industrial innovations and developments.
2 Lectures, Assignments
PSO2 Skillful to use application and control techniques
for research and advanced studies in Electrical &
Electronics Engineering domain.
2 Lectures, Assignments
1.Slight (Low) 2: Moderate (Medium) 3: Substantial (High) 4 - : None
VII. SYLLABUS:
MICROPROCESSORS AND MICRO CONTROLLERS:
UNIT - I
8086 Architecture: 8086 Architecture-Functional diagram, Register Organization, Memory
Segmentation, Programming Model, Memory addresses, Physical Memory Organization,
Architecture of 8086, Signal descriptions of 8086, interrupts of 8086.
Instruction Set and Assembly Language Programming of 8086: Instruction formats,
Addressing modes, Instruction Set, Assembler Directives, Macros, and Simple Programs
involving Logical, Branch and Call Instructions, Sorting, String Manipulations.
UNIT - II
Introduction to Microcontrollers: Overview of 8051 Microcontroller, Architecture, I/O
Ports, Memory Organization, Addressing Modes and Instruction set of 8051.
8051 Real Time Control: Programming Timer Interrupts, Programming External Hardware
Interrupts, Programming the Serial Communication Interrupts, Programming 8051 Timers
and Counters
UNIT – III
I/O And Memory Interface: LCD, Keyboard, External Memory RAM, ROM Interface,
ADC, DAC Interface to 8051.
Serial Communication and Bus Interface: Serial Communication Standards, Serial Data
Transfer Scheme, On board Communication Interfaces-I2C Bus, SPI Bus, UART; External
Communication Interfaces-RS232,USB.
UNIT – IV
ARM Architecture: ARM Processor fundamentals, ARM Architecture – Register, CPSR,
Pipeline, exceptions and interrupts interrupt vector table, ARM instruction set – Data
processing, Branch instructions, load store instructions, Software interrupt instructions,
Program status register instructions, loading constants, Conditional execution, Introduction to
Thumb instructions.
UNIT – V
Advanced ARM Processors: Introduction to CORTEX Processor and its architecture,
OMAP Processor and its Architecture..
SUGESSTED BOOKS
TEXT BOOKS:
1. Advanced Microprocessors and Peripherals – A. K. Ray and K.M. Bhurchandani,
MHE, 2nd Edition 2006.
2. The 8051 Microcontroller, Kenneth. J. Ayala, Cengage Learning, 3rd Ed.
3. ARM System Developers guide, Andrew N SLOSS, Dominic SYMES, Chris
WRIGHT, Elsevier, 2012
REFERENCE BOOKS:
1. Microprocessors and Interfacing, D. V. Hall, MGH, 2nd Edition 2006.
2. Introduction to Embedded Systems, Shibu K.V, MHE, 2009
3. The 8051 Microcontrollers, Architecture and Programming and Applications -K.Uma
Rao, AndhePallavi, Pearson, 2009.
GATE Syllabus:8086 Microprocessors and Interfacing.
EEE IV Yr I Sem Page 5
ESE Syllabus: Not Applicable
VIII. COURSE PLAN(WEEK-WISE):
Session Week Topic
Course Learning
outcomes Reference
UNIT-1
1.
1
Introduction
Know about the overall
subject
TI,RI
2. Introduction
Know about the overall
subject
3. 8086 architecture
Gain the knowledge about
8086
4. function diagram of 8086
Understand the functional
diagram of 8086
5. Register organization
Gain the knowledge about
Register organization
6.
2
Flag register organization
Gain the knowledge about
flag Register organization
7. memory segmentation
Gain the knowledge about
Memory segmentation
8. memory address
Analyze the physical
memory address
9. physical memory organization
Analyze the physical
memory organization
10. Architecture of 8086
Gain the knowledge about
8086
11.
3
Signal description of 8086
Gain the knowledge about
signal description of 8086
12. Interrupts of 8086
Understand the interrupts
of 8086
13. Instruction formats
Understand the instruction
formats of 8086
14. Addressing modes
Compare the addressing
modes of 8086
15. Addressing modes, Instruction Set
Compare the addressing
modes of 8086
16.
4
Instruction Set
Understand the instruction
set of 8086
17. Assembler Directives
Understand the assembler
directives of 8086
18. Macros and Simple Programs of Logical,
Branch
Analyze the simple
programs of logical
branch
19. Simple Programs of Call Instructions,
Sorting, String Manipulations.
Analyze the simple
programs of call
instructions ,sorting,string
manipulations
20. MOCK TEST-1
Testing the students
knowledge
UNIT-2
21. Introduction to Microcontrollers
Gain the knowledge of
micro controllers TI,RI
22. Overview of 8051 Microcontroller Understand the overview
EEE IIIYr I Sem Page 6
of 8051 microcontroller
23. Architecture of 8051
I/O Ports, Memory Organization
Gain the knowledge of
architecture , I/O ports
and memory organization
24.
5
Addressing Modes of 8051
Understand the addressing
modes of 8051
25. Instruction set of 8051.
Understand the Instruction
set of 8051
26. BRIDGE CLASS To clarify the doubts
27.
6
8051 Real Time Control:Programming
Timer Interrupts
Analyze the real time
control
28. Programming External Hardware
interrupts
Classify the programming
external hardware
interrupts
29. Serial Communication Interrupts
Classify the serial
communication interrupts
30. BRIDGE CLASS To clarify the doubts
31.
7
Programming the Serial Communication
Interrupts
Classify the programming
serial communication
interrupts
32. Programming 8051 Timers and Counters
Analyze the 8051 timers
and counters
UNIT-3
33.
I/O And Memory Interface
Understand the I/O and
memory interface
TI,RI
LCD I/O And Memory Interface
Understand the LCD I/O
and memory interface
Keyboard I/O And Memory Interface
Understand the Keyboard
I/O and memory interface
34. External Memory RAM, ROM Interface
Describe external memory
RAM and ROM Interface
35. BRIDGE CLASS Clarify the doubts
36.
8
ADC Interface to 8051
Analyze the ADC
Interface to 8051
37. DAC Interface to 8051
Analyze the DAC
Interface to 8051
38. Serial Communication Standards
Classify the serial
communication standards
39. Serial Data Transfer Scheme
Gain the knowledge of
serial data transfer scheme
40. On board Communication Interfaces-I2C
Bus
Analyze the on board
communication interfaces
12C Bus
41. SPI Bus, UART
Understand the SPI Bus
,UART
42. External Communication Interfaces-
RS232,USB
Understand the external
communication interfaces
–RS 232,USB
43. BRIDGE CLASS Clarify the doubts
MID – I
44. 10 External Communication Interfaces- Understand the external
EEE IV Yr I Sem Page 7
RS232,USB communication interfaces
–RS 232,USB
45. BRIDGE CLASS Clarify the doubts
UNIT-4
46.
11
Introduction
Overview of ARM
Processor
TI,RI
47. ARM Processor fundamentals
Gain the knowledge of
ARM Processor
48. ARM Architecture
Understand the ARM
Architecture
49. Register set , CPSR Analyze the register set
50. BRIDGE CLASS Clarify the doubts
51.
12
Pipeline, exceptions
Gain the knowledge of
pipeline ,exceptions
52. Interrupts, Interrupt vector table
Understand the interrupts
and interrupt vector table
53. ARM instruction set Analyze the instruction set
54. loading constants, Conditional execution
Analyze the loading
constants and conditional
execution
55. Introduction to Thumb instructions
Understand the thumb
instructions
56. MOCK TEST-2
To test the knowledge and
preparing the students for
final examination
UNIT-5
57.
13
Introduction to Advanced ARM
Processors
Understand the advanced
ARM Processors
TI,RI
58. Introduction to CORTEX Processor
Understand the CORTEX
Processors
59. Architecture of CORTEX Processor
Analyze the CORTEX
Processor
60. Architecture of CORTEX Processor
Analyze the CORTEX
Processor
61. Introduction to OMAP Processor
Understand the OMAP
Processors
62. BRIDGE CLASS
63.
14
Architecture of OMAP Processor
Analyze the OMAP
Processor
64. Architecture of OMAP Processor
Analyze the OMAP
Processor
65. BRIDGE CLASS
66.
15
Content beyond syllabus AURDINO MICROCONTROLLER
Understand the
AURDINO
Microcontroller
TI,RI
67.
68. PIC MICROCONTROLLER
Understand the PIC
Microcontroller
69. BRIDGE CLASS Clarify the doubts
70. BRIDGE CLASS Clarify the doubts
71. BRIDGE CLASS Clarify the doubts
72. 16
REVISION CLASS Clarify the doubts TI,RI
73. REVISION CLASS Clarify the doubts
EEE IIIYr I Sem Page 8
74. REVISION CLASS Clarify the doubts
75. REVISION CLASS Clarify the doubts
76. REVISION CLASS Clarify the doubts
MID - II
IX. MAPPING COURSE OUTCOMES LEADING TO THE ACHIEVEMENT OF
PROGRAM OUTCOMES AND PROGRAM SPECIFIC OUTCOMES:
QUESTION BANK:
UNIT – I
Short Answer Questions
S.NO Questions Blooms
Taxonomy
Level
Course
Outcome
1 What do you understand by
microprocessor?
Understanding 1
2 What do you understand by OPCODE
and OPERAND?
Understanding 1
3 What is the function of flag register? Understanding
1
4 What do you understand by assembler
directives?
Understanding
1
5 What do you understand by addressing
modes? Give example.
Understanding
1
Long Answer Questions
S.NO Questions Blooms
Taxonomy
Level
Course
Outcome
1 Explain with a neat diagram the
architecture of 8086 processor
Analyze 1
2 What is the purpose of flag register in
8086? Explain the different bits of flag
register in 8086
Analyze
1
3 Explain the different string manipulation
operations of 8086 with a example each
Analyze 1
PROGRAM OUTCOMES
Program
Specific
Outcomes
PO
1
PO
2
PO
3
PO
4
PO
5
PO
6
PO
7
PO
8
PO
9
PO
10
PO
11
PO
12
PS
O1
PS
O2
CO1 2 2 2 - - 2 - - - - - 2 2 - CO2 - 2 2 2 2 2 - - - - - 2 - 2 CO3 2 2 2 2 2 2 2 CO4 2 2 2 2 CO5 2 2 2 2 2 CO6 2 2 2 2 2 AVG 1.3 1.3 1.3 1 1 1.3 - - - - - 2 1.3 0.8
EEE IV Yr I Sem Page 9
4 Write a ALP to find out whether a given byte is in string or not. If it is in the string,
find out the relative address of the byte
from the starting location of string
Apply 2
5 Write an ALP to convert a 16 bit binary
into equivalent BCD number
Apply
2
UNIT – II
Short Answer Questions:
S.NO Questions Blooms
Taxonomy
Level
Course
Outcome
1 What is microcontroller? Understanding 3
2 Give an example of direct and indirect
addressing mode of 8051
Apply 3
3 Describe the ports of 8051 Understanding 3
4 What are the interrupt lines present in
8051?
Understanding 3
5 What is serial data transfer techniques? Understanding 3
Long Answer Questions:
S.NO Questions Blooms
Taxonomy
Level
Course
Outcome
1 Explain with a neat diagram the architecture of
8051
Analyze 3
2 Explain the different addressing modes of 8051 Analyze 3
3 Explain with a neat diagram the external
I/O interfacing for 8051
Analyze 3
4 Explain the different Arithmetic and logical instructions of 8051 with an example for each
of the instructions
Analyze& Apply
3
5 Explain with a pin diagram the different pins
and their functionalities in 8051
Analyze 3
UNIT – III
Short Answer Questions:
S.NO Questions Blooms
Taxonomy
Level
Course
Outcome
1 What are Serial Communication Standards Understanding 4
2 What are Serial DataTransfer Scheme Understanding 4
3 What is UART Understanding 4
EEE IIIYr I Sem Page 10
4 What are External Communication Interfaces Understanding 4
5 What are the External Memory RAM, ROM
Interfaces
Understanding 4
Long Answer Questions:
S.NO Questions Blooms
Taxonomy
Level
Course
Outcome
1 Explain in brief about LCD, Keyboard
Interface
Analyze 4
2 Explain in brief about ADC, DAC Interface to
8051
Analyze 4
3 Explain about Serial Data Transfer Scheme Analyze 4
4 Explain about External Communication
Interface
Analyze
4
5 Explain in detail about On board
Communication Interfaces
Analyze
4
UNIT –IV
Short Answer Questions:
S.NO Questions Blooms
Taxonomy
Level
Course
Outcome
1 What are the loading constants Understanding 5
2 Write a short note onProgram status register Understanding 5
3 What is Conditional execution Understanding 5
4 Classify are the registers in ARM Processor Understanding 5
5 Compare the interrupts in ARM Processor Understanding 5
Long Answer Questions:
S.NO Questions Blooms
Taxonomy
Level
Course
Outcome
1 Explain with a neat diagram about the
architecture of ARM Processor
Analyze
5
2 Explain in detail about the instruction set of arm
processor
Analyze 5
3 Discuss in brief about the registers of ARM
Processor
Analyze 5
4 Discuss in brief about Program status register
instructions
Analyze
5
EEE IV Yr I Sem Page 11
5 Explain in detail about interrupts & interrupt
vector table
Analyze
5
UNIT – V
Short Answer Questions
S.NO Questions Blooms
Taxonomy
Level
Course
Outcome
1 What are the Advanced ARM Processors Understanding 6
2 What are the registers of CORTEX Processor Understanding 6
3 What are the interrupts of CORTEX Processor Understanding 6
4 What are the registers of OMAP Processor Understanding 6
5 What are the interrupts of OMAP Processor Understanding 6
Long Answer Questions:
S.NO Questions Blooms Taxonomy
Level
Course
Outcome
1 Explain with a neat diagram about the
architecture of CORTEX Processor
Analyze
6
2 Explain in detail about the registers of
CORTEX Processor
Analyze
6
3 Explain with a neat diagram about the
architecture of OMAP Processor
Analyze
6
4 Explain in detail about the registers of
OMAP Processor
Analyze 6
5 What are the interrupts of CORTEX
Processor & OMAP Processor
Understanding&
Analyze 6
OBJECTIVE-TYPE QUESTIONS:
UNIT-I
Multiple choice questions:
1. What is the size of the memory that can be addressed by 8086?
i) 64 kb ii) 512MB iii) 1Mb iv) 1Kb
2. How many control bits are there in the flag register of 8086?
i)3 ii) 6 iii)9 iv)16
3. How many logical segments are present on 8086?
i) 15 ii)16 iii)8 iv) 3
4. Which general purpose register can hold offset address of any memory?
i) AX ii) CH iii) BX iv) BL
5. What is the size of the pre instruction byte queue?
i) 6bytes ii) 4bytes iii) 3bytes iv) 1bytes
6. What is the size of the instruction MOV AX, 0005H
EEE IIIYr I Sem Page 12
i)1byte ii)2bytes iii)3bytes iv)4bytes
7. MOV AX,[SI] is a example of _____ addressing mode
i)direct ii) register indirect iii) indexed iv) immediate
8. How many multiplexed address data bus is present in 8086?
i)16 ii)4 iii)20 iv)8
9. 8086 is ____ pin IC.
i)40 ii)26 iii)20 iv)16
10. The possible highest segment address of 8086 is
i)FFFFH ii)F000H iii)FFFH iv) 1111H
UNIT-II
Multiple choice questions:
1. Among the following which one is a microcontroller?
i)8085 ii)8086 iii)8051 iv)8251
2. PSW of 8051 is similar like ____ register of 8086.
i) Accumulator ii)flag register iii)PC iv)index register
3. How many ports are present in 8051?
i)4 ii)3 iii)2 iv)1
4. How many temporary registers are present in 8051?
i)1 ii)2 iii)3 iv)4
5. SFR address lie in the range of_______
i)11H to FFH ii)80H to FFH iii)00H to FFH iv)FOH to FFH
UNIT-III
Multiple choice questions:
1. How many data lines are there in a 16*2 alphanumeric LCD?
a) 16b) 8c) 1d) 0
2. For writing commands on an LCD, RS bit is
a) setb) resetc) both of the mentionedd) none of the mentioned
3. Which pin of the LCD is used for adjusting its contrast?
a) pin no 1b) pin no 2c) pin no 3d) pin no 4
4.The RS pin is an input/output for a controller?
a) inputb) outputc) both of the mentionedd) none of the mentioned
5.For writing commands on an LCD, RS bit is
a) setb) resetc) both of the mentionedd) none of the mentioned UNIT-IV
Multiple choice questions:
1. ARM stands for
a) Advanced Rate Machines b) Advanced RISC Machines
c) Artificial Running Machines d) Aviary Running Machines
2. The main importance of ARM micro-processors is providing operation with
a) Low cost and low power consumption b) Higher degree of multi-tasking
c) Lower error or glitches d) Efficient memory management
3. ARM processors where basically designed for _______
a) Main frame system sb) Distributed systems c) Mobile systems d) Super computers
4. Each instruction in ARM machines is encoded into ____ Word.
a) 2 byte b) 3 byte c) 4 byte d) 8 byte
5. The addressing mode where the EA of the operand is the contents of Rn is ______
a) Pre-indexed mode b) Pre-indexed with write back mode
c) Post-indexed mode d) None of the mentioned UNIT-V
Multiple choice questions:
EEE IV Yr I Sem Page 13
1. Which microcontrollers are adopted for designing medium scale embedded systems?
a. 8-bitb. 16-bit to 32-bit c. 64-bit d. All of the above
2. While designing an embedded system, which sub-task oriented process allocates the time
steps for various modules that share the similar resources?
a. Simulation and Validation b. Iteration c. Hardware-Software Partitioningd. Scheduling
3.In Cortex-R processor series, which among the following represent/s dual core
configuration along with the space saving the floating point unit?
a. Cortex-R 4 b. Cortex-R 5 c. Cortex-R 7 d. All of the above
4.In Cortex-A processor series, which among the following is the standalone and smallest
processor in size constraints with high-end application support?
a. Cortex-A5b. Cortex-A9c. Cortex-A53d. Cortex-A59
5. At an active HIGH reset pin of 8051 microcontroller, for how many machine cycles should
the positive going pulse be provided, if the power is switched ON?
a. only oneb. Twoc. Threed. four
XII. GATE QUESTIONS / UGC - NET:
1. The instruction that is used to transfer the data from source operand to destination operand
A. Data copy/transfer instruction B.Branch instruction
C.Arithmetic/logical instruction D.String instruction
2. The instruction, MOV AX, 0005H belongs to the address mode
A. Register B.Direct C. Immediate D.Register relative
3. The instruction, MOV AX, 1234H is an example of
A. Register addressing mode B.Direct addressing mode
C. Immediate addressing mode D.Based indexed addressing mode
4. How many machine cycle/s is/are executed by the counters in 8051 in order to detect ‘1’
to ‘0’ transition at the external pin?
a. One b. Two c. Four d. Eight
WEBSITES: 1. http://www.engineersgarage.com
2. www.comtechdoc.org
3. www.emu8086.com
4. www.microcontroller.com
5. www.newelectronics.co.uk/electronics
NPTEL WEB LINKS:
1.http://nptel.ac.in/courses/108107029/
LIST OF TOPICS FOR STUDENT SEMINARS:
1. Architecture of 8085 & 8086 Microprocessors
2. Assembler Directives, procedures and macros
3. Minimum mode and maximum mode of operation & timing diagrams
4. Need for DMA, DMA data transfer Method
5. 8255 PPI–various modes of operation and interfacing to 8086
6. Serial data transfer schemes, Asynchronous and Synchronous data transfer schemes
7. 8251 USART architecture and interfacing
CASE STUDIES/ SMALL PROJECTS:
1. Interfacing of matrix keyboard to 8086
2. Interfacing of display units to 8086
3. Interfacing of ADC & DAC to 8086
4. Interfacing of stepper motor to 8086
5. Interfacing of Memories to 8086
6. Interfacing of DMA controller to 8086
7. Interfacing of 8255 PPI to 8086
EEE IIIYr I Sem Page 14