03.embedded System - Question Bank
03.embedded System - Question Bank
1/33B/ECE
K.S.R.COLLEGE OF ENGINEERING (AUTONOMOUS), TIRUCHENGODE-637215
DEPARTMENT OF ELECTRONICS COMMUNICATION AND ENGINEERING
COURSE / LESSION PLAN SCHEDULE
UNIT-I
INTRODUCTION TO EMBEDDED SYSTEMS
1. What is an embedded system? (Remembering, CO1)
An embedded system is a system that has embedded software and computer hardware, which
makes it a system dedicated for applications or specific part of an application or product or a part
of a larger system.
2. Mention the applications of embedded system. (Remembering, CO1)
Consumer appliances, industrial automation, medical electronics, computer networking,
telecommunication, wireless technologies, instrumentation, security and finance.
3. Classify the various categories of embedded system. (Understanding, CO1)
Stand alone embedded system
Real time embedded system
Networked embedded system
Mobile embedded system
4. Define stand alone embedded systems and give some examples. (Remembering, CO1)
It works in stand-alone mode. They take inputs, process them and produce the desired output.
Examples: Digital camera, microwave oven, CD player, Air conditioner and TV, etc..,
5. Define real time embedded systems and give some examples. (Remembering, CO1)
Embedded systems in which some specific work has to be done in a specific time period are
called real-time systems.
Examples: aircraft, missile launching, etc..,
6. Classify the types of real time embedded systems. (Understanding, CO1)
Hard real-time system- Consider a system that has to open a valve within 30 milliseconds when
the humidity crosses a particular threshold. If a valve is not opened within 30 milliseconds, a
catastrophe may occur. Such systems with strict deadlines are called hard real-time systems.
Soft real-time system- In some embedded systems, deadlines are imposed, but not adhering to
them once in a while may not lead to a catastrophe. Consider a DVD player; you give a command
to the DVD player from the remote control, and there is a delay of a few milliseconds in executing
that command. But, this delay won’t lead to a serious implication.
7. Define networked embedded systems. (Remembering, CO1)
Embedded systems that are provided with network interfaces and accessed by networks such as
Local Area Network or the Internet are called networked information appliances.
8. Define mobile embedded systems. (Remembering, CO1)
Mobile devices such as mobile phones, Personal Digital Assistants (PDAs), smart phones etc., are
a special category of embedded systems.
9. Give some limitations of mobile embedded systems. (Understanding, CO1)
Memory constraint
Small size
Lack of good user 9interfaces such as full-fledged keyboard and display
10. List out the recent trends in embedded systems.(Analyzing, CO1)
Processor power, memory, operating systems, communication interfaces and networking
capability, programming languages, development tools and programmable hardware.
11. Mention some development tools in embedded systems. (Understanding, CO1)
MATLAB and Simulink – used to model an embedded system as well as to generate code,
substantially reducing the development time.
16EC613 – EMBEDDED SYSTEMS
BREW (Binary Runtime Environment for Wireless), java 2 Micro Edition (J2ME)
development tools, wireless application Protocol (WAP) development tools facilitate easy
development of applications for mobile devices.
12. What are the steps or levels of abstraction involved in the embedded system design
process? (Remembering, CO1)
Requirement, specification, architecture, component and system integration
13. List the challenges faced in embedded computing system design? (Analyzing, CO1)
Amount and type of hardware needed
Optimizing power dissipation and consumption
14. What are the different methods used to meet the design challenges? (Remembering, CO1)
Clock rate reduction, voltage reduction, wait, stop and cache disable instructions, process
deadlines, flexibility and upgradability, reliability.
15. What is meant by firmware? (Remembering, CO1)
Every embedded system consists of custom-built hardware built around a central processing
unit. This hardware also contains memory chips onto which the software is loaded. The software
residing o the memory chip is also called the firmware.
16. List out the various building blocks of the hardware of an embedded system. (Analyzing,
CO1)
Central Processing Unit
Memory (read only memory and random access memory)
Input devices
Output devices
Communication interfaces
Application specific circuitry
17. Mention some communication interfaces in embedded system. (Understanding, CO1)
RS232, RS422, RS485, USB, IEEE 1394 and Ethernet etc,
PART –B
1. Explain the different categories of embedded systems with suitable examples. (Understanding,
CO1)
2. Discuss in detail about recent trends in embedded systems. (Creating, CO1)
3. Explain in detail about the steps or levels of abstraction involved in the embedded system design
process? (Understanding, CO1)
4. Discuss briefly about overview of embedded system architecture with suitable diagram.
(Creating, CO1)
5. Mention the various applications of an embedded system and explain in detail. (Remembering,
CO1)
6. Explain in detail about design life cycle in embedded system. (Understanding, CO1)
UNIT-II
EMBEDDED DEVICES AND BUSES
1. Define port. (Remembering, CO2)
A port is a device to receive the bytes from external peripheral(s) [or device(s) or
processor(s) or controllers] for reading them later using instructions executed on the processor
to send the bytes to external peripheral or device or processor using instructions executed on
processor.
A Port connects to the processor using address decoder and system buses.
2. Compare serial port and parallel port.(Evaluating, CO2)
Serial port Parallel port
It is a port for serial communication. It is a port for parallel communication.
16EC613 – EMBEDDED SYSTEMS
It means that over a given line or channel one
It means that multiple bits can communicate
bit can communicate and the bits transmit at
over a set of parallel lines at any given instance.
periodic intervals generated by a clock.
It suit for communicate within the same board,
It suit for over short or long distance. between ICs or wires over very short distances
of at most less than a meter.
3. Mention the different types of serial and parallel ports of I/O devices. (Remembering, CO2)
Serial ports
Synchronous Serial Input
Synchronous Serial Output
Asynchronous Serial UART input
Asynchronous Serial UART output (both as input and as output, for example, modem.)
Parallel ports
Parallel port one bit Input
Parallel one bit output
Parallel Port multi-bit Input
Parallel Port multi-bit Output
4. Define synchronous serial input. (Remembering, CO2)
The sender along with the serial bits also sends the clock pulses SCLK (serial clock) to the
receiver port pin. The port synchronizes the serial data input bits with clock bits. Each bit in each
byte as well as each byte in synchronization
Synchronization means separation by a constant interval or phase difference. If clock
period = T, then each byte at the port is received at input in period = 8T.
5. Mention the different names for synchronous serial input. (Remembering, CO2)
Master output slave input (MOSI)
MOSI when the SCLK is sent from the sender to the receiver and slave is forced to synchronize
sent inputs from the master as per the inputs from master clock.
Master input slave output (MISO)
MISO when the SCLK is sent to the sender (slave) from the receiver (master) and slave is
forced to synchronize for sending the inputs to master as per the master clock outputs.
6. Define synchronous serial output. (Remembering, CO2)
Each bit in each byte sent in synchronization with a clock. Bytes sent at constant rates. If
clock period= T, then data transfer rate is (1/T) bps. Sender either sends the clock pulses at SCLK
pin or sends the serial data output and clock pulse-input through same output line with clock
pulses either suitably modulate or encode the serial output bits.
7. How the port can be used in synchronous serial output? (Remembering, CO2)
The processing element at the port (peripheral) sends the byte through a shift register at
the port to where the microprocessor writes the byte.
8. Define asynchronous serial input and output. (Remembering, CO2)
Asynchronous serial input
It is denoted by RxD (Receive Data). Each RxD bit is received in each byte at fixed intervals
but each received byte is not in synchronization. Bytes separate by the variable intervals or phase
differences.
Asynchronous serial input also called UART input if serial input is according to UART
protocol.
Asynchronous serial output
Asynchronous output serial port line TxD (transmit data). Each TxD bit in each byte
transmits at fixed intervals but each output byte is not in synchronization (separates by a
variable interval or phase difference). Minimum separation is 1 stop bit interval TxD.
UNIT III
EMBEDDED PROGRAMMING
PART -A
1. What are the advantages of Assembly language? (Remembering, CO3)
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.
Bottom-up-design approach
2. What are advantages of high level languages? (Remembering, CO3)
High level program development cycle is short for complex systems
Facilitates Data type declaration
Facilitates Type checking making the program less prone to error
Facilitates use of Control structures
Portability of non-processor specific codes
3. Define In -line assembly. (Remembering, CO3)
Inserting an assembly code in between is said to be in-line assembly.
4. Mention the elements of C program. (Understanding, CO3)
Files:
Header files
Source files
Configuration files
Preprocessor directives
Functions:
Macro function
16EC613 – EMBEDDED SYSTEMS
Main function
Interrupt service routines or device drivers
Others:
Data types
Data structures
Modifiers
Statements
Loops and pointers
5. What is meant by preprocessor macros? (Remembering, CO3)
A macro is a collection of codes that is defined in a program as preprocessor directive.
Differs from a function in the sense that once a macro is defined by a name, the compiler
puts the corresponding codes at the macro at every place where that macro-name appears.
6. Difference between macros and functions.(Understanding, CO3)
Macros:
The code for macro are compiled in every function wherever that macro name is used, as a
compiler, before compilation, puts the codes at the places wherever the macro is used.
Macros are used for short codes only.
Functions:
The codes for a function compiled once only
On calling that function, the processor has to save the context, and on return restore the
context.
When a function call is used instead of macro, the overheads (context saving and return) will
take a time, Toverheads that is the same order of magnitude as the time, Texec for execution of short
codes within a function.
Use the function when the Toverheads<<Texec and macro when Toverheads ~= or >Texec.
7. What are the data types available in C language? (Remembering, CO3)
Char - 8 bit for characters; 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
8. List out the various actions of modifiers.(Analyzing, CO3)
(i)Auto (ii)unsigned (iii)static (iv)const (v)register
(vi)interrupt (vii)extern (viii)volatile (ix)volatile static
9. What is the use of loop? (Remembering, CO3)
Loops are used when executing a set of statements repeatedly. A loop starts from an initial
value or condition and executes till the limiting condition is fulfilled.
For example, for (i = 0; i<= 100; i++)
10. Mention the use of infinite loops. (Understanding, CO3)
Never desired in usual programming. Because, the program will never end and never exit
or proceed further to the codes after the loop.
Infinite loop is a feature in embedded system programming.
Example: A telephone is never switching off.
The system software in the telephone has to be always in awaiting loop that finds the ring
on the line. An exit from the loop will make the system hardware redundant.
11. What is meant by pointer and null pointer and its syntax? (Remembering, CO3)
Pointer – It is a powerful tool when used correctly and according to certain basic principles.
Pointer is a reference to a starting memory address. A pointer can refer to a variable, data
structure or function. Before a pointer, in C language symbol * is used.
Example: unsigned char *0x1000 -------character of 8 bits at address 0x1000
Null Pointer - Free the memory spaces allotted to a data structure.
PART –B
1. Explain in detail about advantages of Software programming in assembly and high level language.
(Understanding, CO3)
2. Explain briefly about various program elements. (Understanding, CO3)
(i) Macros
(ii) Functions
3. Explain in detail about use of data types and data structures in software programming.
(Understanding, CO3)
4. What are the actions taken uses of modifiers for software programming? Explain in detail.
(Remembering, CO3)
5. Explain briefly about use of loops and pointers with suitable examples. (Understanding, CO3)
6. Write short notes on object oriented programming? (Remembering, CO3)
7. Explain in detail about advantages and disadvantages of embedded programming in C++. How it
can be overcome? (Understanding, CO3)
8. Explain briefly about embedded programming in JAVA. Mention its advantages and
disadvantages. (Understanding, CO3)
9. Write short notes on J2ME, JavaCard and Embedded Java? (Remembering, CO3)
10. What are the various types of program models and explain briefly. (Remembering, CO3)
11. Explain in detail about DFG model with suitable example. (Understanding, CO3).
12. Explain briefly about State machine programming models for event controlled program flow.
(Understanding, CO3)
13. Discuss in detail about Modeling of multiprocessor systems. (Creating, CO3)
14. Describe in detail about UML Modeling with suitable diagrams. (Remembering, CO3)
PART –B
1. Explain in detail about multiple processes and threads with an application. (Understanding,
CO4)
2. What is meant by tasks and show the various states present in the tasking process?
(Remembering, CO4)
3. Define semaphore and explain detail about the types of semaphores. (Understanding, CO4)
UNIT V
CASE STUDIES
PART –A
1. List out the various basic functions of RTOS. (Analyzing, CO5)
Basic kernel functions and scheduling: pre-emptive or pre-emptive plus time slicing.
Priorities definitions for the tasks and IST.
Priority inheritance feature with option of priority ceiling feature.
Limit for number of tasks.
Task synchronization and IPC function.
Device imaging tool and device drivers.
2. What are the different development approaches in RTOS? (Remembering, CO5)
Host target approach– It is used in real time or non real time application development.
Self host development approach – The system with full RTOS is used for development on which
the application runs.
3. Mention the different types of RTOS. (Understanding, CO5)
In house developed RTOS – The codes are written for the specific need, and application or
product and customizes.
Broad based commercial RTOS – A readily available broad band commercial RTOS package.
General purpose OS with RTOS – It can be used in combination with the RTOS function.
Special focus RTOS – It is used with specific processors like ARM or 8051 or DSP.
4. Name any two important RTOS. (Understanding, CO4)
MUCOS
VxWorks
5. What are the different types of source files used in MUCOS? (Remembering, CO5)
Processor dependent source files – Two header files are considered, processor definitions
header file and kernel building configuration file.
Processor independent source files – Two header files are considered, MUCOS header file and
C file.
PART-B
1. Describe in detail about the basic functions and types of RTOS. (Remembering, CO5)
2. Discuss in detail about various functions of MUCOS-II in RTOS. (Creating, CO5)
3. What are features of VxWorks and explain detail about different functions used in VxWorks
RTOS? (Remembering, CO5)
4. Explain in detail about Windows CE in RTOS. (Understanding, CO5)
5. Explain in briefly about communication and networking in Windows CE RTOS. (Understanding,
CO5)
6. Explain in detail about OSEK in RTOS. (Understanding, CO5)
7. Explain briefly about Linux 2.6 and Real time Linux. (Understanding, CO5)
8. Explain briefly about various design process in Automatic Chocolate Vending Machine.
(Understanding, CO5)
9. Explain briefly about Sending application layer byte streams on a TCP/IP network.
(Understanding, CO5)
10. Explain briefly about various design process in Adaptive cruise control in a car system.
(Understanding, CO5)