valliammai engineering college semester/mc7302-embedded s… · 9 express the limitations of intel...
TRANSCRIPT
VALLIAMMAI ENGINEERING COLLEGE
SRM Nagar, Kattankulathur – 603 203
DEPARTMENT
OF
COMPUTER APPLICATIONS
QUESTION BANK
III SEMESTER
MC7302-EMBEDDED SYSTEMS
Regulation – 2013
Academic Year 2017– 2018
UNIT 1- INTRODUCTION TO MICROPROCESSORS
Evolution of Microprocessors - 8-Bit Processor - 8085 Architecture – Register Organization-
Instruction Set – Timing Diagram- Addressing Modes – Interrupts- Interrupt Service
Routines-Assembly Language Programming Using 8085.
PART - A
S.No Questions BT
Level
Competence
1 Define machine cycle and instruction cycle. BTL1 Remember
2 Name the various flag bits available in 8085
microprocessor. BTL1 Remember
3 List various instructions that can be used to clear
accumulator in Intel 8085. BTL1 Remember
4 List all the interrupt signals of Intel 8085. BTL1 Remember
5 What is the need of ALE signal in Intel 8085? BTL1 Remember
6 What is the function of NOP instruction? BTL1 Remember
7 Give the significance of SIM and RIM instructions
available in Intel 8085. BTL2 Understand
8 Distinguish the following signals of 8085: RST 7.5,
READY. BTL2 Understand
9 Express the limitations of Intel 8085 microprocessor. BTL2 Understand
10 Distinguish between SHLD and SPHL instructions. BTL2 Understand
11 Classify instruction set of Intel 8085. BTL3 Apply
12 Draw the schematic of latching low-order address bus in
8085 microprocessor. BTL3 Apply
13 Mention the various addressing modes of Intel 8085. BTL3 Apply
14 Point out the power supply and clock frequency values of
Intel 8085. BTL4 Analyze
15 Differentiate between immediate and implied addressing
modes of 8085 microprocessor BTL4 Analyze
16 Point out examples for Opcode and Operand. BTL4 Analyze
17 Obtain the various registers of Intel 8085. BTL5 Evaluate
18 Check whether program counter and stack pointer are
registers of 16 bit. BTL5 Evaluate
19 Develop a program to compare two 8 bit numbers in 8085. BTL6 Create
20 Generalize the multiplexing process done in Intel 8085. BTL6 Create
PART B
1 (i)List the arithmetic instructions, Shift and Rotate
instructions and explain with examples. (7)
(ii)List the Data transfer and Branching Instructions and
explain with examples. (6)
BTL 1 Remember
2 (i) Describe in detail about the pin configuration of 8085
processor. (8)
(ii) Examine about memory interfacing techniques used in
8085 microprocessor. (5)
BTL 1 Remember
3 (i)Write in detail about instruction formats and instruction BTL 1 Remember
execution timing. (8)
(ii)List out the maskable and non-maskable interrupts
available in Intel 8085 microprocessor. (5)
4 (i) What do you mean by hand assembly? Explain with the
help of example. (5)
(ii) Describe the sequence of event that may occur during the
different T state in the opcode fetch machine cycle of 8085.
(8)
BTL 1 Remember
5 Discuss about the internal hardware architecture of 8085
microprocessor with neat diagram. (13) BTL 2 Understand
6 (i) Discuss the uses of addressing modes of Intel 8085
microprocessor. (5)
(ii) Mention the different types of the same with examples.
(8)
BTL 2 Understand
7 (i) Draw the timing diagram for instruction CALL
4322H.Assume relevant details. (7)
(ii) Distinguish the similarities and differences of CALL and
RETURN instruction with PUSH and POP instruction. (6)
BTL 2 Understand
8 (i) Draw the timing diagram for MVI A ,8 bit data and
explain. (8) (ii) Discuss about byte and string manipulation with example.
(5)
BTL 3 Apply
9 Determine about the instruction of 8085 classified based on
their functions and word length. (13) BTL 3 Apply
10 (i) Explain about assembler directives. (5)
(ii) Explain the bus structure of 8085 processor. (8) BTL 4 Analyze
11 (i) Explain various interrupts and externally initiated signals
of 8085 microprocessor in detail. (7)
(ii) Explain the demultiplexing of address and data bus and
generation of control signals for memory and I/O with
schematic diagram. (6)
BTL 4 Analyze
12 (i) Evaluate how the interrupts are serviced by the processor.
(8)
(ii) Express how an instruction is fetched and executed in an
8085 processor with a flow diagram. (5)
BTL 5 Evaluate
13 Write an 8085 ALP to find the smallest of numbers in array
of 10 elements along with flowchart. (13) BTL 6 Create
14 Write an assembly language program to add and subtract
two 8 bit numbers using 8085 instruction set. (13) BTL 6 Create
PART C
1 (i) Obtain the operations carried out when 8085 executes the
following instructions (a) MOV A, M (b) XCHG (c) DAD B
(d) DAA to multiply two 8-bit numbers. (8)
(ii) Explain about the loop structure with counting and
indexing in 8085 programming. (7)
BTL 5 Evaluate
2 (i)Examine and label the timing diagram of I/O write
machine cycle of 8085Microprocessor. (8) BTL 5 Evaluate
(ii) Draw and explain the timing diagram of STA 5000H
instruction of Intel 8085 Microprocessor. (7)
3 (i) Show how program counter, stack pointer and status flags
operate in the architecture of 8085 microprocessor. (8)
(ii) Discuss about the software delays implemented using
counters. (7)
BTL 6 Create
4 Write an 8085 program to count the number of even and odd
numbers in a given set of numbers. (15) BTL 6 Create
UNIT II- INTRODUCTION TO EMBEDDED SYSTEMS
Embedded Systems- Processor Embedded Into A System-Embedded Hardware And Software
Units-Applications-Design Process – Intel 8051 Architecture- Processor And Memory
Organization-Interrupts Of 8051 - Assembly Language Programming Using 8051.
PART - A
S.No Questions BT
Level
Competence
1 What are the main components of an embedded system? BTL 1 Remember
2 What are the different types of memory used in embedded
system design? BTL 1 Remember
3 What role does a linker play? BTL 1 Remember
4 List the features of Intel 8051microcontroller. BTL 1 Remember
5 What is the use of PCON register? BTL 1 Remember
6 List the addressing modes of Intel 8051microcontroller. BTL 1 Remember
7 Give few examples for small scale embedded systems. BTL 2 Understand
8 Differentiate between editor and compiler. BTL 2 Understand
9 How embedded systems are different from conventional
PC? BTL 2 Understand
10 Give the format of PSW register of Intel 8051
microcontroller. BTL 2 Understand
11 Illustrate the need for watchdog timer. BTL 3 Apply
12 Why should be the embedded RTOS system to be
scalable? BTL 3 Apply
13 Classify the register banks in 8051 microcontroller. BTL 3 Apply
14 Differentiate RRA and RRC A instructions of Intel 8051
microcontroller. BTL 4 Analyze
15 Compare the use loader in a computer system and locator
in an embedded system. BTL 4 Analyze
16 Analyze the need for memory management in Embedded
Systems. BTL 4 Analyze
17 How does a program reside in ROM in embedded systems? BTL 5 Evaluate
18 Assess the additional structural units in advanced embedded
processor. BTL 5 Evaluate
19 Decide how suitable memory will be selected for the design
of the embedded system. BTL 6 Create
20 Generalize the characteristics of embedded computing
applications.
BTL 6 Create
PART B
1 Describe about embedded hardware units and devices in a
system. (13) BTL 1 Remember
2 (i) Describe in detail about the functional pin diagram of
8051 Microcontroller. (7)
(ii)Examine the memory structure of Intel 8051
microcontroller. (6)
BTL 1 Remember
3 (i) List the arithmetic instructions, Shift and Rotate
instructions and explain with examples in 8051. (7)
(ii) List the Data transfer and Branching Instructions and
explain with examples in 8051. (6)
BTL 1 Remember
4 Describe the internal architecture of the 8051
microcontroller with a block diagram. (13) BTL 1 Remember
5 (i)Discuss, in detail about the embedded system life cycle
and tools used in the design process. (8)
(ii)Estimate how to code the hardware in the view of
Hardware and software duality. (5)
BTL 2 Understand
6 Summarize briefly about the Embedded Hardware And
Software Units. (13) BTL 2 Understand
7 Describe about the design process of a system. (13) BTL 2 Understand
8 Discuss about the embedded software units in a system.
(13) BTL 3 Apply
9 Examine about the interrupt structure of 8051
microcontroller and explain how they are prioritized.
(13)
BTL 3 Apply
10 (i) Explain briefly about external data move operation in
8051 along with necessary programs. (7)
(ii) Show the various addressing modes supported by 8051.
Explain with examples. (6)
BTL 4 Analyze
11 Explain in detail about 8051 I-O port structures and their
operations. (13) BTL 4 Analyze
12 What are the skills needed for a hardware and software
engineer to design an embedded system application? (13) BTL 5 Evaluate
13 (i)Discuss about the concept of memory banks of 8051. (8)
(ii) Explain data memory structure of 8051. (5) BTL 6 Create
14 Write an ALP to convert ASCII to HEXA conversion,
HEXA to ASCII Conversion using 8051 instruction set.
(13)
BTL 6 Create
PART C
1 Summarize about the operation of program counter and
stack in 8051. (15) BTL 5 Evaluate
2 (i) Explain about the organization of internal RAM and
special function registers of 8051 microcontroller in detail.
(8)
(ii) Discuss about the different methods of memory address
decoding in 8051. (7)
BTL 5 Evaluate
3 Write an 8051 ALP for (a) BCD addition of two numbers
(b) Sum of elements in an array. (15) BTL 6 Create
4 Write an 8051 program to find square of a given number
and with necessary flowchart. (15) BTL 6 Create
UNIT III- INTERFACING WITH 8051
Input-Output Interfacing – Bus Standards – PCI – ISA – Timing And Control – Input Output
Devices –Serial And Parallel Communication – Motor Control-Programming Display
Devices – ARM Architecture
PART - A
S.No Questions BT
Level
Competence
1 How is serial data I/O possible in 8051? BTL 1 Remember
2 How many timers do we have in Intel 8051
microcontroller? BTL 1 Remember
3 List out some of the timers that can be used as event
counters in Intel 8051 microcontroller. BTL 1 Remember
4 What is ISA? BTL 1 Remember
5 Name the pins used for the second serial port. BTL 1 Remember
6 What are the voltage levels used in RS232C connectors? BTL 1 Remember
7 Distinguish between synchronous and asynchronous data
transfer. BTL 2 Understand
8 How can data be transferred to the LCD from a port using
only 4 port lines? BTL 2 Understand
9 How does LCD distinguish between data and command? BTL 2 Understand
10 Why do we need at least one timer device in an embedded
system? BTL 2 Understand
11 Mention the functions of the MAX232 chip. BTL 3 Apply
12 What is the function of EOC pulse? BTL 3 Apply
13 List the different phases involved in the embedded system
life cycle design. BTL 3 Apply
14 How is pulse generated from microcontroller for stepper
motor control? BTL 4 Analyze
15 How can an external frequency be counted using the Intel
8051 microcontroller? BTL 4 Analyze
16 How can a microcontroller be used to control
automatically the speed of a DC motor? BTL 4 Analyze
17 Compare serial and parallel communication. BTL 5 Evaluate
18 Compare PCI with ISA. BTL 5 Evaluate
19 Generalize about Timer Modes of operation. BTL 6 Create
20 What is the advantage of placing an optoisolator
between the motor and the microcontroller? BTL 6 Create
PART B
1 (i) Describe about the interfacing of 4×4 matrix keyboard
to the 8051. (7)
(ii)Describe the interrupt structure of 8051 microcontroller
and explain how they are prioritized. (6)
BTL 1 Remember
2 (i)Describe about external memory interfacing to 8051.
(8)
(ii)Write notes on 8051 timer and counter programming.
(5)
BTL 1 Remember
3 (i)Discuss about the timers of 8051 used to produce time
delay in timer mode. (8)
(ii)Describe about TMOD function register and its timer
modes of operations. (5)
BTL 1 Remember
4 List the features of ARM processor and explain them in
detail. (13) BTL 1 Remember
5 Summarize the following parallel communication devices:
a. ISA bus
b. PCI bus (13)
BTL 2 Understand
6 Discuss in detail, the hardware and software support
provided by 8051 for serial communication. (13) BTL 2 Understand
7 Discuss how to program and interface LCD to an 8051.
(13) BTL 2 Understand
8 (i)Derive the format of I/O mode set control and BSR
control word of programmable peripheral interface. (7)
(ii)Mention in detail about the operating modes of PPI. (6)
BTL 3 Apply
9 Draw the schematic diagram for interfacing a stepper motor
with 8051 microcontroller and write an 8051 based
assembly language program for changing speed and
direction of the motor. (13)
BTL 3 Apply
10 Explain in detail about the I/O port structure of Intel 8051
microcontroller. (13) BTL 4 Analyze
11 (i)Explain the keyboard interfacing using 8051. (7)
(ii) Explain the sensor interfacing using 8051. (6)
BTL 4 Analyze
12 Assume that a switch is connected to pin P2.0.write a
program to monitor the Switch and perform the
following :
(a) If SW=0 send the message “hello “to the serial #0 port.
(b) If SW=1 send the message “Goodbye “to the serial #1
port. (13)
BTL 5 Evaluate
13 (i) Design a system for interfacing ADC with 8051. (7)
(ii) Design a system for interfacing DAC with 8051. (6) BTL 6 Create
14 (i) Explain about processor and memory organization of
ARM processor. (7)
(ii) Examine in detail about real-time clock and interrupt
base controlling in 8051. (6)
BTL 6 Create
PART C
1 Explain in detail about the ARM architecture with
schematic diagram. (15) BTL 5 Evaluate
2 Summarize about the operation of serial port with associated
register. (15) BTL 5 Evaluate
3 Write an 8051 assembly language program to toggle all bits
of P2 continuously every 500ms.Use timer 1, mode 1 to
create the delay. (15)
BTL 6 Create
4 With relevant diagrams, Explain about timer and counter
functional unit of microcontroller 8051. (15)
BTL 6 Create
UNIT IV- REAL – TIME OPERATING SYSTEM
Inter Process Communication – Signal Functions – Socket Programming – Mailbox - Pipes
– RTOS –OS Services – Process Management - Timer Function –Event Function – Memory
Management –Device, Files and I/O Subsystem – Basic Design of RTOS
PART - A
S.No Questions BT
Level
Competence
1 What are the different states of a task? BTL 1 Remember
2 List out the importance of pre-emptive scheduling. BTL 1 Remember
3 Define: Inter process communication BTL 1 Remember
4 Define shared data problem. BTL 1 Remember
5 What is counting semaphore? BTL 1 Remember
6 What are the main objectives of RTOS? BTL 1 Remember
7 Distinguish between process, threads and tasks. BTL 2 Understand
8 Differentiate P and V semaphores. BTL 2 Understand
9 Distinguish Timer and event function. BTL 2 Understand
10 Mention the consequences of context switching. BTL 2 Understand
11 Examine the term process in operating systems. BTL 3 Apply
12 Classify task in operating systems. BTL 3 Apply
13 Examine about Priority inversion? BTL 3 Apply
14 Compare the difference between RTOS and Operating
System. BTL 4 Analyze
15 Point out the features of Remote Procedure Call. BTL 4 Analyze
16 Point out some advantages of Real Time operating System. BTL 4 Analyze
17 What is the importance of device management in an
OS for an embedded system?
BTL 5 Evaluate
18 Obtain Synchronization process in operating systems. BTL 5 Evaluate
19 Generalize the concept of Deadlock situation? BTL 6 Create
20 Compose few important examples for I/O subsystems. BTL 6 Create
PART B
1 Describe in detail about device management in OS.
(13)
BTL 1 Remember
2 Describe how the file management in RTOS differs from
conventional operating system. (13)
BTL 1 Remember
3 Describe about Socket programming in RTOS.
(13)
BTL 1 Remember
4 Define RTOS. Explain the basic design of RTOS in Detail.
(13)
BTL 1 Remember
5 (i) Differentiate about mailbox and pipe in RTOS. (6)
(ii) Discuss about the types of semaphore. (7)
BTL 2 Understand
6 (i) How RTOS schedules the multiple tasks in real time?
Describe with an example. (6)
(ii) How the interrupts are serviced in the RTOS
environment? Describe with an example. (7)
BTL 2 Understand
7 Compare and contrast the various scheduling schemes used
in RTOS. (13)
BTL 2 Understand
8 Determine the various signal function used in RTOS. (13) (13) BTL 3 Apply
9 Classify Timer and event function and explain in detail.
(13)
BTL 3 Apply
10 (i) Explain the goals and structure of operating system
services. (5)
(ii) Explain, in detail, about the management functions of
kernel. (8)
BTL 4 Analyze
11 (i) Assess the issues involved in the design of RTOS. (7)
(ii)Explain the thread scheduling policies in the RTOS. (6)
BTL 4 Analyze
12 (i) Justify the need for necessity of RTOS and when is it
not necessary in the embedded systems. (7)
(ii) List some examples for semaphore, mailbox, and
message queue and explain in detail. (6)
BTL 5 Evaluate
13 Develop a system with Process management in RTOS used
for various applications. (13)
BTL 6 Create
14 (i) Describe, in detail, about how the inter process
communication is carried out in RTOS. (7)
(ii) Write, in detail, the importance of memory
management unit in RTOS environment. (6)
BTL 6 Create
PART C
1 Explain about Interrupt routine in RTOS and handling
service calls in RTOS. (15)
BTL 5 Evaluate
2 Summarize about Multi process and multi thread in an
application. (15)
BTL 5 Evaluate
3 Discuss about various RTOS task scheduling models. (15) BTL 6 Create
4 Describe about device, File and I/O stem in RTOS
embedded for an application.
(15)
BTL 6 Create
UNIT V- RTOS PROGRAMMING
Basic Functions – Types Of RTOS – RTOS μCOS – RT Linux – Real Time Linux Functions-
Programming With RT Linux – Case Study
PART - A
S.N
o Questions
BT
Level
Competence
1 What are the various RTOS components? BTL 1 Remember
2 Name any two important RTOS. BTL 1 Remember
3 What is meant by well tested and debugged RTOS? BTL 1 Remember
4 What is sophisticated multitasking embedded system? BTL 1 Remember
5 Name few applications for the MUCOS. BTL 1 Remember
6 What are the task service functions supported by RTLINUX? BTL 1 Remember
7 Give the name of the function used in MUCOS environment
to create initialize memory partition. BTL 2 Understand
8 Give the software components needed to design smart card. BTL 2 Understand
9 Outline the hardware units needed to design Automatic
chocolate vending systems. BTL 2 Understand
10 What is microkernel? BTL 2 Understand
11 Mention four real time thread functions used in RTLINUX. BTL 3 Apply
12 Mention the features of RT Linux. BTL 3 Apply
13 List out the memory functions used in MUCOS environment. BTL 3 Apply
14 List any two distinguishing features of LINUX BTL 4 Analyze
15 Distinguish between hard and soft real time systems. BTL 4 Analyze
16 Discuss the importance of MACRO functions used in
MUCOS environment. BTL 4 Analyze
17 Why do we need RTOS for embedded application? BTL 5 Evaluate
18 Assess the use of rtf_flush() function in RTLINUX? BTL 5 Evaluate
19 Show an example to describe RT Linux functions. BTL 6 Create
20 Discuss the different types of scheduling supported by
MUCOS? BTL 6 Create
PART B
1 (i)List and explain various functions related to thread
manipulation in RT Linux. (7)
(ii)Describe the features of MUCOS RTOS. (6)
BTL 1 Remember
2 (i)Derive a code for the kernel mode of RTLINUX. (8)
(ii)List out a table that gives MUCOS environment’s
features. (5)
BTL 1 Remember
3 (i)Explain in detail about the RTOS programming tool
MUCOS environment. (8)
(ii)List out the uses of MUCOS environment. (5)
BTL 1 Remember
4 Mention some of the alternative systems in RTOS for
responding a hardware source call with a neat sketch.
(13)
BTL 1 Remember
5 Discuss the various factors to be considered for the
selection of RTOS. (13) BTL 2 Understand
6 Discuss in detail about the essential properties of Real time
operating Systems. (13) BTL2 Understand
7 Illustrate the steps behind in programming with RT Linux.
Write your own program and explain it. (13) BTL2 Understand
8 Draw and explain basic system of an Automatic chocolate
vending system. (13) BTL 3 Apply
9 Mention the basic functions expected from kernel of RTOS
environment and explain with examples. (13) BTL 3 Apply
10 Explain in detail about module and thread functions in
RTLINUX. (13) BTL 4 Analyze
11 Explain the case study of an embedded system for an
adaptive cruise control system in a car and analyze it. (13) BTL 4 Analyze
12 Write RT Linux program to create a thread and execute
once every second and during each iteration print ‘Hello
World’. (13)
BTL 5 Evaluate
13 Design and develop a case study of an embedded system
for a smart card. (13) BTL 6 Create
14 (i)Discuss the features of RTLINUX environment. (6)
(ii)Briefly explain the types of RTOS. (7) BTL 6 Create
PART C
1 Explain about the role of an embedded application which
provides extensive support in home automation. (15) BTL 5 Evaluate
2 List out the basic functions expected from kernel of RTOS
environment and explain them all with suitable examples.
(15)
BTL 5 Evaluate
3 (i)Discuss how the task of reading ports in smart card
synchronizes with the port device driver. (8)
(ii)Generalize the tasks and ISRs required for a smart card
system. Explain the actions of each and discuss the task
priority assignments in a smart card system. (7)
BTL 6 Create
4 Design and develop a case study of an embedded system for
an ATM machine. (15) BTL 6 Create