Sie sind auf Seite 1von 50

SREE SAKTHI

ENGINEERING COLLEGE
(ACCREDITED BY NAAC, APPROVED BY AICTE, AFFILIATED TO ANNA UNIVERSITY, CHENNAI)
BETTATHAPURAM, KARAMADAI, COIMBATORE – 641104

DEPARTMENT OF ELECTRICAL AND


ELECTRONICS ENGINEERING

QUESTION BANK

Course code& Name : EE8691 Embedded Systems

Degree/Programme : B.E/EEE Semester: VI

Duration : 2019 - 2020

Regulation : 2017/AUC
VISION OF THE INSTITUTION
―To develop high quality technical education and personnel with a sound footing on basic
engineering principles, technical and managerial skills, innovative research capabilities, and
exemplary professional conduct to lead and to use technology for the progress of mankind,
adapting themselves to changing technological environment with the highest ethical values as the
inner strength.‖
MISSION OF THE INSTITUTION
―To be recognized as an international leader in engineering education, research and the
application of knowledge to benefit society globally‖.
PROGRAM OUTCOMES (POs)
1. Engineering knowledge: Apply the knowledge of mathematics, science, engineering
fundamentals, and an engineering specialization to the solution of complex engineering
problems.
2. 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.
3. 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 environmental
considerations
4. 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.
5. Modern tool usage: 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.
6. 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.
7. 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.
8. Ethics: Apply ethical principles and commit to professional ethics and responsibilities and
norms of the engineering practice.
9. Individual and Team work: Function effectively as an individual, and as a member or leader
in diverse teams, and in multidisciplinary settings.
10. 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.
11. 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.
12. 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.

VISION OF THE DEPARTMENT


To be established as an International center in Education, Research and the application of
knowledge, to benefit society globally in the field of electrical and Electronics Engineering.

MISSION OF THE DEPARTMENT


To impact high quality technical education and develop Electrical and Electronics
M1 Engineers with a sound knowledge on basic concepts in all the areas concerning the
discipline.
To inculcate innovative research capabilities and exemplary professional conduct to lead
M2
and to use technology for the progress of our country
M3 Service with Good Leadership to meet society‘s needs.
PROGRAM EDUCATIONAL OBJECTIVES (PEOs)
Strengthen the knowledge in Electrical and Electronics Engineering to enable them
PEO 01
work for modern industries by promoting energy conservation and sustainability.
Enrich analytical, creative and critical logical reasoning skills to solve problems
PEO 02 faced by emerging domains of electrical and electronics engineering industries
worldwide.
Develop effective communication and inter-personal skills to work with enhanced
PEO 03 team spirit in multidisciplinary projects with a broader ethical, professional,
economical and social perspective.
Prepare the students either to establish start ups or to pursue higher education at
PEO 04
reputed institutions.

PROGRAM SPECIFIC OUTCOME (PSOs)


PSO 1 Professional Skills:
Apply the knowledge of Mathematics, Science and Engineering to solve real time
problems in the field of Power Electronics, Electrical Drives , Power Systems,
Control Systems and Instrumentation.
PSO 2 Research and Innovation:
Analyze and synthesize circuits by solving complex engineering problems to obtain
the optimal solution using effective software tools and hardware prototypes in the
field of robotics and renewable energy systems.
PSO 3 Product development:
Develop concepts and products by applying ideas of electrical domain into other
diversified engineering domains.

EE8691 EMBEDDED SYSTEMS LTPC


30 0 3
OBJECTIVES:
 To impart knowledge on the following Topics
 Building Blocks of Embedded System
 Various Embedded Development Strategies
 Bus Communication in processors, Input/output interfacing.
 Various processor scheduling algorithms.
 Basics of Real time operating system and example tutorials to discuss on one real time
operating system tool.
UNIT I INTRODUCTION TO EMBEDDED SYSTEMS 9
Introduction to Embedded Systems –Structural units in Embedded processor , selection of
processor & memory devices- DMA – Memory management methods- Timer and Counting
devices, Watchdog Timer, Real Time Clock, In circuit emulator, Target Hardware Debugging.
UNIT II EMBEDDED NETWORKING 9
Embedded Networking: Introduction, I/O Device Ports & Buses– Serial Bus communication
protocols RS232 standard – RS422 – RS 485 - CAN Bus -Serial Peripheral Interface (SPI) –
Inter Integrated Circuits (I2C) –need for device drivers.
UNIT III EMBEDDED FIRMWARE DEVELOPMENT ENVIRONMENT 9
Embedded Product Development Life Cycle- objectives, different phases of EDLC, Modelling of
EDLC; issues in Hardware-software Co-design, Data Flow Graph, state machine model
Sequential Program Model, concurrent Model, object oriented Model.
UNIT IV RTOS BASED EMBEDDED SYSTEM DESIGN 9
Introduction to basic concepts of RTOS- Task, process & threads, interrupt routines in RTOS,
Multiprocessing and Multitasking, Preemptive and non-preemptive scheduling, Task
communication shared memory, message passing-, Inter process Communication –
synchronization between processes-semaphores, Mailbox, pipes, priority inversion, priority
inheritance.
UNIT V EMBEDDED SYSTEM APPLICATION AND DEVELOPMENT 9
Case Study of Washing Machine- Automotive Application- Smart card System Application-
ATM machine –Digital camera
TOTAL : 45 PERIODS
OUTCOMES:
 Ability to understand and analyze Embedded systems.
 Ability to suggest an embedded system for a given application.
 Ability to operate various Embedded Development Strategies
 Ability to study about the bus Communication in processors.
 Ability to acquire knowledge on various processor scheduling algorithms.
 Ability to understand basics of Real time operating system.
TEXT BOOKS:
1. Peckol, ―Embedded system Design‖, John Wiley & Sons,2010
2. Lyla B Das,‖ Embedded Systems-An Integrated Approach‖, Pearson, 2013
3. Shibu. K.V, ―Introduction to Embedded Systems‖, 2e, Mc graw Hill, 2017.

REFERENCES
1. Raj Kamal, ‗Embedded System-Architecture, Programming, Design‘, Mc Graw Hill, 2013.
2. C.R.Sarma, ―Embedded Systems Engineering‖, University Press (India) Pvt. Ltd, 2013.
3. Tammy Noergaard, ―Embedded Systems Architecture‖, Elsevier, 2006.
4. Han-Way Huang, ―Embedded system Design Using C8051‖, Cengage Learning, 2009.
5. Rajib Mall ―Real-Time systems Theory and Practice‖ Pearson Education, 2007.
WEB RESOURCES
http://nptel.iitk.ac.in/courses/Webcourse-
contents/IIT%20Kharagpur/Embedded%20systems/New_index1.html
http://www.ecs.umass.edu/ece354/ECE354HomePageFiles/Labs_files/01bigPicture.pdf
http://patricklam.ca/ece155/lectures/
http://studentsblog100.blogspot.in/2013/02/embedded-systems-notes-anna-university.html

1. Aim &Objective of the subject Aim:


To understand the basic concepts and to develop the embedded system designing skills.
Objective:
 To introduce the building blocks of embedded systems.
 To make the students understand I/O interfacing and bus communication.
 To impart knowledge in various program modeling concepts.
 To educate the designing of RTOS based embedded systems.
 To make the students study the hardware and software designing of real time
applications.
COURSE OUTCOMES: After the course, the student should be able to:
CO COURSE OUTCOMES POs
Analyze the basic building process of Embedded Systems, Structural units
C314.1 in embedded processor and selection of processor and memory devices 1,2,4,5
depending upon the applications.
Classify the types of Input / Output device ports and buses and different
C314.2 1,2,3,5
interfaces for data transfer.
Model the Embedded System Product Development Cycle [EDLC] by
C314.3 using different techniques like state machine model, sequential program 1,2,3,4,5,6
model and concurrent model.
Analyze the basic concepts of Real Time Operating Systems and plan to
C314.4 scheduling of different task and compare the features of different types of 1,2,3,5,6
Real Time Operating systems.
Apply the knowledge of programming concepts of Embedded Systems for
C314.5 various applications like Washing Machines, Automotive and Smart Card 1,2,3,5,6,7
Applications.
EE6008 PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12 PSO1 PSO2 PSO3
C314.1 3 3 3 2 2 - - 3 2 - - 3 1 3 3

C314.2 3 3 3 2 2 - - 3 2 - - 3 1 3 2

C314.3 3 3 3 2 2 - - 3 2 - - 3 1 3 2

C314.4 3 3 3 2 2 - - 3 2 - - 3 1 3 2

C314.5 3 3 3 2 2 - - 3 2 - - 3 1 3 3

CO Book No
S.No Topics to be covered Delivery method
Statement [Page No]
Unit-I INTRODUCTION TO EMBEDDED SYSTEMS Target
Period:9
1 Introduction to Embedded Systems C314.1 T1[1-7] Chalk & board / PPT

2 The build process for embedded systems C314.1 Material Chalk & board / PPT

3 Structural units in Embedded processor C314.1 T1[8] Chalk & board / PPT

4 Selection of processor & memory devices C314.1 T1[113-118] Chalk & board / PPT

5 DMA C314.1 T[218] Chalk & board / PPT

6 Memory management methods C314.1 Material Chalk & board / PPT

7 Timer and Counting devices C314.1 T1[152] Chalk & board / PPT

8 Watchdog Timer, Real Time Clock C314.1 T1[157-158] Chalk & board / PPT
In circuit emulator, Target Hardware C314.1 T1[656] Chalk & board / PPT
9
Debugging
Total Periods : 9
Unit-II EMBEDDED NETWORKING Target
Period:9
10 Embedded Networking: Introduction C314.2 Material Chalk & board/ PPT
11 I/O Device C314.2 T1[130-131] Chalk & board / PPT
12 Ports & Buses C314.2 T1[131-136] Chalk & board / PPT
Serial Bus communication protocols -
13 C314.2 T1[137] Chalk & board / PPT
RS232 standard
14 RS422 – RS485 C314.2 T1[1 38] Chalk & board / PPT
15 CAN Bus C314.2 T1[161-163] Chalk & board / PPT
16 Serial Peripheral Interface (SPI) C314.2 T1[139-140] Chalk & board / PPT
17 Inter Integrated Circuits (I2 C) C314.2 T1[161] Chalk & board / PPT
18 Need for device drivers C314.2 T1[188] Chalk & board / PPT
Total Periods : 9
Assignment 1 Date of Submission :
Unit-III EMBEDDED FIRMWARE DEVELOPMENT ENVIRONMENT Target
Period:9
19 Embedded Product Development Life
C314.3 R1[622-625] Chalk & board / PPT
Cycle- objectives
20 Different phases of EDLC C314.3 R1[625-636] Chalk & board / PPT
21 Modeling of EDLC C314.3 R1[636-641] Chalk & board / PPT
22 Issues in Hardware-software Co-design C314.3 R1[205-206] Chalk & board / PPT
23 Data Flow Graph C314.3 R1[207-208] Chalk & board / PPT
24 State machine model C314.3 R1[208-211] Chalk & board / PPT
25 Sequential Program Model C314.3 R1[211] Chalk & board / PPT
26 Concurrent Model C314.3 R1[212-213] Chalk & board / PPT
27 Object oriented Model C314.3 R1[213-214] Chalk & board / PPT
Assignment - 2 Date of Submission : Total Periods : 9
Unit-IV RTOS BASED EMBEDDED SYSTEM DESIGN Target Period:9
28 Introduction to basic concepts of RTOS C314.4 T1[351-354] Chalk & board / PPT
Task, process & threads, Multiprocessing
29 C314.4 T1 [305-308] Chalk & board / PPT
and Multitasking
30 Interrupt routines in RTOS C314.4 T1 [366-370] Chalk & board / PPT
31 Preemptive and non-preemptive scheduling C314.4 T1 [392-397] Chalk & board / PPT
Task communication shared memory, T1 [326-
32 C314.4 Chalk & board / PPT
message passing 330,335]
Inter process Communication –
33 C314.4 T1 [330-332] Chalk & board / PPT
synchronization between processes
34 Semaphores, Mailbox, pipes C314.4 T1 [334-341] Chalk & board / PPT
35 Priority inversion, priority inheritance C314.4 T1 [329-330] Chalk & board / PPT
Comparison of Real time Operating
36 C314.4 T1 [453,496] Chalk & board / PPT
systems: Vx Works, чC/OSII, RT Linux
Assignment - 3 Date of Submission : Total Periods : 9
Unit-V EMBEDDED SYSTEM APPLICATION DEVELOPMENT Target Period:9
37 Introduction to washing machine and block C314.5 R1[83-85] Chalk & board / PPT
diagram
38 Design specification & schematic diagram C314.5 R1[83-85] Chalk & board / PPT
39 Software design of washing machine C314.5 R1[83-85] Chalk & board / PPT
40 Introduction to Automotive application C314.5 R1[85-89] Chalk & board / PPT
41 Classification of automotive embedded R1[85-89] Chalk & board / PPT
C314.5
systems
42 Advance control of automotive system & R1[85-89] Chalk & board / PPT
C314.5
car navigation systems
43 Introduction to smart card systems & block T1[593-604] Chalk & board / PPT
C314.5
diagram
44 ASIC for smart card systems C314.5 T1[593-604] Chalk & board / PPT
45 Embedded software for smart card systems C314.5 T1[593-604] Chalk & board / PPT
46 Proteus Simulation tool for Embedded Material /PPT
C314.5
Systems[ Content Beyond Syllabus]
Total Periods :10
UNIT I - INTRODUCTION TO EMBEDDED SYSTEMS
Introduction to Embedded Systems - Structural units in Embedded processor , selection of processor &
memory devices- DMA - Memory management methods- Timer and Counting devices, Watchdog,
Timer, Real Time Clock, In circuit emulator, Target Hardware Debugging.
PART - A
Q.No Questions BT Competence Course
Level Outcome
1. List the characteristics of an embedded system. 1 Remember CO1
2. List the components of Embedded system. 1 Remember CO1
3. Summarize the difference between Microprocessor and 2 Understand CO1
Microcontroller.
4. Classify the types of processors in Embedded System. 3 Apply CO1
5. Compare embedded system and non embedded system with 4 Analyze CO1
examples.
6. Explain the important considerations when selecting a 4 Analyze CO1
processor.
7. Define the terms (i) DMA (ii) Watch Dog Timer. 1 Remember CO1
8. Discuss about (i) Pipelining (ii) Software Timer. 2 Understand CO1
9. Define the terms (i) Real Time Clock (ii) Memory 1 Remember CO1
Management.
10. Develop the flowchart of build process for embedded systems. 6 Create CO1
11. How can an embedded system be illustrated? 3 Apply CO1
12. Explain the terms (i) Emulator (ii) Simulator. 5 Evaluate CO1
13. Define the terms (i) Compiler (ii) Cross compiler. 1 Remember CO1
14. Define Embedded system. 1 Remember CO1
15. List out the challenges in building in an embedded system. 2 Understand CO1
16. What are the functional requirements of embedded system? 1 Remember CO1
17. Give the purpose of Watch dog timer. 2 Understand CO1
18. Distinguish between CISC and RISC. 2 Understand CO1
19. Classify the methods of memory manager. 3 Evaluate CO1
20. Justify the Need of debugging and types of debugging. 6 Create CO1
PART - B
1. (i) Explain the possible steps are involved in build process of 4 Analyze CO1
embedded control systems. (7)
(ii) Discuss In-Circuit Emulator and Watch dog Timer. (6)

2. Describe the structural units of embedded processor. (13) 1 Remember CO1

3. Explain the following Embedded Hardware Units (i) Power 4 Analyze CO1
Source (ii) Clock Oscillator Unit (iii) Real Time Clock (iv)
Watch Dog Timer (v) Memory (vi) Input/ Output-Port, Bus and
Interface (vii) Interrupt Handler. (13)
4. What is meant by Memory? Explain the different types of 6 Create CO1
memory devices (i) ROM (ii) RAM. (13)
5. Explain the various form of memories present in an embedded 4 Analyze CO1
systems. (13)
6. How to select the processor based upon its architecture and 2 Understand CO1
applications. (13)
7. With a neat diagram explain the working of Direct Memory 1 Remember CO1
Access (DMA) with architecture and timing diagram. (13)
8. Discuss the following terms in memory management 1 Remember CO1
(i) Memory allocation (ii) Memory leak (iii) Methods of
Memory Management Strategy. (13)
9. Discuss in detail about the timer and counter devices in 3 Apply CO1
Embedded System . (13)
10. Explain the classification of embedded systems with examples. 2 Understand CO1
(13)
11. Describe the following terms (i) Embedded System versus 1 Remember CO1
Computing System (iii) Classification of Embedded System
(iv)Basic Model of Embedded System. (13)
12. Mention the necessary hardware units that must be present in 2 Understand CO1
the embedded systems. (13)
13. Discuss in detail about (i) In Circuit Emulator (ii) Target 3 Apply CO1
Hardware Debugging. (13)
14. In Embedded System how the microprocessor is distinguished 5 Evaluate CO1
with Micro Controller. (13)
PART - C
1. Explain (i) Building Process for Embedded System (ii) 2 Understand CO1
Structural unit of Embedded Processor including Hardware
and Software Unit. (15)
2. With a neat diagram discuss the following terms in Embedded 3 Apply CO1
Processor (i) DMA Architecture (ii) Watch dog Timer (iii)
Real Time Clock. (15)
3. (i) Analyze in detail with suitable diagram for (i) In Circuit 4 Analyze CO1
Emulator (ii) Target Hardware Debugging. (7)
(ii)Compare the Microprocessor with Micro Controller. (8)
4. Explain the following types of Embedded Software (i) 2 Understand CO1
Machine Code Format (ii) Assembly Language (iii) High
Level Language. (15)

UNIT II - EMBEDDED NETWORKING


Embedded Networking: Introduction, I/O Device Ports & Buses- Serial Bus communication protocols
- RS232 standard - RS422 - RS485 - CAN Bus -Serial Peripheral Interface (SPI) - Inter Integrated
Circuits (I2C) -need for device drivers.
PART - A
BT Course
Q.No Questions Competence
Level Outcome
1. Distinguish between Synchronous and Asynchronous 2 Understand CO4
communication.
2. Show the structure of UART. 3 Apply CO4
3. Define half duplex and full duplex communication. 1 Understand CO4
4. Mention few serial bus communication protocols. 2 Remember CO4
5. Classify I/O devices in embedded system. 1 Remember CO4
6. Differentiate between RS232 and RS485. 2 Understand CO4
2
7. Draw the write byte format and read byte format of I C 2 Understand CO4
8. Analyze the concept of RS232 standard. 4 Analyze CO4
9. Define synchronous communication. 1 Remember CO4
10. Define Bus and BAUD Rate 1 Remember CO4
11. Difference between RS422 and RS485. 2 Understand CO4
12. Justify the need for RS-485. 6 Create CO4
2
13. Explain about the limitations of I C. 5 Evaluate CO4
14. Compare the buses used in serial communication 4 Analyze CO4
15. Define CAN bus. 1 Remember CO4
16. Give the limitations of polling techniques. 2 Understand CO4
17. Define device driver 1 Remember CO4
18. List the features of CAN and SPI serial interfaces. 3 Apply CO4
19. How do the following indicate the start and end of a byte or 3 Apply CO4
2
data frames? (a) I C (b) CAN
20. Justify the need of device driver 6 Create CO4
PART - B
1. Illustrate the synchronous and asynchronous communications 3 Apply CO4
from serial devices. (13)
2. Describe the functions of a typical parallel I/O interface with a 1 Remember CO4
neat diagram. (13)
3. Discuss the types of serial port devices. (13) 2 Understand CO4

4. (i) Compare the advantages and disadvantages of data transfer CO4


using serial and parallel port/devices. (6) 4 Analyze
(ii) Compare the RS232C and RS485 serial interfaces. (7) 2 Understand
5. Elaborate the architecture of CAN with necessary sketches 1 Remember CO4
(13)
6. Describe one type of serial communication bus with its 1 Remember CO4
communication protocol. (13)
7. Explain the classification of IO devices. (13) 4 Analyze CO4

8. Explain the functionalities of RS 232 and RS 485 standard Analyze CO4


serial interface with neat diagram. (13) 4

9. Explain in detail about SPI communication protocol and its 1 Remember CO4
interfacing techniques. (13)
10. (i) Demonstrate the signal using a transfer of byte when using Apply CO4
the I2C bus and also the format of bits at the I 2C bus with 3 Analyze
diagram. (7) 4
(ii) Explain CAN bus. (6)
11. Summarize short notes on 2 Understand CO4
(i) RS 232 Standard
(ii) CAN bus
(iii)Inter Integrated Circuit Bus. (13)
12. (i)Explain how serial data communication is preferred in I 2C CO4
bus and CAN bus. (7) 2 Understand
(ii)What are the different I/O devices used in embedded 3 Apply
systems. Explain it. (6)
13. Explain with all necessary sketches to enable intra 6 Create CO4
communications among peripherals using I2C bus. (13)
14. Why we need device driver? How do you write a device 1 Remember CO4
driver? List the steps involved in writing a device driver. (13)
PART - C
1. (a)Explain various communication protocol (i)UART CO4
(ii) RS 232 (iii)RS 422 (iv)RS 485. (8) 2 Understand
(b) With suitable diagram explain the following Protocol
(i) CAN Bus Protocol (ii) SPI Protocol (iii)I2C Protocol. (7) 1 Remember
2. (a) What is meant by serial port ? Explain following types of CO4
serial ports with suitable diagram (i)Synchronous Serial Input
(ii) Synchronous Serial Output (iii) Asynchronous Serial 2 Understand
UART Inputs (iv) Asynchronous Serial UART Outputs. (8)
(b) Illustrate with suitable diagram and explain Synchronous
Communication and Asynchronous Communication. (7) 3 Apply
3. What is the need device driver? How do you write a device Remember CO4
1
driver?List the steps involved in writing a device driver. (15)
4. Discuss the following terms (i) SPI communication protocol CO4
(ii) Types of serial port devices (iii) Parallel I/O interface (iv) 2 Understand
Synchronous and asynchronous communications. (15)

UNIT III - EMBEDDED FIRMWARE DEVELOPMENT ENVIRONMENT


Embedded Product Development Life Cycle- objectives, different phases of EDLC, Modelling of
EDLC; issues in Hardware-software Co-design, Data Flow Graph, state machine model, Sequential
Program Model, concurrent Model, object oriented Model.
PART - A
BT Course
Q.No Questions Competence
Level Outcome
1. What is EDLC? List the different phases in EDLC. 1 Remember CO3
2. Discuss about model? Mention any 4-EDLC Modelling Understand CO3
2
approaches.
3. Explain the following types of model (i) Remember CO3
1
Protyping/Evolutionary Model (ii) Spiral Model.
4. Define the Linear or Water fall Model with suitable flow chart. 5 Evaluate CO3
5. Classify the 3 categories of product development. 3 Apply CO3
6. Mention different models used for the development of an Remember CO3
1
embedded system.
7. Define Product design phase and development phase 1 Remember CO3
8. Elucidate on data flow graph. 5 Evaluate CO3
9. What are the processes involved in Co-Design? 1 Remember CO3
10. Define the following models (i) Object Oriented Model (ii) Remember CO3
1
Concurrent Model.
11. Why is state model essential? 2 Understand CO3
12. Define deployment phase. 3 Apply CO3
13. What is state machine model? 4 Analyze CO3
14. What are the differences between data flow model and finite Understand CO3
2
state model?
15. Summarize the objective of EDLC. 5 Evaluate CO3
16. What are the advantages and disadvantages of Linear or Water Understand CO3
2
fall model?
17. Analyze the issues of hardware-software co-design 4 Analyze CO3
18. Discriminate What is meant by need? Mention the different Create CO3
6
types of product development.
19. Justify the quality of products. 6 Create CO3
20. Define the terms (i) Productivity (ii) Conceptualization. Apply CO3
3

PART - B
1. Illustrate with functional description about the different phases CO3
3 Apply
of Embedded Design Life Cycle Method. (13)
2. Mention the essential and objectives of EDLC. Discuss in CO3
2 Understand
detail about the different phases of EDLC. (13)
3. Explain the Object Oriented Model and explain the term CO3
2 Understand
(i) Communication (ii) Abstraction. (13)
4. Generalize the various computational models in embedded CO3
5 Evaluate
design. (13)
5. (i) Write detailed notes on software and hardware interface CO3
techniques. (8) 2 Understand
(ii)Explain about sequential program model for the
development of embedded platform. (5)
6. Compare and explain the various types of modelling of EDLC CO3
(i) Linear or Water Model (ii) Interactive or Incremental or 1 Remember
Functional EDLC Model (iii) Prototyping or Evolutionary
Model (iv) Spiral Model. (13)
7. Illustrate sequential flow model with example. (13) 3 Apply CO3
8. Explain the issues in Hardware and Software Co-Design. (13) 6 Create CO3
9. (i) Describe object oriented model with `example. (8) 1 Remember CO3
(ii) Differences between Data flow model and state machine
model. (5) 2 Understand
10. (i) Describe Data Flow Graph model with a suitable example. CO3
(7) 1 Remember
(ii) Describe State Machine model with suitable example. (6)
11. (i) Describe in detail explain the Waterfall or Linear model CO3
with suitable flowchart. (7) 1 Remember
ii) Describe in detail explain the Iterative/ Incremental or
Fountain Model with suitable flow chart. (6)
12. (i) Explain in detail the Prototyping Model with suitable CO3
diagram. And also write the advantages and disadvantages of Analyze
it. (8) 4
(ii) With suitable diagram explain the Spiral Model. (5)
13. With a suitable example, explain about the State Machine 6 CO3
Model of an Automatic Chocolate Vending Machine (ACVM). Create
(13)
14. Explain the Sequential Model Program for seat belt warning CO3
6 Create
system with suitable flow chart. (13)
PART - C
1. Illustrate the following type of computational state model (i) CO3
Data Flow Graph Type Model (ii) State Diagram Type Model
(iii) Concurrent Process Model (iv) Sequential Program Model 3 Apply
with suitable example for each. (15)

2. Analyze the following modeling of EDLC (i) Linear or Water CO3


fall Model (ii)Iterative or Incremented type of Model (iii) Proto 4 Analyze
typing or Evolutionary Model (iv) Spiral Model. (15)
3. Name and explain different phases of ELDC. Also discuss its CO3
2 Understand
modeling. (15)
4. With a neat diagram, explain about State Machine Model for CO3
6 Create
seat belt alarm system. (15)

UNIT IV - RTOS BASED EMBEDDED SYSTEM DESIGN


Introduction to basic concepts of RTOS- Task, process & threads, interrupt routines in RTOS,
Multiprocessing and Multitasking, Pre-emptive and non-pre-emptive scheduling, Task communication-
shared memory, message passing-, Inter process Communication - synchronization between processes-
semaphores, Mailbox, pipes, priority inversion, priority inheritance
PART - A

BT Course
Q.No Questions Competence
Level Outcome

1. Define process and threads. 1 Remember CO6


2. Define multithreading. 1 Remember CO6
3. Define real time operating system 1 Remember CO6
4. Point out the consequences of context switching. 4 Create CO6
5. What are the functions of RTOS? 1 Remember CO6
6. Explain multi-rate embedded system? Give 3 examples. 2 Understand CO6
7. Compare the release time and deadline. 2 Understand CO6
8. Elucidate semaphore with a syntax. 5 Evaluate CO6
9. Compare preemptive and and non preemptive scheduling. 2 Understand CO5
10. Classify the three basic scheduling states in OS. 3 Apply CO5
11. Define scheduling policy. 1 Remember CO5
12. List any four applications of Micro Controller Operating System Understand CO6
2
MUCOS
13. Compare user threads and kernel threads 2 Understand CO6
14. Define task and task state. 1 Remember CO6
15. How can a scheduling process be explained in real time? 2 Understand CO5
16. Demonstrate the interrupt latency. 3 Apply CO6
17. Describe about the concept of dead lock situation 1 Remember CO6
18. Examine the various performance issues in RTOS based Apply CO6
3
embedded system design.
19. Discuss the concept of message passing. 2 Understand CO6
20. Define shared data problem 1 Remember CO6
PART - B
1. Describe the services of UNIX based real time operating systems. Remember CO6
Compare its features with window based real time operating 1
systems. (13)
2. Discuss about the contemporary real time operating systems Understand CO6
2
VxWorks, Linux and RT Linux. (13)
3. (i) Summarize Pre-emptive and Non-pre-emptive multitasking. (7) 6 Create CO5
(ii) Describe the three alternative systems in three RTOS for
responding a hardware source call with the diagram. (6) 1 Remember CO6
4. (i) List out the goals of operating system services. (5) Remember CO6
1
(ii) Generalize the scheduler in which RTOS insert into the list and
the ready task for sequential execution in a co-operative round Create CO5
6
robin model. (8)
5. With an example describe rate monotonic scheduling. (13) 4 Analyse CO5
6. (i)Discuss critical section service by a pre-emptive scheduler. (7) 2 Understand CO5
(ii) Explain the features of Vx Works. (6)
4 Analyse CO6
7. Explain in detail the features and scheduling algorithm used in CO6
µC/OS-II RTOS. (13) 4 Analyze
8. Show the appropriate diagrams explain multiple tasks and multiple Apply CO6
3
processes. (13)
9. Generalize the various scheduling policies with example. (13) 4 Analyse CO5
10. Explain in detail about the Inter process Communication and Understand CO6
2
Context Switching. (13)
11. Explain how the interrupt routines are handled by RTOS and 5 Evaluate CO6
illustrate the features of µC/OS-II RTOS. (13)
12. (i) Summarize the system level and task service functions of CO6
µc/OS. (6) 4 Analyse
(ii) Draw the Microkernel Architecture and explain the basis
functions of RTOS kernel. (7)
13. Write briefly on the special features and commands of VxWorks as 1 Remember CO6
a special RTOS. (13)
14. Explain the following CO6
(i) Mailbox and message for interprocess communication. (8) 3 Apply
(ii)Pipe and queue for multitasking (5)
PART - C
1. Explain task, process and thread with their types and examples CO6
2
which aids the real time system. (15) Understand
2. (i)What is meant by interrupt? And explain following interrupt CO6
handling mechanism (i) Polling (ii) Wait States (iii) Interrupt. (8) 1 Remember
(ii) Define the term Multitasking. How the multitasking is
distinguished with multiprocessing. (7)
3. Explain the terminologies (i) Semaphores (ii) Mail box (iii) Pipes CO6
(iv) Shared memory RTOS. (15) 1 Remember
4. Compare the following Real time Operating systems (i) Vx Works Create CO6
6
(ii) µC/OS-II (iii) RT Linux. (15)

UNIT V - EMBEDDED SYSTEM APPLICATION DEVELOPMENT


Case Study of Washing Machine- Automotive Application- Smart card System Application-ATM
Machines-Digital Camera
PART - A
BT Course
Q.No Questions Competence
Level Outcome
What is meant by smart card? What are the events involved in Remember CO2
1. 1
smart card application.
2. What are the basic requirements while designing an embedded Create CO2
6
system
3. List some evident examples of Real time embedded application. 1 Remember CO2
4. Show the architectural hardware units needed in an automotive Apply CO2
3
applications.
5. What is the hardware units needed to design smartcard? 5 Evaluate CO2
6. Integrate the various types of memory units that must be present in Understand CO2
2
smartcard, adaptive cruise control and washing machine.
7. Show the architectural hardware units needed in washing machine. 3 Apply CO2
8. Draw the system components in the smart card. 5 Evaluate CO2
9. List some applications of embedded system. 2 Understand CO2
10. What is the hardware units needed to design adaptive cruise Understand CO2
2
control?
11. Points out the various inter process communication methods Analyse CO2
4
required in implementing the washing machine.
12. What is the software units needed to design Automotive Evaluate CO2
5
application?
13. What is the software units needed to design washing machine? 2 Understand CO2
14. What is the software units needed to design smartcard? 1 Remember CO2
15. Justify the need for watchdog timer 6 Create CO2
16. Analyze the major function of timer device in an Automotive Analyse CO2
4
application.
17. Define the tasks for an adaptive cruise control. 1 Remember CO2
18. Define the tasks for smartcard. 1 Remember CO2
19. Recommend the tasks for washing machine. 6 Create CO2
20. Explain the various inter process communication methods required Analyse CO2
4
in implementing the smartcard

PART - B
1. Elucidate the selection of processor and memory for any one Evaluate CO2
5
embedded applications with suitable diagram in detail. (13)
2. Design architectural hardware and software units needed in smart Create CO2
6
card. (13)
3. Tabulate hardware units needed in each of the systems: Smart Analyse CO2
4
card, Automotive applications, Washing machine. (13)
4. Discuss the case study an adaptive crusie control with class Create CO2
6
diagram (13)
5. List various types of memories and the application of each in the Analyse CO2
following systems: Automotive applications, Smart card, Washing 4
machine. (13)
6. Show and explain basic system of an Automative applications. (13) 6 Create CO2
7. Apply suitable hardware and software to develop the embedded Create CO2
6
system for a smart card. (13)
8. With suitable diagram explain in detail about the concept of Smart Create CO2
6
Card System Application. (13)
9. With suitable Hardware and Software explain the case study for an Create CO2
6
High end CAR using Embedded System. (13)
10. Identify the tasks for an High end CAR. Explain the various Remember CO2
interprocess communication methods required in implementing the 1
application. (13)
11. With suitable diagram explain in detail about the concept of Understand CO2
2
washing machine application. (13)
12. Elucidate the selection of processor and memory for any one Analyse CO2
4
embedded application with suitable diagram in details. (13)
13. With suitable hardware and software explain the Digital Camera of Create CO2
6
the automotive embedded application domain. (13)
14. Discuss case study an ambulance vehicle with class diagram. (13) 6 Create CO2
PART - C
1. Create the block diagram for the case study of Embedded System Create CO2
for an (i) Adaptive Cruise Control Systems in a car (ii) Smart 6
Card. (15)
2. With suitable Hardware and Software explain the case study for an Create CO2
6
ATM Machine using Embedded System. (15)
3. With suitable Hardware and Software explain the case study for a Create CO2
6
Washing Machine using Embedded System. (15)
4. Design and discuss an embedded system solution for a typical Create CO2
automotive system. Your answer must include design and
development of necessary hard wares and software for an 6
automotive system to incorporate efficient fuel management
systems, vehicle performance monitoring systems, vehicle
tracking and navigation systems. (15)
UNIT I INTRODUCTION TO EMBEDDED SYSTEMS

1. Define Embedded System. What are the components of embedded system?


An Embedded system is one that has computer hardware with software embedded in it as one of its most
important component.
The three main components of an embedded system are
1. Hardware
2. Main application software
3. RTOS
OR
An embedded system employs a combination of hardware & software (a "computational engine") to
perform a specific function; is part of a larger system that may not be a "computer"; works in a reactive
and time-constrained environment

2. In what ways CISC and RISC processors differ?


CISC RISC
1. It provides number of addressing modes It provides very few number of addressing modes
2. It has a micro programmed unit with a It has a hard wired unit without a control memory
control memory
3. An easy compiler design Complex compiler design
4. Provides precise and intensive calculations Provides precise and intensive calculations faster
slower than a RISC than a RISC
3. Define system on chip (SOC) with an example.
Embedded systems are being designed on a single silicon chip called system on chip. SOC is a new
design innovation for embedded system
Ex. Mobile phone.
4. Give any two uses of VLSI designed circuits
A VLSI chip can embed IPs for the specific application besides the ASIP or a GPP core. A system on a
VLSI chip that has all of needed analog as well as digital circuits.
Eg. Mobile phone.
5. List the important considerations when selecting a processor.
 Instruction set
 Maximum bits in an operand
 Clock frequency
 Processor ability
6. What are the types of embedded system?
 Small scale embedded systems
 Medium scale embedded systems
 Sophisticated embedded systems
7. Classify the processors in embedded system?
a). General purpose processor
 Microprocessor
 Microcontroller
 Embedded processor
 Digital signal processor
 Media processor
b).Application specific system processor
c). Multiprocessor system using GPP and ASSP GPP core or ASIP core integrated into either an ASIC or
a VLSI circuit or an FPGA core integrated with processor unit in a VLSI chip.
8. What are the important embedded processor chips?
 ARM 7 and ARM 9
 i 960
 AMD 29050
9. Name some DSP used in embedded systems?
 TMS320Cxx
 SHARC
 5600xx
10. Name some of the hardware parts of embedded systems?
 Power source
 Clock oscillator circuit
 Timers
 Memory units
 DAC and ADC
 LCD and LED displays
 Keyboard/Keypad
11. What are the various types of memory in embedded systems?
 RAM (internal External)
 ROM/PROM/EEPROM/Flash
 Cache memory
12. What are the points to be considered while connecting power supply rails with embedded
system?
 A processor may have more than two pins of Vdd and Vss
 Supply should separately power the external I/O driving ports, timers, and clock
 From the supply there should be separate interconnections for pairs of Vdd and Vss pins analog
ground analog reference and analog input voltage lines.
13. What is watch dog timer?
Watch dog timer is a timing device that resets after a predefined timeout.
14. What are the two essential units of a processor on a embedded system?
 Program Flow control Unit
 Execution Unit
15. What does the execution unit of a processor in an embedded system do?
The EU includes the ALU and also the circuits that execute instructions for a program control task. The
EU has circuits that implement the instructions pertaining to data transfer operations and data conversion
from one form to another.
16. Give examples for general purpose processor.
 Microcontroller
 Microprocessor
17. Define microprocessor.
A microprocessor is a single VLSI chip that has a CPU and may also have some other units for example
floating point processing arithmetic unit pipelining and super scaling units for faster processing of
instruction.
18. Define Real Time Clock (RTC)?
Real time clock is a clock which once the system stats does not stop and cant be reset and its
count value cannot be reloaded.
19. Define Time-out or Time Overflow?
A state in which the number of count inputs exceeded the last acquirable value and on reaching
that state, an interrupt can be generated.
20. Why do we need at least one timer in an ES?
The embedded system needs at least on timer device. It is used as a system clock.
21. What is a PIC?
PIC refers to Programmable Intelligent Computer. PIC is microprocessor lies inside a personal
computer but significantly simpler, smaller and cheaper. It can be used for operating relays,
measuring sensors etc.
22. What are the main elements inside a PIC?
 Processing engine,
 Program memory,
 Data memory and
 Input / Output.
23. What are the types of program memory in a PIC?
 Read-only,
 EPROM and
 EEPROM,
 Flash
24. Define a System.
A way of doing one or more tasks according to a program.
25. What are the typical characteristics of an embedded system? Typical characteristics:
Perform a single or tightly knit set of functions; Increasingly high-performance & real-time
constrained; Power, cost and reliability are often important attributes That influence design;
Application specific processor design can be a significant component of some embedded systems.
Other characteristics:
 Application specific
 Digital signal processing in ECS
 Reactive
 Real-time
 Distributed
26. What are the advantages and disadvantages of embedded system?
Advantages: Customization yields lower area, power, cost.
Disadvantages: Higher HW/software development overhead design, compilers, debuggers, etc., may
result in delayed time to market.
27. What are the applications of an embedded system? Embedded Systems: Applications:
 Consumer electronics, e.g., cameras, camcorders, etc.,
 Consumer products, e.g., washers, microwave ovens, etc.,
 Automobiles (anti-lock braking, engine control, etc.,)
 Industrial process controllers & avionics/defense applications
 Computer/Communication products, e.g., printers, FAX machines, etc.,
 Emerging multimedia applications & consumer electronics
28. What are the complicating factors in embedded design?
Complicating factors in the design of embedded systems
 Many of the subtasks in design are intertwined.
 Allocation depends on the partitioning, and scheduling presumes a certain allocation.
 Predicting the time for implementing the modules in hardware or software is not very
easy, particularly for tasks that have not been performed before.
29. What are the real-time requirements of an embedded system?

Hard-real time systems: where there is a high penalty for missing a deadline e.g., control
systems for aircraft/space probes/nuclear reactors; refresh rates for video, or DRAM. Soft real
time systems: where there is a steadily increasing penalty if a deadline is missed.

e.g., laser printer: rated by pages-per-minute, but can take differing times to print a page
(depending on the \"complexity\" of the page) without harming the machine or the customer.
30. What are the functional requirements of embedded system?
 Data Collection
 Sensor requirements
 Signal conditioning
 Alarm monitoring
 Direct Digital Control
 Actuators
 Man-Machine Interaction informs the operator of the current state of the controlled object
assists the operator in controlling the system.
31. What are the main components of an embedded system? Three main components of
embedded systems:

1. The Hardware
2. Application Software
3. RTOS
32. Define embedded microcontroller.

An embedded microcontroller is particularly suited for embedded applications to perform


dedicated task or operation.
Example: 68HC11xx, 8051, PIC, 16F877, etc.,
33. Explain digital signal processing in embedded system continued digitization of signals
increasing the role of DSP in ES.
• Signals are represented digitally as sequence of "samples"
• ADC‘s are moving closer to signals
34. What are the various classifications of embedded systems?
a. Small scale embedded systems
b. Medium scale embedded systems
c. Sophisticated embedded systems
35. What are the two essential units of a processor on an embedded system?
a. Program flow control unit (CU)
b. Execution unit (EU)
36. What does the execution unit of a processor in an embedded system do?
The execution unit implements data transfer and data conversion. It includes ALU and
circuits that execute instruction for jump, interrupt, etc.,
37. Give examples for general purpose processor.
 Microprocessor
 Microcontroller
 Embedded processor
 Digital Signal Processor
 Media Processor
38. Define microprocessor.
A microprocessor fetches and processes the set of general-purpose instructions such as data
transfer, ALU operations, stack operations, I/O operations and other program control
operations.
39. When is Application Specific System processors (ASSPs) used in an embedded system?
An ASSP is dedicated to real-time video processing applications such as video conferencing,
video compression and decompression systems. It is used as an additional processing unit for
running application specific tasks in the place of processing using embeddedsoftware.

40. What is the need for LCD and LED displays?


Uses of LCD and LED display:
a. It is used for displaying and messaging.
b. Example: Traffic light status indicator, remote controls,signals, etc.,
c. The system must provide necessary circuit and software for the output to LCD
controller.
41. Define ROM image.
ROM image in a system memory consists of:
Boot-up program, stack address pointer, program counter address pointer, application tasks,
ISRs, input data, RTOS and vector addresses.
Bytes at each address must be defined to create ROM image.
42. Define device driver.
A device driver is software for controlling, reading, sending a byte of stream of bytes from/to the
device.
43. Give some examples :
Small scale embedded systems : 68HC05, PIC 16F8x, 8051.
Medium scale embedded systems : 80251, 80x86, 80196,68HC11xx .
Sophisticated embedded systems : ARM7, Power PC, Intel 80960.
44. What are the various embedded system requirements Types of requirements imposed by
embedded applications:
Functional requirements
Temporal requirements
Dependability requirements
45. What are the temporal requirements?
Tasks may have deadlines
Minimal latency jitter
Minimal error detection latency
Timing requirements due to tight software control loops
Human interface requirements.
46. Give the classification of embedded system.
Multi-dimensional classifications
Hard versus software systems
47. Define FPGAs
Field Programmable Gate Arrays (FPGAs) can be used to implement just about any hardware design.
One common use is to prototype a lump of hardware that will eventually find its way into an ASIC.
48. Define PLDs
At the low end of the spectrum are the original Programmable Logic Devices (PLDs). These were the
first chips that could be used to implement a flexible digital logic design in hardware. In other words, you
could remove a couple of the 7400-series TTL parts (ANDs, ORs, and NOTs) from your board and
replace them with a single PLD. Other names you might encounter for this class of device are
Programmable Logic Array (PLA), Programmable Array Logic (PAL), and Generic Array Logic (GAL).
48. Define bus.
Buses: The exchange of information. Information is transferred between units of the microcomputer
by collections of conductors called buses. There will be one conductor for each bit of information to be
passed, e.g., 16 lines for a 16 bit address bus. There will be address, control, and data buses
49. What are the classifications of I/O devices?
• Synchronous serial input and output
• Asynchronous serial UART input and output
• Parallel one bit input and output
• Parallel port input and output
50. Give some examples for serial input I/O devices.
Audio input, video input, dial tone, transceiver input, scanner, serial IO bus input, etc.,
51. What do you meant by bus arbitration?
Bus Arbitration
Most processors use special control lines for bus arbitration, ie, controlling the use of the address and
data bus,
 An input which the DMAC uses to request the bus
 An output(s) indicating the bus status
 An output indicating acceptance of the DMAC\'s bus request
• What are the two characteristics of synchronous communication?
• Bytes/frames maintain constant phase difference and should not be sent at random time intervals.
No handshaking signals are provided during the communication.
• Clock pulse is required to transmit a byte or frame serially. Clock rate information is transmitted
by the transmitter.
53.What do you mean by asynchronous communication?
The most basic way of sharing data is by copying the data in question to each server. This will only
work if the data is changed infrequently and always by someone with administrative access to all the
servers in the cluster.
54.What are the characteristics of asynchronous communication?
• Variable bit rate - need not maintain constant phase difference
• Handshaking method is used
• Transmitter need not transmit clock information along with data bit stream
55.What are the three ways of communication for a device?
• Separate clock pulse along with data bits
• Data bits modulated with clock information
• Embedded clock information with data bits before transmitting
56.Expand a) SPI b) SCI
SPI - SERIAL PERIPHERAL INTERFACE
SCI - SERIAL COMMUNICATION INTERFACE
57.What are the features of SPI?
• SPI has programmable clock rates
• Full-duplex mode
• Crystal clock frequency is 8MHz
• Open drain or totempole output from master to slave
58. Define software timer.
A software timer is software that executes the increase/decrease count value on an interrupt from
timer or RTC. Software timer is used as virtual timing device.
59.What are the forms of timer?
• Hardware interrupt timer
• Software timer
• User software controlled hardware timer
• RTOS controlled hardware timer
• UP/DOWN count action timer
• One-shot timer (No reload after overflow and finished states)
60. Define RTC
RTC Stands for Real Time Systems. Once the system starts, do not stop/reset and the count value
cannot be reloaded.
61. What is I2C?
Inter- Integrated Circuit (2-wire/line protocol) which offers synchronous communication. Standard
speed: 100Kbps and High speed: 400 Kbps, the bits in I2C corresponding are SDA - Serial Data Line and
SCL - Serial Clock line.
62.What is a CAN bus? Where is it used?
CAN stands for Controller Area Network. Serial line, bi-directional bus used in automobiles.
Operates at the rate of 1Mbps.
63.What is USB? What are the features of USB protocol?
USB - Universal Serial Bus Operating speed - upto 12 Mbps in fast mode and 1.5Mbps in low-speed
mode.
The features of the USB protocol are:
A device can be attached, configured and used, reset, reconfigured and used, detached and reattached,
share the bandwidth with other devices.
64.What are the four types of data transfer used in USB?
• Controlled transfer
• Bulk transfer
• Interrupt driven data transfer
• Iso-synchronous transfer
65. Mention some advanced bus standard protocols;
• GMII (Gigabit Ethernet MAC Interchange Interface)
• XGMI (10 Gigabit Ethernet MAC Interchange Interface)
• CSIX-1 6.6 Gbps
• Rapid IO interconnect specification v1.1 at 8 Gbps
UNIT II EMBEDDED NETWORKING

1. Differentiate synchronous communication and iso-synchronous communication.


Synchronous communication
When a byte or a frame of the data is received or transmitted at constant time intervals with
uniform phase difference, the communication is called synchronous communication.
Iso-synchronous communication
Iso -synchronous communication is a special case when the maximum time interval can be
varied.
2. What are the two characteristics of synchronous communication?
Bytes maintain a constant phase difference
The clock is not always implicit to the synchronous data receiver.
3. What are the three ways of communication for a device?
 Iso-synchronous communication
 synchronous communication
 Asynchronous communication
4. Expand a) SPI b) SCI
 SPI—serial Peripheral Interface
 SCI—Serial Communication Interface
5. Define software timer.
This is software that executes and increases or decreases a count variable on an interrupt from a
timer output or form a real time clock interrupt. A software timer can also generate interrupt on
overflow of count value or on finishing value of the count variable.
6.What is I2C?
I2C is a serial bus for interconnecting ICs .It has a start bit and a stop bit like an UART. It has
seven fields for start,7 bit address, defining a read or a write, defining byte as acknowledging
byte, data byte, NACK and end.
7. What are the bits in I2C corresponding to?
It has seven fields for start,7 bit address, defining a read or a write, defining byte as
acknowledging byte, data byte, NACK and end.
8. What is a CAN bus? Where is it used?
CAN is a serial bus for interconnecting a central Control network. It is mostly used in
automobiles. It has fields for bus arbitration bits, control bits for address and data length data
bits, CRC check bits, acknowledgement bits and ending bits.
9. What is USB? Where is it used?
USB is a serial bus for interconnecting a system. It attaches and detaches a device from the
network. It uses a root hub. Nodes containing the devices can be organized like a tree structure. It
is mostly used in networking the IO devices like scanner in a computer system.
10. What are the features of the USB protocol?
A device can be attached, configured and used, reset, reconfigured and used, share the bandwidth
with other devices, detached and reattached.
11. Explain briefly about PCI and PCI/X buses.
PCI and PCI/X buses are independent from the IBM architecture .PCI/X is an extension of PCI
and support 64/100 MHZ transfers. Lately, new versions have been introduced for the PCI bus
architecture.
12. Why are SPCI parallel buses important?
SPCI serial buses are important for distributed devices. The latest high speed sophisticated
systems use new sophisticated buses.
13. What is meant by UART?
 UART stands for universal Asynchronous Receiver/Transmitter.
 UART is a hardware component for translating the data between parallel and serial
interfaces.
 UART does convert bytes of data to and from asynchronous start stop bit.
 UART is normally used in MODEM.
14. What does UART contain?
 A clock generator.
 Input and Output start Registers
 Buffers.
 Transmitter/Receiver control.
15. What is meant by HDLC?
 HDLC stands for ―High Level Data Link Control‖.
 HDLC is a bit oriented protocol.
 HDLC is a synchronous data Link layer.
16. Name the HDLC’s frame structure?

17.List out the states of timer?


There are eleven states as follows
 Reset state
 Idle state
 Present state
 Over flow state
 Over run state
 Running state
 Reset enabled state / disabled
 Finished state
 Load enabled / disabled
 Auto-reload enabled / disabled
 Service routine execution enabled / disabled
18. Name some control bit of timer?
 Timer Enable
 Timer start
 Up count Enable
 Timer Interrupt Enable
19. What is meant by status flag?
Status flag is the hardware signal to be set when the timer reaches zeros.
20.List out some applications of timer devices?
 Real Time clock
 Watchdog timer
 Input pulse counting
 TDM
 Scheduling of various tasks
21.State the special features on I2C?
 Low cost
 Easy implementation
 Moderate speed (upto 100 kbps).
22.What are disadvantages of I2C?
 Slave hardware does not provide much support
 Open collector drivers at the master leads to be confused
23.What are the two standards of USB?
 USB 1.1
 USB 2.0
24.Draw the data frame format of CAN?

25. What is the need of Advanced Serial High Speed Buses?


If the speed in the rate of „Gigabits per second‟ then there is a need of Advanced Serial High
Speed Buses.
26.What is meant by ISA?
 ISA stands for Industry standard Architecture.
 Used for connecting devices following IO addresses and interrupts vectors as per IBM pc
architecture.
27.What is meant by PCI-X?
 PCI X offers more speed over PCI.
 30 times more speed than PCI.
28.Define CPCI?
 CPCI stands for Compact peripheral component Interfaces.
 CPCI is to be connected via a PCI.
 CPCI is used in the areas of Telecommunication Instrumentation abd data
communication applications.
29.Define half-duplex communication.
Transmission occurs in both the direction, but not simultaneously.
30. Define full duplex communication.
Transmission occurs in both the direction, simultaneously

UNIT III – EMBEDDED FIRMWARE DEVELOPMENT ENVIRONMENT


1. What are the states of a process?
 Running
 Ready
 Waiting
2. What is the function in steady state?
Processes which are ready to run but are not currently using the processor are in the 'ready' state.
3. Define scheduling.
This is defined as a process of selection which says that a process has the right to use the
processor at given time.
4. What is scheduling policy?
It says the way in which processes are chosen to get promotion from ready state to running state.
5. Define hyper period?
It refers the duration of time considered and also it is the least common multiple of all the
process.
6. What is schedulability?
It indicates any execution schedule is there for a collection of process in the system's
functionality.
7. What are the types of scheduling?
1. Time division multiple access scheduling.
2. Round robin scheduling.
8. What is cyclostatic scheduling?
In this type of scheduling, interval is the length of hyper period 'H'. For this interval, a cyclostatic
schedule is separated into equal sized time slots.
9. Define round robin scheduling?
This type of scheduling also employs the hyperperiod as an interval. The processes are run in the
given order.
10. What is scheduling overhead?
It is defined as time of execution needed to select the next execution process.
11. What is meant by context switching?
The actual process of changing from one task to another is called a context switch.
12. Define priority scheduling?
A simple scheduler maintains a priority queue of processes that are in the runnable state.
13. What is rate monotonic scheduling?
Rate monotonic scheduling is an approach that is used to assign task priority for a preemptive
system.
14. What is critical instant?
It is the situation in which the process or task posses‟ highest response time.
15. What is critical instant analysis?
It is used to know about the schedule of a system. Its says that based on the periods given, the
priorities to the processes has to be assigned.
16. Define earliest deadline first scheduling?
This type of scheduling is another task priority policy that uses the nearest deadline as the
criterion for assigning the task priority.
16. What is the need for quality assurance (QA)?
The quality assurance (QA) process is vital for the delivery of a satisfactory system.
17. What are the observations about quality management based on ISO 9000?
Process is crucial, Documentation is important & Communication is important
18. What are the five levels of maturity in capability maturity model?
Initial, Repeatable, Defined, Managed and Optimizing are the five levels of maturity in CMM.
19. What is a design review?
Design review is a simple, low-cost way to catch bugs early in the design process. A design
review is simply a meeting in which team members discuss a design, reviewing how a
component of the system works.
20. Give the members of the design review team.
Designers, Review leader, Review scribe and Review audience are the members of the design
review team.
21. What is the role of a review scribe in a design review?
The review scribe records the minutes of the meeting so that designers and others know which
problems need to be fixed.
22. Give the role of the review leader in a design review team.
The review leader coordinates the pre-meeting activities, the design review itself, and the post-
meeting follow-up. During the meeting, the leader is responsible for ensuring that the meeting
runs smoothly.
23. What are the potential problems to be looked for by the audience of a design review
meeting?
Is the design team‘s view of the component‘s specification consistent with the overall system
specification, or has the team misinterpreted something? Is the interface specification correct?
Does the component‘s internal architecture work well?
Are there coding errors in the component?
Is the testing strategy adequate?
24. What is a design flow?
A design flow is a sequence of steps to be followed during a design.
25. Define successive refinement design methodology.
In successive refinement design methodology, the system is built several times. A first system is
used as a rough prototype, and successive models of the system are further refined. This
methodology makes sense when you are relatively unfamiliar with the application domain for
which you are building the system
26. What are the phases in water fall development model?
The waterfall development model consists of five major phases; they are requirements analysis,
architecture, coding, testing and maintenance.
27. What are the elements of concurrent engineering?
Cross-functional teams, Concurrent product realization, Incremental information sharing and use,
Integrated project management & Early and continual supplier involvement.
28. What are requirements and specification?
Requirements are informal descriptions of what the customer wants, while specifications are
more detailed, precise, and consistent descriptions of the system that can be used to create the
architecture.
29. What are the several tests met by a good set of requirements?
The several tests that should be met by a good set of requirements are Correctness,
Unambiguousness, Completeness, Verifiability, Consistency, Modifiability and Traceability.
30. What is IDC mechanism?
It is necessary for a 'process to get communicate with other process' in order to attain a specific
application in an operating system.
31. What are the two types of communication?
1. Blocking communication
2. Non blocking communication
32. Give the limitations of polling technique.
The polling technique, however, has limitations.
• It is wasteful of the processors time, as it needlessly checks the status of all devices all the time.
• It is inherently slow, as it checks the status of all I/O devices before it comes back to check any
given one again.
• When fast devices are connected to a system, polling may simply not be fast enough to satisfy the
minimum service requirements. Priority of the device is determined
33. What are the advantages of Assembly language?
It gives the precise control of the processor internal devices and full use of processor
specific features in its instruction sets and addressing modes.
The machine codes are compact, which requires only small memory.
Device drivers need only few assembly instructions.
34. What are advantages of high level languages?
o Data type declaration
 Type checking
 Control structures
 Probability of non-processor specific codes
 Define In -line assembly
 Inserting an assembly code in between is said to be in-line assembly.
35. What is the use of MACRO function?
A macro function executes a named small collection of codes, with the values passed by
the calling function through its arguments. It has constant saving and retrieving overheads.
36. What is the use of interrupt service routines or device drivers?
It is used for the declaration of functions and datatypes, typedef and executes named set
of codes. ISR must be small (short), reentrant or must have solution for shared data problem.
37. What are the datatypes available in C language?
Char - 8 bit; byte - 8 bit; short - 16 bit; unsigned short - 16 bit; unsigned int - 32 bit; int
32 bit; long double - 64 bit; float - 32 bit; double - 64
38. Define stack.
A structure with a series of elements which uses LIFO mode.
An element can be pushed only at the top and only one pointer is used for POP.
Used when an element is not accessible through pointer and index, but only through
LIFO.
39. Define Exception handling
Exceptions are used to report error conditions. Exception handling is built upon three
keywords: 1.try 2.catch 3.throw
40. What is a Preprocessor Directive?
A preprocessor directive starts with ‗#‘ sign. The following are the types of preprocessor
directives:
1. Preprocessor global variables
2. Preprocessor constants y
41.What is Multiple Inheritance?
Inheritance is the process by which objects of one class acquire the properties of objects
of another class. In OOP, the concept of inheritance provides the idea of reusability.
UNIT 1V – RTOS BASED EMBEDDED SYSTEM DEVELOPMENT

1. Name the important terms of RTOS?


 Task State Scheduler
 Shared data Reentrancy
2. Define process.
Process is a computational unit that processes on a CPU under the control of a scheduling kernel
of an OS. It has a process structure, called Process control block. A process defines a
sequentially executing program and its state.
3. What is meant by PCB?
Process Control Block‟ is abbreviated as PCB.PCB is a data structure which contains all the
information and components regarding with the process.
4. Draw the process state transitions?

5. Define task and Task state.


A task is a set of computations or actions that processes on a CPU under the control of a
scheduling kernel. It also has a process control structure called a task control block that saves at
the memory. It has a unique ID. It has states in the system as follows: idle, ready, running,
blocked and finished.
6. Define Task Control Block (TCB)
A memory block that holds information of program counter, memory map, the signal
dispatch table, signal mask, task ID, CPU state and a kernel stack.
7. What is a thread?
Thread is a concept in Java and UNIX and it is a light weight sub process or process in an
application program. It is controlled by the OS kernel. It has a process structure, called thread
stack, at the memory. It has a unique ID .It have states in the system as follows: stating, running,
blocked and finished.
8. Define Inter process communication.
An output from one task passed to another task through the scheduler and use of signals,
exception, semaphore, queues, mailbox, pipes, sockets, and RPC.

9. What is shared data problem?


If a variable is used in two different processes and another task if interrupts before the
operation on that data is completed then the value of the variable may differ from the one
expected if the earlier operation had been completed .This ids known as shared data problem.
10. Define Semaphore.
Semaphore provides a mechanism to let a task wait till another finishes. It is a way of
synchronizing concurrent processing operations. When a semaphore is taken by a task then that
task has access to the necessary resources. When given the resources unlock. Semaphore can be
used as an event flag or as a resource key.
11. Define Mutex.
A phenomenon for solving the shared data problem is known as semaphore. Mutex is a
semaphore that gives at an instance two tasks mutually exclusive access to resources.
12. Differentiate counting semaphore and binary semaphore.
Binary semaphore
When the value of binary semaphore is one it is assumed that no task has taken it and that
it has been released. When the value is 0 it is assumed that it has been taken.
Counting semaphore
Counting semaphore is a semaphore which can be taken and given number of times.
Counting semaphores are unsigned integers.
13. What is Priority inversion?
A problem in which a low priority task inadvertently does not release the process for a
higher priority task.
14. What is Deadlock situation?
A set of processes or threads is deadlocked when each process or thread is waiting for a
resource to be freed which is controlled by another process.
15. Define Message Queue.
A task sending the multiple FIFO or priority messages into a queue for use by another
task using queue messages as an input.
16. Define Mailbox and Pipe.
A message or message pointer from a task that is addressed to another task.
17. Define Socket.
It provides the logical link using a protocol between the tasks in a client server or peer to
peer environment.
18. Define Remote Procedure Call.
A method used for connecting two remotely placed methods by using a protocol. Both
systems work in the peer to peer communication mode and not in the client server mode.
19. What are the goals of RTOS?
 Facilitating easy sharing of resources
 Facilitating easy implantation of the application software
 Maximizing system performance
 Providing management functions for the processes, memory, and I/Os and for other
functions for which it is designed.
 Providing management and organization functions for the devices and files and file like
devices.
 Portability
 Interoperability
 Providing common set of interfaces.
20. What is RTOS?
An RTOS is an OS for response time controlled and event controlled processes. RTOS is
an OS for embedded systems, as these have real time programming issues to solve.
21. List the functions of a kernel.
 Process management
 Process creation to deletion
 Processing resource requests
 Scheduling
 IPC
 Memory management
 I/O management
 Device management
22. What are the two methods by which a running requests resources?
 Message
 System call
23.What are the functions of device manager?
 Device detection and addition
 Device deletion
 Device allocation and registration
 Detaching and deregistration
 Device sharing
24. List the set of OS command functions for a device
 Create and open
 Write
 Read
 Close and delete
25. Define task and Task state.
A task is a program that is within a process. It has the following states:
1. Ready
2. Running
3. Blocked
4. Idle

26. Define (TCB)


The TCB stands for Task Control Block which holds the control of all the tasks within
the block. It has separate stack and program counter for each task.
27. What is a thread?
A thread otherwise called a lightweight process (LWP) is a basic unit of CPU utilization,
it comprises of a thread id, a program counter, a register set and a stack. It shares with
other threads belonging to the same process its code section, data section, and operating
system resources such as open files and signals.
28. What are the benefits of multithreaded programming?

The benefits of multithreaded programming can be broken down into four major
categories:
• Responsiveness
• Resource sharing
• Economy
• Utilization of multiprocessor architectures
29. Compare user threads and kernel threads. User threads Kernel threads
User threads are supported above the kernel and are implemented by a thread library at
the user level Kernel threads are supported directly by the operating system
Thread creation & scheduling are done in the user space, without kernel intervention.
Therefore they are fast to create and manage Thread creation, scheduling and
management are done by the operating system.
Therefore they are slower to create & manage compared to user threads Blocking system
call will cause the entire process to block If the thread performs a blocking system call,
the kernel can schedule another thread in the application for execution

30. Define RTOS.


A real-time operating system (RTOS) is an operating system that has been developed for
real-time applications. It is typically used for embedded applications, such as mobile
telephones, industrial robots, or scientific research equipment.
31. Define task and task rates.
An RTOS facilitates the creation of real-time systems, but does not guarantee that they
are real-time; this requires correct development of the system level software. Nor does an
RTOS necessarily have high throughput — rather they allow, through specialized
scheduling algorithms and deterministic behavior, the guarantee that system deadlines
can be met. That is, an RTOS is valued more for how quickly it can respond to an event
than for the total amount of work it can do. Key factors in evaluating an RTOS are
therefore maximal interrupt and thread latency

32. Define CPU scheduling.


CPU scheduling is the process of switching the CPU among various processes. CPU
scheduling is the basis of multi-programmed operating systems. By switching the CPU
among processes, the operating system can make the computer more productive.
33. Define Synchronization.
Message passing can be either blocking or non-blocking. Blocking is considered to be
synchronous and non-blocking is considered to be asynchronous.
34. Define Inter process communication.
Inter-process communication (IPC) is a set of techniques for the exchange of data among
multiple threads in one or more processes. Processes may be running on one or more
computers connected by a network. IPC techniques are divided into methods for message
passing, synchronization, shared memory, and remote procedure calls (RPC). The method
of IPC used may vary based on the bandwidth and latency of communication between the
threads, and the type of data being communicated.
35. Define Semaphore.
A semaphore ‗S‘ is a synchronization tool which is an integer value that, apart from
initialization, is accessed only through two standard atomic operations; wait and signal.
Semaphores can be used to deal with the n-process critical section problem. It can be also
used to solve various synchronization problems.
The classic definition of ‗wait‘ wait (S){
while (S<=0);
S--;
}
The classic definition of ‗signal‘ signal (S){
S++;
}
36. What is a semaphore?
Semaphores -- software, blocking, OS assistance solution to the mutual exclusion
problem basically a non-negative integer variable that saves the number of wakeup
signals sent so they are not lost if the process is not sleeping another interpretation we
will see is that the semaphore value represents the number of resources available
37. Give the semaphore related functions.
A semaphore enforces mutual exclusion and controls access to the process critical
sections. Only one process at a time can call the function fn..
SR Program: A Semaphore Prevents the Race Condition.
SR Program: A Semaphore Prevents Another Race Condition.
38. When the error will occur when we use the semaphore?
 When the process interchanges the order in which the wait and signal operations on the
semaphore mutex.
 When a process replaces a signal (mutex) with wait (mutex).
 When a process omits the wait (mutex), or the signal (mutex), or both.
39. Differentiate counting semaphore and binary semaphore.
Binary Semaphore:
The general-purpose binary semaphore is capable of addressing the requirements of both
forms of task coordination: mutual exclusion and synchronization.
A binary semaphore can be viewed as a flag that is available (full) or unavailable
(empty). Counting semaphores are another means to implement task synchronization and
mutual exclusion.
Counting Semaphore:
The counting semaphore works like the binary semaphore except that it keeps track of the
number of times a semaphore is given. Every time a semaphore is given, the count is
incremented; every time a semaphore is taken, the count is decremented. When the count
reaches zero, a task that tries to take the semaphore is blocked. As with the binary
semaphore, if a semaphore is given and a task is blocked, it becomes unblocked.
However, unlike the binary semaphore, if a semaphore is given and no tasks are blocked,
then the count is incremented. This means that a semaphore that is given twice can be
taken twice without blocking.
40. What is priority inheritance?
Priority inheritance is a method for eliminating priority inversion problems. Using this
programming method, a process scheduling algorithm will increase the priority of a
process to the maximum priority of any process waiting for any resource on which the
process has a resource lock.
41. Define Message Queue.
A message queue is a buffer managed by the operating system. Message queues allow a
variable number of messages, each of variable length, to be queued. Tasks and ISRs can
send messages to a message queue, and tasks can receive messages from a
message queue (if it is nonempty). Queues can use a FIFO (First In, First Out) policy or
it can be based on priorities. Message queues provide an asynchronous communications
protocol.
42. Define Mailbox and Pipe.
A mailboxes are software-engineering components used for interprocess communication,
or for inter-thread communication within the same process. A mailbox is a combination
of a semaphore and a message queue (or pipe).
Message queue is same as pipe with the only difference that pipe is byte oriented while
queue can be of any size.
43. Define Socket.
A socket is an endpoint for communications between tasks; data is sent from one socket
to another.
44. Define Remote Procedure Call.
Remote Procedure Calls (RPC) is a facility that allows a process on one machine to call a
procedure that is executed by another process on either the same machine or a remote
machine. Internally, RPC uses sockets as the underlying communication mechanism.
45. What is preemptive and non-preemptive scheduling?
 Under non-preemptive scheduling once the CPU has been allocated to a process, the
process keeps the CPU until it releases the CPU either by terminating or switching to
the waiting state.
 Preemptive scheduling can preempt a process which is utilizing the CPU in between
its execution and give the CPU to another process.
46. What are the various scheduling criteria for CPU scheduling?
The various scheduling criteria are
 CPU utilization
 Throughput
 Turnaround time
 Waitingtime
 Response time
47. Define throughput?
Throughput in CPU scheduling is the number of processes that are completed per unit
time. For long processes, this rate may be one process per hour; for short transactions,
throughput might be 10 processes per second.
48. What is turnaround time?
Turnaround time is the interval from the time of submission to the time of completion of
a process. It is the sum of the periods spent waiting to get into memory, waiting in the ready
queue, executing on the CPU, and doing I/O.
49. Define deadlock.
A process requests resources; if the resources are not available at that time, the process
enters a wait state. Waiting processes may never again change state, because the resources they
have requested are held by other waiting processes. This situation is called a deadlock.
50. What are conditions under which a deadlock situation may arise?
A deadlock situation can arise if the following four conditions hold simultaneously in a
system: 1.Mutual exclusion, 2.Hold and wait,3.No pre-emption,4.Circular wait

51. Name some application for the VxWorks RTOS.


1. Automobiles
2. Avionics
3. Consumer electronics
4. Medical devices
5. Military
6. Aerospace
7. Networking
52. What are the various features of VxWorks?
1. High performance
2. Host and target based development approach
3. Supports advanced processor architecture
4. Hard real-time applications

53. What are the basic functions of VxWorks?


1. System level functions
2. Task service functions
3. Task control functions
4. IPCs
5. Network and IO functions

UNIT V – EMBEDDED SYSTEM APPLICATION DEVELOPMENT

1. What is MBasic Compiler Software?


From version 5.3.0.0 onward, Basic Micro offers one version of its MBasic compiler, the
―Professional‖ version. MBasic runs under Microsoft‟s Windows operating system in any
version from Windows 95 to Windows XP. The computer requires an RS-232 port for
connection to the ISP-PRO programmer board.
2. Define pseudo-code.
Pseudo-code is a useful tool when developing an idea before writing a line of true code or when
explaining how a particular procedure or function or even an entire program
3. What is design technology?
Design technology involves the manner in which we convert our concept of desired system
functionality into an implementation. Design methodologies are used in taking the decisions at
the time of designing the large systems with multiple design team members.
4. What are the goals of design process? (Apr/May 2011)
A design process has several important goals beyond function, performance, and power. They
are time to market, design cost and quality
5. What does the acronym CRC stands for?
CRC stands for Classes, Responsibilities and Collaborators.
 Classes - define the logical groupings of data and functionality.
 Responsibilities - describe what the classes do.
 Collaborators -are the other classes with which a given class works.
6. What are the steps to be followed in a CRC card methodology?
 Develop an initial list of classes:, Write an initial list of responsibilities and collaborators
 Create some usage scenarios, Walk through the scenarios Refine the classes,
responsibilities, and collaborators
7. Why is the verification of specification very important?
Verifying the requirements and specification is very important for the simple reason that bugs in
the requirements or specification can be extremely expensive to fix later on. A bug introduced in
the requirements or specification and left until maintenance could force an entire redesign of the
product
8. What is prototype?
Prototype is the model of the system being designed. Prototypes are a very useful tool when
dealing with end users—rather than simply describe the system to them in road, technical terms,
a prototype can let them see, hear, and touch at least some of the important aspects of the system.

Das könnte Ihnen auch gefallen