Module3 Notes
Module3 Notes
MODULE – 3
Or
E.g. Electronic Toys, Mobile Handsets, Washing Machines, Air Conditioners, Automotive Control
Units, Set Top Box, DVD Player etc…
➢ The Embedded System and the General-purpose computing system are at two extremes.
➢ The embedded system is designed to perform a specific task whereas as per definition the general-
purpose computer is meant for general use. It can be used for playing games, watching movies,
creating software, work on documents or spreadsheets etc.
➢ Following are certain specific points that differentiates between embedded systems and general-
purpose computers:
Applications are alterable (programmable) by The firmware of the embedded system is pre-
the user (It is possible for the end user to re- programmed and it is non-alterable by the
install the operating system, and also add or end-user (There may be exceptions for system
remove userapplications) supporting OS kernel image flashing through
special hardware settings)
Response requirements are not time-critical For certain category of embedded systems
like mission critical systems, the response
time requirement is highly critical
• Based on generation
• Based on triggering
Based on generation
[Link] Generation :
• Early embedded systems were built around 8-bit microprocessors like 8085 and Z80 and 4-bit
microcontrollers.
• Simple in hardware circuits with firmware developed in assembly code.
2. Second Generation:
• Embedded systems built around 16-bit microprocessors and 8-bit or 16-bit microcontrollers.
• Instructions set were much more complex and powerful than the first generation.
• Some of the second generation embedded systems contained embedded operating systems for
their operation.
• E.g.: Data acquisition systems, SCADA systems, etc.
3. Third Generation :
4. Fourth Generation:
• The advent of System on Chips (SoC), reconfigurable processors and multicore processors are
bringing high performance, tight integration and miniaturization into the embedded device market.
• The SoC technique implements a total system on a chip by implementing different
functionalities with a processor core on an integrated circuit.
• They make use of high performance real time embedded operating systems for their functioning.
• E.g.: Smart phone devices, Mobile Internet Devices (MIDs), etc.
5. Next Generation:
• Simple in application needs and the performance requirements are not time critical. E.g.: An
electronic toy
• Usually built around low performance and low cost 8-bit or 16-bit
microprocessors/microcontrollers
May or may not contain an operating system for its functioning.
• Embedded systems which are ‘Reactive’ in nature (like process control systems in industrial
control applications) can be classified based on the trigger.
• Reactive systems can be either event-triggered or time-triggered.
Each Embedded Systems is designed to serve the purpose of any one or a combination of the
following tasks.
1. Data Collection/Storage/Representation
2. Data Communication
3. Data (Signal) Processing
4. Monitoring
5. Control
6. Application Specific User Interface
[Link] Collection/Storage/Representation
➢ Embedded system designed for the purpose of data collection performs acquisition of data
from the external world.
➢ Data collection is usually done for storage, analysis, manipulation and transmission.
➢ Data can be analog or digital.
➢ Embedded systems with analog data capturing techniques collect data directly in the form
of analog signal whereas embedded systems with digital data collection mechanism
converts the analog signal to the digital signal using analog to digital converters.
➢ If the data is digital, it can be directly captured by digital embedded system.
➢ A digital camera is a typical example of an embedded System with data
collection/storage/representation of data.
➢ Images are captured and the captured image may be stored within the memory of the
camera. The captured image can also be presented to the user through a graphic LCD unit.
[Link] communication
➢ Embedded data communication systems are deployed in applications from complex
➢ satellite communication to simple home networking systems.
➢ The transmission of data is achieved either by a wire-lin medium or by a wire-less
➢ medium. Data can either be transmitted by analog means or by digital means.
➢ Wireless modules-Bluetooth, Wi-Fi.
➢ Wire-line modules-USB, TCP/IP.
➢ Network hubs, routers.
[Link]
• Almost embedded products coming under the medical domain are used for monitoring.
• A very good example is the electro cardiogram (ECG) machine for monitoring the heartbeat of a
patient.
• The machine is intended to do the monitoring of the heartbeat.
• It cannot impose control over the heartbeat.
• The sensors used in ECG are the different electrodes connected to the patient's body.
• Some other examples of embedded systems with monitoring function are measuring instruments
like digital CRO, digital millimeters, logic analyzers, etc. Used in Control & Instrumentation
applications.
5. Control
• Embedded systems with control functionalities impose control over some variables according to
the changes in input variables.
• A system with control functionality contains both sensors and actuators.
• Sensors are connected to the input port for capturing the changes in environmental variable or
measuring variable.
• The actuators connected to the output port are controlled according to the changes in input
variable to put an impact on the controlling variable to bring the controlled variable to the specified
range.
• Smart’ running shoes from Adidas – The Innovative bonding of Life Style with Embedded
Technology
• Shoe developed by Adidas, which constantly adapts its shock-absorbing characteristics to
customize its value to the individual runner, depending on running style, pace, body weight,
and running surface
• It contains sensors, actuators and a microprocessor unit which runs the algorithm for
adapting the shock-absorbing characteristics of the shoe
• A ‘Hall effect sensor’ placed at the top of the “cushioning element” senses the compression
and passes it to the Microprocessor
• A micro motor actuator controls the cushioning as per the commands from the MPU,
based on the compression sensed by the ‘Hall effect sensor.
Embedded systems are basically designed to regulate a physical variable such Microwave Oven
or to manipulate the state of some devices by sending some signals to the actuators or devices
connected to the output port system such as temperature in Air Conditioner, in response to the
input signal provided by the end users or sensors which are connected to the input ports. Hence
the embedded systems can be viewed as a reactive system.
The control is achieved by processing the information coming from the sensors and user
interfaces and controlling some actuators that regulate the physical variable. Keyboards, push
button, switches, etc. are Examples of common user interface input devices and LEDs, LCDs,
Piezoelectric buzzers, etc. examples for common user interface output devices for a typical
embedded system. The requirement of type of user interface changes from application to
application based on domain.
Some embedded systems do not require any manual intervention for their operation.
They automatically sense the input parameters from real world through sensors which are
connected at input port. The sensor information is passed to the processor after signal
conditioning and digitization. The core of the system performs some predefined operations on
input data with the help of embedded firmware in the system and sends some actuating signals
to the actuator connect connected to the output port of the system.
The memory of the system is responsible for holding the code (control algorithm and
other important configuration details). There are two types of memories are used in any
embedded system. Fixed memory (ROM) is used for storing code or program. The user cannot
change the firmware in this type of memory. The most common types of memories used in
embedded systems for control algorithm storage are OTP, PROM, UVEPROM, EEPROM and
FLASH. An embedded system without code (i.e. the control algorithm) implemented memory
has all the peripherals but is not capable of making decisions depending on the situational as
well as real world changes.
Memory for implementing the code may be present on the processor or may be
implemented as a separate chip interfacing the processor. In a controller based embedded
system, the controller may contain internal memory for storing code such controllers are called
Micro-controllers with on-chip ROM, eg. Atmel AT89C51.
Microprocessor:
Microcontroller:
➢ A highly integrated silicon chip containing a CPU, scratch pad RAM, Special and
General-purpose Register Arrays, On Chip ROM/FLASH memory for program storage,
Timer and Interrupt control units and dedicated I/O ports
➢ Microcontrollers can be considered as a super set of Microprocessors
➢ Microcontroller can be general purpose (like Intel 8051, designed for generic
applications and domains) or application specific (Like Automotive AVR from Atmel
Corporation. Designed specifically for automotive applications)
➢ Since a microcontroller contains all the necessary functional blocks for independent
working, they found greater place in the embedded domain in place of microprocessors.
➢ Microcontrollers are cheap, cost effective and are readily available in the market
Texas Instruments TMS 1000 is considered as the world’s first microcontroller.
A silicon chip representing a central processing unit A microcontroller is a highly integrated chip that contains
(CPU), which is capable of performing arithmetic as well a CPU, scratchpad RAM, special and general purpose
as logical operations according to a pre-defined set of register arrays, on chip ROM/ FLASH memory for
instructions program storage, timer and interrupt control units and
dedicated I/O ports
It is a dependent unit. It requires the combination of other It is a self-contained unit and it doesn't require external
chips like timers, program and data memory chips, interrupt controller, timer, UART, etc. for its functioning
interrupt controllers, etc. for functioning
Most of the time, general purpose in design and operation Mostly application-oriented or domain-specific
Doesn't contain a built in I/O port. The I/O port Most of the processors contain multiple built-in I/O ports
functionality needs to be implemented with the help of which can be operated as a single 8 or 16 or 32 bit port or
external programmable peripheral interface chips like as individual port pins
8255
Targeted for high end market where performance is Targeted for embedded market where performance is not
important so critical (At present this demarcation is invalid)
Limited power saving options compared to Includes lot of power saving features
microcontrollers
➢ The need for an ASIP arises when the traditional general-purpose processor is unable to
meet the increasing application needs.
➢ Some Microcontrollers (like Automotive AVR, USB AVR from Atmel), System on
Chips, Digital Signal Processors etc are examples of Application Specific Instruction Set
Processors (ASIPs)
➢ ASIPs incorporate a processor and on-chip peripherals, demanded by the application
requirement, program and data memory.
➢ DSP are powerful special purpose 8/16/32 bit microprocessor designed to meet the
computational demands and power constraints of today’s embedded audio, video and
communication applications. DSP are 2 to 3 times faster than general purpose
microprocessors in signal processing applications.
➢ This is because of the architectural difference between DSP and general purpose
microprocessors.
➢ DSPs implement algorithms in hardware which speeds up the execution whereas general
purpose processor implement the algorithm in software and the speed of execution
depends primarily on the clock for the processors.
➢ DSP includes following key units:
o Program memory: It is a memory for storing the program required by DSP to
process the data.
o Data memory: It is a working memory for storing temporary variables
anddata/signal to be processed.
o Computational engine: It performs the signal processing in accordance with the
stored program memory computational engine incorporated many specialized
▪ All RISC processors/controllers possess lesser number of instructions, typically in the range
of 30 to 40.
▪ E.g.: Atmel AVR microcontroller – its instruction set contains only 32 instructions.
Von-Neumann Architecture
➢ Little-endian the lower-order byte of the data is stored in memory at the lowest address,
and the higher-order byte at the highest address. (The little end comes first.)
➢ For example, a 4 byte long integer Byte3 Byte2 Byte1 Byte0 will be stored in the memory
as shown below.
➢ Big-endian means the higher-order byte of the data is stored in memory at the lowest
address, and the lower-order byte at the highest address. (The big end comes first.)
➢ For example, a 4 byte long integer Byte3 Byte2 Byte1 Byte0 will be stored in the
memory as shown below:
➢ The instruction store stores data from a specified register to a specified memory location.
➢ The concept of Load Store Architecture is illustrated with the following example:
➢ Suppose x, y and z are memory locations and we want to add the contents of x and y and
store the result in location z. Under the load store architecture, the same is achieved with
4 instructions as shown:
➢ The first instruction loads R1, x loads the register R1 with the content of memory location
x.
➢ The second instruction load R2, y loads the register R2 with the content of memory
location y.
➢ The instruction adds R3, R1, R2 adds the content of registers R1 and R2 and stores the
result in register R3.
➢ The next instruction store R3, z stores the content of register R3 in memory location z.
➢ The fetch part fetches the instruction from program memory or code memory.
➢ The decode part decodes the instruction to generate the necessary control signals.
➢ The execute stage reads the operands, perform ALU operations and stores the result.
➢ In conventional program execution, the fetch and decode operations are performed in
sequence. For simplicity let's consider decode and execution together.
➢ During the decode operation, the memory address bus is available and if it is possible to
effectively utilise it for an instruction fetch, the processing speed can be increased.
➢ Instruction pipelining refers to the overlapped execution of instructions – i.e., while the
current instruction is being decoded and executed, the next instruction will be fetched.
➢ If the current instruction in progress is a program control flow transfer instruction like
jump or call instruction, the instruction fetched is flushed and a new instruction fetch is
performed to fetch the instruction.
➢ Whenever the current instruction is executing the program counter will be loaded with the
address of the next instruction.
➢ In case of jump or branch instruction, the new location is known only after completion of
the jump or branch instruction.
➢ Depending on the stages involved in an instruction (fetch, read register and decode,
execute instruction, access an operand in data memory, write back the result to register,
etc.), there can be multiple levels of instruction pipelining.
➢ Figure illustrates the concept of instruction pipelining for single stage pipelining.
➢ Logic devices can be classified into two broad categories—fixed and programmable.
➢ The circuits in a fixed logic device are permanent, they perform one function or set of
functions—once manufactured, they cannot be changed.
➢ Programmable Logic Devices (PLDs) offer customers a wide range of logic capacity,
features, speed, and voltage characteristics and these devices can be re-configured to
perform any number of functions at any time.
➢ Designers use inexpensive software tools to quickly develop, simulate, and test their
designs.
➢ Then, a design can be quickly programmed into a device, and immediately tested in a live
circuit.
➢ There are no NRE costs and the final design is completed much faster than that of a
custom, fixed logic device.
➢ Another key benefit of using PLDs is that during the design phase customers can change
the circuitry as often as they want until the design operates to their satisfaction.
➢ PLDs are based on re-writable memory technology to change the design, the device is
simply reprogrammed.
➢ Once the design is final, customers can go into immediate production by simply
programming as many PLDs as they need with the final software design file.
➢ The two major types of programmable logic devices are Field Programmable Gate Arrays
(FPGAs) and Complex Programmable Logic Devices (CPLDs).
Advantages of PLD:
➢ PLDs offer customers much more flexibility during the design cycle because design
iterations are simply a matter of changing the programming file, and the results of design
changes can be seen immediately in working parts.
➢ PLDs do not require long lead times for prototypes or production parts—the PLDs are
already on a distributor's shelf and ready for shipment.
➢ PLDs do not require customers to pay for large NRE costs and purchase expensive mask
sets—PLD suppliers incur those costs when they design their programmable devices and
are able to amortize those costs over the multi-year lifespan of a given line of PLDs.
➢ PLDs allow customers to order just the number of parts they need, when they need them,
allowing them to control inventory.
➢ PLDs can be reprogrammed even after a piece of equipment is shipped to a customer. The
manufacturers can add new features or upgrade products that already are in the field. To
do this, they simply upload a new programming file to the PLD, via the Internet, creating
new hardware logic in the system.
➢ COTS products are designed in such a way to provide easy integration and
interoperability with existing system components.
➢ The COTS component itself may be developed around a general purpose or domain
specific processor or an Application Specific Integrated Circuit or a Programmable
Logic Device.
Advantages:
Memory:
➢ Memory is an important part of a processor/controller based embedded systems.
➢ Some of the processors/controllers contain built in memory and this memory is referred
as on-chip memory.
➢ Others do not contain any memory inside the chip and requires external memory to be
connected with the controller/processor to store the control algorithm. It is called off-chip
memory.
➢ Also some working memory is required for holding data temporarily during certain
operations.
➢ The program memory or code storage memory of an embedded system stores the
program instructions.
➢ The code memory retains its contents even after the power is turned off. It is generally
known as non- volatile storage memory.
▪ Masked ROM makes use of the hardwired technology for storing data.
▪ The device is factory programmed by masking and metallization process at the time
of production itself, according to the data provided by the end user.
▪ Since the MROM is permanent in bit storage, it is not possible to alter the bit
information.
▪ Different mechanisms are used for the masking process of the ROM, like
▪ By creating the memory cell either using a standard transistor or a high threshold
transistor.
▪ In the high threshold mode, the supply voltage required to turn ON the transistor is
above the normal ROM IC operating voltage.
▪ This ensures that the transistor is always off and the memory cell stores always logic
0.
• This memory has nichrome or polysilicon wires arranged in a matrix. These wires can
be functionally viewed as fuses.
• Fuses which are not blown/burned represents a logic “1" whereas fuses which are
lown/burned represents a logic 0 .
• Erasable Programmable Read Only Memory (EPROM) gives the flexibility to re-
program the same chip.
• EPROM stores the bit information by charging the floating gate of an FET.
• EPROM contains a quartz crystal window for erasing the stored information.
• If the window is exposed to ultraviolet rays for a fixed duration, the entire memory
will be erased.
• The information contained in the EEPROM memory can be altered by using electrical
signals at the register/byte level.
• These chips include a chip erase mode and in this mode they can be erased in a few
milliseconds.
• The only limitation is their capacity is limited (a few kilobytes) when compared with
the standard ROM.
FLASH:
• The erasing of memory can be done at sector level or page level without affecting the
other sectors or pages.
• It contains static RAM based memory and a minute battery for providing supply to the
memory in the absence of extemal power supply.
• RAM is volatile – when the power is turned off, all the contents are destroyed.
• RAM is a direct access memory – we can access the desired memory location directly
without the need for traversing through the entire memory locations to reach the desired
memory position (i.e. random access of memory location).
• This is in contrast to the Sequential Access Memory (SAM), where the desired
memory location is accessed by either traversing through the entire memory or through a
'seek' method. Magnetic tapes, CD ROMs, etc. are examples of sequential access
memories.
• RAM generally falls into three categories: Static RAM (SRAM), Dynamic RAM
(DRAM) and Non- Volatile RAM (NVRAM).
• In typical implementation, an SRAM cell (bit) is realized using six transistors (or 6
MOSFETs).
• Four of the transistors are used for building the latch (flip-flop) part of the memory
cell and two for controlling the access.
• In its simplest representation an SRAM cell can be visualized as shown in the figure
below:
•The access to the memory cell is controlled by Word Line, which controls the access
transistors (MOSFETs) Q5 and Q6.
•The access transistors control the connection to bit lines B & B\.
• In order to write a value to the memory cell, apply the desired value to the bit control
lines (For writing 1, make B = 1 and B\ = 0; For writing 0, make B = 0 and B\ = 1) and
assert the Word Line (Make Word line high).
• This operation latches the bit written in the flip-flop.
• For reading the content of the memory cell, assert both B and bit lines to 1 and set the
Word line to 1.
• The major limitations of SRAM are low capacity and high cost.
Dynamic RAM (DRAM):
Fast in operation. Typical access time is 10ns Slow in operation due to refresh requirements.
Typical
access time is 60ns. Write operation is faster than
readoperation.
Memory Shadowing:
Memory Shadowing is a computer memory management technique where a copy of data
from a slower memory (like ROM) is loaded into a faster memory (like RAM) during
system startup. This allows the system to run code or access data more quickly because
accessing RAM is much faster than accessing ROM.
In simple terms:
• When a computer boots up, it may copy the BIOS (or firmware) from ROM into
RAM.
• Then, the system uses the RAM copy instead of directly accessing the slower ROM.
Where is it used?
• In computer systems and video systems there will be a configuration holding ROM
called Basic Input Output Configuration ROM or simply BIOS.
• BIOS stores the hardware configuration information like the address assigned for
various serial ports and other non-plug 'n' play devices, etc.
• Usually, it is read and the system is configured according to it during system boot up
and it is time consuming.
• In memory shadowing, a RAM is included behind the logical layer of BIOS at its
same address as a shadow to the BIOS.
• The first step that happens during the boot up is copying the BIOS to the shadowed
RAM and writes protecting the RAM then disabling the BIOS reading.
• RAM is volatile and it cannot hold the configuration data which is copied
from the BIOS when the power supply is switched off. Only a ROM can hold it
permanently.
• But for high system performance it should be accessed from a RAM instead of
accessing from a ROM.
• Embedded systems require a Program memory for holding the control algorithm or
embedded OS and the applications designed to run on top of it
• Data memory for holding variables and temporary data during task execution
• Memory for holding non-volatile data (like configuration data, look up table
etc) which are modifiable by the application
• The memory requirement for an embedded system in terms of RAM and ROM
(EEPROM/FLASH/NVRAM) is solely dependent on the type of the embedded system
and the applications for which it is designed.
• Lot of factors need to be considered when selecting the type and size of
memory for embedded system.
• For example, if the embedded system is designed using SOC or a microcontroller with
on-chip RAM and ROM (FLASH/EEPROM), depending on the application need the on-
chip memory may be sufficient for designing the total system.
• As the complexity of requirements are less and data memory requirement are
minimal, we can think of a microcontroller with a few bytes of internal RAM, a few
bytes or kilobytes of FLASH memory and a few bytes of EEPROM (if required) for
designing the system. Hence there is no need for external memory at all.
• If the embedded design is based on an RTOS, the RTOS requires certain amount of
RAM for its execution and ROM for storing the RTOS image.
• Normally the binary code for RTOS kernel containing all the services is stored in a
non-volatile memory (Like FLASH) as either compressed or non-compressed data.
• During boot-up of the device, the RTOS files are copied from the program storage
memory, decompressed if required and then loaded to the RAM for execution.
• A smart phone device with Windows mobile operating system is a typical example for
embedded device with OS.
• Say 64MB RAM and 128MB ROM are the minimum requirements for running the
Windows mobile device, extra RAM and ROM are needed for running user applications.
1. Size of the memory chip – Memory density expressed in terms of number of memory
bytes per chip.
◦ Memory chips come in standard sizes like 512 bytes, 1024 bytes (1 kilobyte),
2048 bytes (2 kilobytes), 4KB, 8KB, 16KB, 32KB, 64KB, 128KB, 256KB, 512KB,
1024KB(1 megabytes), etc.
◦ While selecting a memory size, the address range supported by the processor
must also be considered. For example, for a processor/controller with 16 bit address
bus, the maximum number of memory locations that can be addressed is 216 = 65536
bytes = 64KB
2. Word size of the memory – The number of memory bits that can be read/written
together at a time.
◦ The word size supported by the memory chip must match with the data bus
width of the processor/controller.
➢ FLASH memory comes in two major variants – NAND FLASH and NOR FLASH.
➢ NAND FLASH is a high-density low cost non-volatile storage memory, while NOR
FLASH is less dense and slightly expensive.
➢ NOR FLASH supports the Execute in Place (XIP) technique for program execution.
o The XIP technology allows the execution of code memory from ROM itself
without the need for copying it to the RAM as in the case of conventional
execution method.
➢ It is a good practice to use a combination of NOR and NAND memory for storage
memory requirements, where NAND can be used for storing the program code and or
data like the data captured in a camera device.
➢ NAND FLASH doesn't support XIP and if NAND FLASH is used for storing
program code, a DRAM can be used for copying and executing the program code.
• NOR FLASH supports XIP and it can be used as the memory for boot loader
or for even storing the complete program code.
➢ The EEPROM data storage memory is available as either serial interface or parallel
interface chip.
➢ If the processor/controller of the device supports serial interface and the amount of
data to write and read to and from the device is less, it is better to have a serial
EEPROM chip.
➢ The serial EEPROM saves the address space of the total system.
➢ For embedded systems with low power requirements like portable devices, choose
low power memory devices.
➢ Select an industrial grade memory chip in place of the commercial grade chip for such
devices.
• The changes in system environment or variables are detected by the sensors connected
to the input port of the embedded system.
• If the embedded system is designed for any controlling purpose, the system will
produce some changes in the controlling variable to bring the controlled variable to the
desired value.
• The I/O subsystem of the embedded system facilitates the interaction of the embedded
system with the external world.
• The interaction happens through the sensors and actuators connected to the input and
output ports respectively of the embedded system.
• The sensors may not be directly interfaced to the input ports, instead they may be
interfaced through signal conditioning and translating systems like ADC, opt couplers,
etc.
• LED can be used as an indicator for the status of various signals or situations.
• Light Emitting Diode is a p-n junction diode and it contains an anode and a cathode.
• For proper functioning of the LED, the anode is connected to +ve terminal of the
supply voltage and cathode to the -ve terminal of supply voltage.
• The current flowing through the LED must be limited to a value Below the maximum
current that it can conduct.
• In the first method, the anode is directly connected to the port pin and the port pin
drives the LED. The port pin 'sources' current to the LED when the port pin is at logic
High (Logic ‘1’).
• In the second method, the cathode of the LED is connected to the port pin of the
processor/controller and the anode to the supply voltage through a current limiting
resistor.
• The LED is turned on when the port pin is at logic Low (Logic '0’).
• The 7-segment LED display is an output device for displaying alpha numeric
characters.
• It contains 7 LED segments arranged in a special form used for displaying alpha
numeric characters and 1 LED used for representing 'decimal point' in decimal number
display.
• The LED segments are named A to G and the decimal point LED segment is named
as DP.
• The LED segments A to G and DP should be lit accordingly to display numbers and
characters.
• The 7-segment LED displays are available in two different configurations, namely;
Common Anode and Common Cathode.
• In the common anode configuration, the anodes of the 8 segments are connected
commonly whereas in the common cathode configuration, the cathodes of 8 LED
segments are connected commonly.
• Based on the configuration of the 7-segment LED unit, the LED segment’s anode or
cathode is connected to the port of the processor/controller in the order 'A' segment to the
least significant port pin and DP segment to the most significant port pin.
• The current flow through each of the LED segments should be limited to the
maximum value supported by the LED display unit.
• The current can be limited by connecting a current limiting resistor to the anode or
cathode of each segment.
• 7-segment LED display is used in low cost embedded applications like Public
telephone call monitoring devices, point of sale terminals,
etc.
Stepper Motor:
A stepper motor is an Electro-mechanical device which produces a discrete rotation when
an input voltage applied to it.
Stepper motors are widely used in Industrial Embedded System, Consumer Electronics
and Robotics control system.
• Unipolar
• Bipolar
Current in one direction flows through one coil and current flows in the opposite direction
flows through the other coil.
It is easy to shift the direction of rotation by just switching the terminals to which the
coils are connected
For reversing the motor rotation the current flow through the windings is reversed
dynamically. It requires complex circuitry for current flow reversal.
Relay:
• Relay is an electro-mechanical device.
• In embedded application, the Relay unit acts as dynamic path selector for signals and
power.
• The Relay unit contains a relay coil made up of insulated wire on a metal core and a
metal armature with one or more contacts.
• When a voltage is applied to the relay coil, current flows through the coil, which in
turn generates a magnetic field.
• The magnetic field attracts the armature core and moves the contact point.
• The movement of the contact point changes the power/signal flow path.
• Figure given below illustrates the widely used relay configurations for embedded
applications.
• The Single Pole Single Throw configuration has only one path for information flow.
• For Normally Open Single Pole Single Throw relay, the circuit is normally open and
it becomes closed when the relay is energized.
• For Normally Closed Single Pole Single Throw relay, the circuit is normally closed
and it becomes open when the relay is energized.
• For Single Pole Double Throw configuration, there are two paths for
• information flow and they are selected by energizing or de- energizing the relay.
• Most of the industrial relays are bulky and require high voltage to operate.
• Special relays called 'Reed' relays are available for embedded application requiring
switching of low voltage DC signals.
• Push button switch comes in two configurations, namely 'Push to Make' and 'Push to
Break’.
• In the 'Push to Make' configuration, the switch is normally in the open state and it
makes a circuit contact when it is pushed or pressed.
• In the 'Push to Break' configuration, the switch is normally in the closed state and it
breaks the circuit contact when it is pushed or pressed.
• The push buttons stay in the ‘closed’ (For Push to Make type) or ‘open’ (For Push to
Break type) state as long as it is kept in the pushed state and it breaks/makes the circuit
connection when it is released.
• In embedded applications, push button is generally used as reset and start switch and
pulse generator.
• The Push button is normally connected to the port pin of the host processor/controller.
• Depending on the way in which the push button interfaced to the controller, it can
generate either a ‘HIGH’ pulse or a 'LOW' pulse.
• Figure illustrates how the push button can be used for generating 'LOW' and 'HIGH'
pulses.