Fatima Michael College of Engineering & Technology: UNIT-1 Embedded Computing Two Marks
Fatima Michael College of Engineering & Technology: UNIT-1 Embedded Computing Two Marks
Fatima Michael College of Engineering & Technology: UNIT-1 Embedded Computing Two Marks
UNIT-1
EMBEDDED COMPUTING
TWO MARKS
CISC RISC
It provides number of addressing It provides very few
modes addressing modes
It has a micro programmed unit with a It has a hardwired unit
control memory without a control memory
An easy compiler design Complex compiler design
Provide precise and intensive Provide precise and
calculations slower than a RISC intensive calculations faster
than a CISC
www.studentsfocus.com
Fatima Michael College of Engineering & Technology
Fatima Michael College of Engineering & Technology
www.studentsfocus.com
Fatima Michael College of Engineering & Technology
Fatima Michael College of Engineering & Technology
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?
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.
• 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. When is Application Specific System processors ASSPs) used in an embedded system?
An ASSP is used as an additional processing unit for running the application specific
tasks in place of processing using embedded software.
www.studentsfocus.com
Fatima Michael College of Engineering & Technology
Fatima Michael College of Engineering & Technology
Final stage software is also called as ROM image .The final implement able software for a
product embeds in the ROM as an image at a frame. Bytes at each address must be defined for
creating the image.
A device driver is software for controlling, receiving and sending byte or a stream of bytes from
or to a device.
21. Name some of the software’s used for the detailed designing of an embedded system.
• ACVM
• Stepper motor controllers for a robotic system
• Washing or cooking system
• Multitasking toys
•
23. Give some examples for medium scale embedded systems
www.studentsfocus.com
Fatima Michael College of Engineering & Technology
Fatima Michael College of Engineering & Technology
Reliability
Low power consumption
Cost effectiveness
Efficient use of processing power
a Single-functioned
b Tightly constrained
• Power
• Size
• NRE cost
• Performance
Hardware needed
Meeting the deadlines
Minimizing the power consumption
Design for upgradeability
Requirements
Specifications
Architecture
Components
System integration
Before designing a system, it must to understand what has to be designed. This can be
known from the starting steps of a design process.
Functional requirements
Non functional requirements
www.studentsfocus.com
Fatima Michael College of Engineering & Technology
Fatima Michael College of Engineering & Technology
1. Performance
2. Cost
3. physical size and weight
4. power
It is used as a checklist in the requirements analysis. From this the fundamental properties
of a system came to be known.
Name
Purpose
Inputs and outputs
Functions
Performance
Manufacturing cost
Power
Physical size and weight
This is a bridge between Customer and Architect. It conveys the customer’s needs. These
needs are properly used in the design process.
It says the way of implementing functions by a system. Actually architecture is a plan for
whole structure of a system. While will bring the design of components later.
www.studentsfocus.com
Fatima Michael College of Engineering & Technology
Fatima Michael College of Engineering & Technology
www.studentsfocus.com
Fatima Michael College of Engineering & Technology
Fatima Michael College of Engineering & Technology
UNIT-II
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.
• Iso-synchronous communication
• synchronous communication
• Asynchronous communication
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.
www.studentsfocus.com
Fatima Michael College of Engineering & Technology
Fatima Michael College of Engineering & Technology
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.
A device can be attached, configured and used, reset, reconfigured and used, share the
bandwidth with other devices, detached and reattached.
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.
• 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.
www.studentsfocus.com
Fatima Michael College of Engineering & Technology
Fatima Michael College of Engineering & Technology
• A clock generator.
• Input and Output start Registers
• Buffers.
• Transmitter/Receiver control.
• 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
• Timer Enable
• Timer start
• Up count Enable
• Timer Interrupt Enable
www.studentsfocus.com
Fatima Michael College of Engineering & Technology
Fatima Michael College of Engineering & Technology
Status flag is the hardware signal to be set when the timer reaches zeros.
• Low cost
• Easy implementation
• Moderate speed upto 100 kbps).
• USB 1.1
• USB 2.0
1 12 6 0-64 16 2 7
If the speed in the rate of ‘Gigabits per second’ then there is a need of Advanced Serial
High Speed Buses.
www.studentsfocus.com
Fatima Michael College of Engineering & Technology
Fatima Michael College of Engineering & Technology
Real time clock is a clock which once the system stats does not stop and cant be reset
and its count value cant be reloaded.
A state in which the number of count inputs exceeded the last acquirable value and
on reaching that state, an interrupt can be generated.
The embedded system needs at least on timer device. It is used as a system clock.
www.studentsfocus.com
Fatima Michael College of Engineering & Technology
Fatima Michael College of Engineering & Technology
UNIT-III
TWO MARKS
3. Define scheduling.
This is defined as a process of selection which says that a processwhwaws.antnhaeunirviegrzhityt.ctoom use the
processor at given time.
6. What is schedulability?
It indicates any execution schedule is there for a collection of process in the system's
functionality.
www.studentsfocus.com
13. What is rate monotonic scheduling?
Rate monotonic scheduling is an approach that is used to assign task priority for a
Fatima Michael College of Engineering & Technology
Fatima Michael College of Engineering & Technology
preemptive system.
www.studentsfocus.com
Fatima Michael College of Engineering & Technology
Fatima Michael College of Engineering & Technology
UNIT 1V
NETWORKS 2 MARKS
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.
Process Control Block’ is abbreviated as PCB.PCB is a data structure which contains all
the information and components regarding with the process.
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
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 aswfwowl.alnonw
aunsiv: es
rztia
tyt.cionmg, running,
blocked and finished.
An output from one task passed to another task through the scheduler and use of signals,
exception, semaphore, queues, mailbox, pipes, sockets, and RPC.
www.studentsfocus.com
Fatima Michael College of Engineering & Technology
Fatima Michael College of Engineering & Technology
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.
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.
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.
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.
A problem in which a low priority task inadvertently does not release the process for a
higher priority task.
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.
A task sending the multiple FIFO or priority messages into a queue for use by another
task using queue messages as an input.
www.studentsfocus.com
Fatima Michael College of Engineering & Technology
Fatima Michael College of Engineering & Technology
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.
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
www.studentsfocus.com
Fatima Michael College of Engineering & Technology
Fatima Michael College of Engineering & Technology
Open
Write
Read
Seek
Close
26. What are the three methods by which an RTOS responds to a hardware source call on
interrupt?
• MUCOS
• VxWorks
www.studentsfocus.com
Fatima Michael College of Engineering & Technology
Fatima Michael College of Engineering & Technology
• More Reliable
• More faster
A system that has multitasking needs with multiple features and in which the
tasks have deadlines that must be adhered to.
• Preemptive
• Portable
• Scalable
• Multitasking
33. What are the real time system level functions in UC/OS II? State some?
www.studentsfocus.com
Fatima Michael College of Engineering & Technology
Fatima Michael College of Engineering & Technology
37. Name any two queue related functions for the inter task communications.
• Provide control information for the OS that includes priority, stack size, state and
options.
• CPU context of the task that includes PC, SP, CPU registers and task variables.
39. What are the various features of Vx Works?
• VxWorks is a scalable OS
• RTOS hierarchy includes timers, signals, TCP/IP sockets, queuing functions
library, Berkeley ports and sockets, pipes, UNIX compatible loader, language interpreter, shell,
debugging tools, linking loader for UNIX.
Active task means that it is in one of the three states, ready, running, or waiting.
• taskSpawn
• taskResume
• taskSuspand
• taskDelay
• taskSuspand
• taskInit(
• exit(
• taskDelete
• intLock
• intVectSet(
• intVectGet(
• intContext(
www.studentsfocus.com
Fatima Michael College of Engineering & Technology
Fatima Michael College of Engineering & Technology
• semBCreate
• semMCreate
• semCCreate
• semTake
• semDelete
44. Name some of the inter process communication function used for messaging.
• msgQCreate
• msgQDelete
• msgQSend
• msgQReceive
VxWorks pipes are thec queues that can be opened and closed like a pipe.pipes
are like virtual IO devices that store the messages as FIFO.
• Preemptive priority
• Time slicing
www.studentsfocus.com
Fatima Michael College of Engineering & Technology
Fatima Michael College of Engineering & Technology
UNIT V
CASE STUDY
2 MARKS
1. What is a PIC?
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.
5. 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
6. What is a PDA?
PDA (Personal Digital Assistant) is a device that can be used to receive, display and
transcribe information. PDA can run a wide variety of applications.
10. List the major components in the Personal Digital Assistant System?
Process or memory
Connectivity
Power management unit
User interface.
11. Why most designers use FOSS tools in embedded system development?
Because,
It makes software portable.
It speeds up the development process
It provides good foundation for system development activities.
12. What is signal servicing function?
• The signal service is a bureau of the government organized to collect from the whole
country simultaneously report to local metrological condition upon comparison of
which at certain office, predictions concerning the weather are telegraphed to various
sections also known as signal publicity display.
13. Give the steps to destroy a message queue.
(i) First delete all the element in a message
queue. (ii) Check if Front = rear = -1, then queue
is empty.
(iii) Otherwise, now call a delete routine to destroy a message queue.
www.studentsfocus.com
Fatima Michael College of Engineering & Technology