Embedded System
Embedded System
2Marks
4. Define processor.
A processor is a device, which implements a process or processes as per the command
given to it.
6. What is microcontroller?
A microcontroller is a unit with a processor. It is a single chip VLSI unit which, thought
having limited computational capabilities, possesses enhanced input-output capabilities
and a number of on-chip functional units.
10. What are the steps required for converting assembly language into a ROM
image?
Assembler, Linker, Loader, Locator, Device Programmer / Foundry.
11. What are the steps required for converting high level language into a ROM
image?
Compiler,Linker,Loader,Locator,Device Programmer / Foundry.
27. Give some examples for Small, Medium & sophisticated scale embedded
systems.
Synchronous Communication:
Communication in which a constant phase difference is maintained between the clocks
that guide the transmitter and receiver. A maximum time interval is pre-fixed between
which a frame of byte transmits.
Asynchronous Communication:
A communication in which a constant phase difference is not
maintained and the clocks that guide the transmitter and receiver are
separate. Time interval between which a frame of byte transmits is not
pre-fixed and is indeterminate.
33. Write the frame format for I2C bus & CAN bus?
Frame Format for I2C bus
35. Give some advanced Parallel and Serial high speed buses.
Advanced Parallel high peed buses
GMII
XGML
CSIX – 1.6.6
Rapid IO
Advanced Serial high speed buses
XAUI
XSBI
SONET OC – 48
SONET OC – 192
38. What is the difference between hardware timer and software timer?
A hardware timer gets the inputs from the internal clock with the processor or system
clock. A device driver program programs it like any other physical device.
Software timer executes and increases or decreases a count variable on an interrupt from
a timer output or from a real-time clock interrupt.
44. What are the two ways of operation of the serial interface device?
The two ways of operation of the serial interface device are,
Half duplex synchronous mode of operation called mode 0.
Full duplex synchronous mode of operation called mode 1,2 or 3.
45. Name any two characteristics to be taken into account while interfacing a device
port.
The two characteristics are,
A port device may have multi-byte data input buffer(s) and
data output buffers
A port device may have a DDR (Data Direction Register).
77. What are the differences between including a header file and a text file or data
file?
The differences between including a header file and a text file or data file
are,
The header files are well tested and debugged modules.
They provide access to standard libraries.
The header file can include several text file or C files.
A text file is description of the text that contains specific information.
79. How can optimization be used to eliminate the disadvantages in embedded C++
programs?
Optimization can be used as follows.
Declare private as many classes as possible.
Use of char, int and boolean in place of the objects as arguments
Use local variables as much as feasible.
Recover memory already used by changing the reference to an object to NULL.
80. Name some features of source code engineering tools for embedded C++.
Some features of source code engineering tools for embedded C++ are, It searches and
lists the dependencies and hierarchies of included header files.It browses through object
component relationship.
94. Explain the term (i) Message Queue (ii) Mailbox (iii) Pipe (iv) Socket.
Message Queue
A task sending the multiple FIFO or priority message into a queue for use by another
task(s) using queue message as an input.
Mailbox
A message(s) or message pointer from a task that is addressed to another task.
Pipe
A task sending the messages used by and another task using these as input. A pipe can be
a device like file which is also a virtual device.
Socket
It provides the logical link using a protocol between the tasks in a client-server or peer-
to-peer environment.
99. What are the problems that may arise while using semaphores?
The problems that may while using semaphores are,
(i) Sharing of two semaphores creates a deadlock problem.
(ii) Without a timeout an ISR worst-case latency may exceed the deadline.
(iii) A semaphore not taken, and another task uses a shared variable.
(iv) When using multiple semaphores, if an unintended task takes the semaphore, it
creates a problem.
(v) It may introduce priority inversion problem.
101. What are the strategies used by RTOS on interrupt source calls?
The strategies used by RTOS on interrupt source calls are,
(i) Direct call to ISR by an interrupting source.
(ii) Direct call to RTOS by an interrupting source and temporary suspension of a
scheduled task
(iii) Direct call to RTOS by an interrupting source and scheduling of tasks as well as ISRs
by RTOS.
105. Name any two queue functions for the inter-task communications.
The two queue functions for the inter-task communications are,
(i) Creating a queue for an IPC.
(ii) Waiting for an IPC message at a queue.
112. Name some of the inter-process communication functions used for messaging.
Some of the inter-process communication functions used for messaging
are,
(i) msgQCreate() - Allocation and initializes a queue for the message.
(ii) msgQDelete() - Eliminates the message queue by freeing the memory.
(iii) msgQSend() - Sends into a queue.
(iv) msgQReceiver() - Receives a message into the queue.