ESD - Module 1 Notes
ESD - Module 1 Notes
1
History of Embedded Systems
5
Embedded hardware/software systems are basically designed to regulate a physical variable or to
manipulate the state of devices by sending signals through actuators connected to the output ports
of the system with response to the input signals by Sensors connected at input ports.
The Memory of the system is responsible for holding the control algorithm and other important
configuration details.
For Example, Embedded system is designed for any handheld application, such as a mobile
handset application, then the system should contain user interfaces like a keyboard for performing
input operations and display unit for providing users the status of various activities in progress.
II. Microcontrollers
A highly integrated silicon chip containing a CPU, scratch pad RAM, Special and
General-purpose Register, On Chip 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 or application specific.
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
6
III. Digital Signal Processors
DSP are powerful special purpose microprocessor designed to meet the computational
demands and power constraints.
DSP are 2 to 3 times faster than general purpose microprocessors in signal processing
applications.
DSPs implement algorithms in hardware which speeds up the execution whereas
general purpose processor implement the algorithm in software depends primarily on
the clock.
2. Application Specific Integrated Circuit (ASIC):
A microchip designed to perform a specific or unique application.
It is used as replacement to conventional general purpose logic chips.
ASIC integrates several functions into a single chip and thereby reduces the system
development cost.
ASIC consumes very small area in the total system
Design of smaller systems with high capabilities/functionalities.
ASICs can be pre-fabricated for a special application or it can be custom fabricated for a
particular customer application.
3. Programmable Logic Devices (PLDs):
Logic devices provide specific functions, including device-to-device interfacing, data
communication, signal processing, data display, timing and control operations, and almost
every other function a system must perform.
Programmable logic devices (PLDs) contain set of functions which can be re-configured
to perform any number of functions at any time.
PLDs are based on re-writable memory technology and the device is reprogrammed to
change the design.
Designers can use inexpensive software tools to quickly develop, simulate, and test
their logic designs in PLD based design.
The design can be quickly programmed into a device, and immediately tested in a live
circuit.
4. Commercial off the Shelf Component (COTS):
A Commercial Off-The-Shelf (COTS) product is one that can be used ‘as-is’ without any
modification..
COTS are designed in such a way to provide easy integration and interoperability with
existing system components.
Examples: Remote Controlled Toy Car control unit.
Notes:
Explain Digital Signal Processor 5 marks
DSP are powerful special purpose microprocessor designed to meet the computational
demands and power constraints.
DSP are 2 to 3 times faster than general purpose microprocessors in signal processing
applications.
DSPs implement algorithms in hardware which speeds up the execution whereas general
purpose processor implement the algorithm in software depends primarily on the clock.
7
DSP includes following key units:
1. Program memory: It is a memory for storing the program required by DSP to
process the data.
2. Data memory: It is a working memory for storing temporary variables and
data/signal to be processed.
3. Computational engine: It performs the signal processing in accordance with
computational engine incorporated many specialized arithmetic units and each of
them operates simultaneously to increase the execution speed.
It also includes multiple hardware shifters for shifting operands and saves
execution time.
4. I/O unit: It acts as an interface between the outside world and DSP. It is
responsible for capturing signals to be processed and delivering the processed
signals.
Examples: Audio video signal processing, telecommunication and multimedia
applications, SOP(Sum of Products) calculation, convolution, FFT(Fast Fourier
Transform), DFT(Discrete Fourier Transform), etc., are some of the operation performed
by DSP.
Explain the Programmable Logic Devices (PLDs): 4 marks
Logic devices provide specific functions, including device-to-device interfacing, data
communication, signal processing, data display, timing and control operations, and almost
every other function a system must perform.
Logic devices can be classified into two broad categories,
1. Fixed
2. Programmable.
1. Fixed logic device, a permanent circuit, perform one function or set of functions - once
manufactured, they cannot be changed.
2. Programmable logic devices (PLDs) contain set of functions which can be re-
configured to perform any number of functions at any time.
PLDs are based on re-writable memory technology and the device is reprogrammed to
change the design.
Designers can use inexpensive software tools to quickly develop, simulate, and test
their logic designs in PLD based design.
The design can be quickly programmed into a device, and immediately tested in a live
circuit.
Major types of Programmable Logic Devices (PLDs) – CPLDs and FPGA
1. Field Programmable Gate Arrays (FPGAs) and
2. Complex Programmable Logic Devices (CPLDs)
FPGA:
FPGA is an IC designed to be configured by a designer after manufacturing.
FPGAs offer the highest amount of logic density, the most features, and the highest
performance.
Logic gate is Medium to high density ranging from 1K to 500K system gates
8
These advanced FPGA, offer features such as built-in hardwired processors, substantial
amounts of memory, clock management systems, and support for many of the latest,
very fast device-to-device signaling technologies.
Examples: Data processing and storage, to instrumentation, telecommunications, and
digital signal processing etc.
Complex Programmable Logic Device (CPLD):
A complex programmable logic device (CPLD) is a programmable logic device with
complexity between that of PALs and FPGAs, and architectural features of both.
CPLDs, by contrast, offer much smaller amounts of logic - up to about 10,000 gates.
CPLDs offer very predictable timing characteristics and ideal for critical control
applications.
CPLDs, making them ideal for cost-sensitive, battery-operated, portable applications
such as mobile phones and digital handheld assistants.
Advantages OF PLDs:
PLDs offer customer much more flexibility during design cycle.
PLDSs do not require long lead times for prototype or production.
PLDs allow customers to order just the number of parts required when they need them.
PLDs are reprogrammable.
9
Differences between Microprocessor Vs Microcontroller:
10
Differences between CISC and RISC
[Link]. RISC CISC
1 Reduced Instruction Set Computing Complex Instruction Set Computing
3 Instruction pipelining and increased Instruction pipelining feature does not exist.
execution speed.
6 A larger number of registers are The number of general purpose registers are
available. very limited
11
It is usually used by a person or company for a very limited usage.
Developed for only the person or company who orders it can use it.
It is not useful for other usages, for example, an IC designed for cellular phones, no other
products can use it.
Only volume production of ASICs for one product can make sense which means low unit
cost for high volume products, otherwise the cost is not efficient.
Can exploit parallelism to achieve high performance and Low power consumption.
ASSP (Application Specified Standard Processor)
It is an integrated circuit that implements a specific function that appeals to a wide market,
which means its function is specified for example a motor drive chip.
It is used widely, not limited to only one customer as ASIC does.
ASSPs are available as off-the-shelf component which means you can go to electronic
shops and just buy it directly from the "shelf".
It addresses the product space between ASIC and generic processor based products
Extremely useful for low to medium volume applications because it help reduce cost and
design overheads.
Memory:
Memory is an important part of an embedded system.
Two types of memory,
1. Program Storage Memory (ROM)
2. Data memory (RAM).
Certain Embedded contain built in program memory and data memory and this memory is
known as on-chip memory
Certain Embedded do not contain sufficient memory inside the chip and requires external
memory called off-chip memory or external memory.
Program Storage Memory:
Stores the program instructions
Retains its contents even after the power to it is turned off.
It is generally known as Non-volatile storage memory
Depending on the fabrication, erasing and programming techniques they are classified into
1. PROM(OTP)
2. Masked ROM(MROM)
3. EPROM
4. EEPROM
5. NVRAM
6. FLASH
1. Masked ROM (MROM):
One-time programmable memory.
Uses hardwired technology for storing data.
The device is factory programmed by masking and metallization process according
to the data provided by the end user.
The primary advantage of MROM is low cost for high volume production.
MROM is the least expensive type of solid state memory.
12
The limitation with MROM based firmware storage is the inability to modify the device
firmware against firmware upgrades.
The MROM is permanent in bit storage, it is not possible to alter the bit information.
2. Programmable Read Only Memory (PROM) / (OTP):
It is not pre-programmed by the manufacturer.
The end user is responsible for Programming these devices.
PROM/OTP has poly-silicon wires arranged in a matrix, these wires can be functionally
viewed as fuses.
PROM programmer which selectively burns the fuses according to the bit pattern to be
stored.
Fuses which are not blown/burned represents a logic “1”.
Fuses which are blown/burned represents a logic “0”.
It is a low cost solution for commercial production.
OTPs cannot be reprogrammed.
13
It combines the re-programmability of EEPROM and the high capacity of standard
ROMs
FLASH memory is organized as sectors (blocks) or pages
FLASH memory stores information in an array of floating gate MOSFET transistors
The erasing of memory can be done at sector level or page level without affecting the
other sectors or pages
Each sector/page should be erased before re-programming
14
2. Dynamic RAM (DRAM)
Dynamic RAM stores data in the form of charge. They are made up of MOS transistor
gates
The advantages of DRAM are its high density and low cost compared to SRAM
The disadvantage is that since the information is stored as charge it gets leaked off with
time and to prevent this they need to be refreshed periodically
Special circuits called DRAM controllers are used for the refreshing operation. The refresh
operation is done periodically in milliseconds interval
15
Systems memory requirement depend primarily on the nature of the application that is
planned to run on the system.
Memory performance and capacity requirement for low cost systems are small, whereas
memory throughput can be the most critical requirement in a complex, high performance
system.
Following are the factors that are to be considered while selecting the memory devices
1. Speed
2. Data storage size and capacity
3. Bus width
4. Power consumption
5. Cost
Sensors & Actuators:
Embedded system is in constant interaction with the real world
The changes in the 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 controlling variable to bring the controlled variable to the desired value.
It is achieved through an actuator connected to the out port of the embedded system.
Sensor:
A transducer device which converts energy from one form to another for any measurement
or control purpose.
Sensors acts as input device
Example: IR, humidity, PIR(passive infrared), ultrasonic, piezoelectric, smoke sensors.
Actuator:
A form of transducer device (mechanical or electrical) which converts signals to
corresponding physical action (motion).
Actuator acts as an output device
Example: electric motor, hydraulic cylinder, pneumatic cylinder, and solenoid.
The I/O Subsystem:
The I/O subsystem of the embedded system facilitates the interaction of the embedded
system with 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, Optocouplers etc
Light Emitting Diode (LED):
16
Light Emitting Diode (LED) is an output device for visual indication in any embedded
system
LED can be used as an indicator for the status of various signals or situations
Typical examples are indicating the presence of power conditions like „Device ON‟,
„Battery low‟ or „Charging of battery‟ for a battery operated handheld embedded devices
LED is a p-n junction diode and it contains an anode and a cathode.
For proper functioning of the LED, the anode of it should be connected to +ve terminal of
the supply voltage and cathode to the –ve terminal of supply voltage
A resister is used in series between the power supply and the resistor to limit the current
through the LED
7-Segment LED Display:
The 7 – segment LED display is an output device for displaying alpha numeric characters
It contains 8 light-emitting diode (LED) segments arranged in a special form.
Out of the 8 LED segments, 7 are used for displaying alpha numeric characters
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;
1. Common anode and 2. Common cathode
In the Common anode configuration, the anodes of the 8 segments are connected
commonly whereas in the Common cathode configuration, the 8 LED segments share a
common cathode line.
LED segment anode or cathode is connected to the Port of the controller in the order „A‟
segment to the Least significant port Pin and DP segment to the most significant Port Pin.
17
Opto-coupler:
Stepper Motor:
Stepper motor is an electro mechanical device which generates discrete displacement
(motion) in response to dc electrical signals
It differs from the normal dc motor in its operation.
The dc motor produces continuous rotation on applying dc voltage whereas a stepper motor
produces discrete rotation in response to the dc voltage applied to it
Stepper motors are widely used in industrial embedded applications, consumer electronic
products and robotics control systems
The paper feed mechanism of a printer/fax makes use of stepper motors for its functioning.
Based on the coil winding arrangements, a two phase stepper motor is classified into
1. Unipolar
2. Bipolar
Unipolar: A unipolar stepper motor contains two windings per phase.
The direction of rotation (clockwise or anticlockwise) of a stepper motor is controlled by
changing the direction of current flow.
Current in one direction flows through one coil and 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.
18
Relay:
An electro mechanical device which acts as dynamic path selectors 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.
Relay works on electromagnetic principle.
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.
The Relay is normally controlled using a relay driver circuit connected to the port pin of
the processor/controller
A transistor can be used as the relay driver. The transistor can be selected depending on
the relay driving current requirements.
Piezo Buzzer:
It is a piezoelectric device for generating audio indications in embedded applications.
A Piezo buzzer contains a piezoelectric diaphragm which produces audible sound in
response to the voltage applied to it.
Piezoelectric buzzers are available in two types
1. Self-driving
2. External driving
Self-driving contains are the necessary components to generate sound at a predefined tone.
External driving piezo Buzzers supports the generation of different tones.
The tone can be varied by applying a variable pulse train to the piezoelectric buzzer.
A Piezo Buzzer can be directly interfaced to the port pin of the processor/Controller.
Push button switch:
Push Button switch is an input device.
Push button switch comes in two configurations, namely “Push to Make” and “Push to
Break”
The switch is normally in the open state and it makes a circuit contact when it is pushed or
pressed in the “Push to Make” configuration.
19
In the “Push to Break‟ configuration, the switch normally in the closed state and it breaks
the circuit contact when it is pushed or pressed
The push button stays in the “closed” (For Push to Make type) or “opens” (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.
Push button is used for generating a momentary pulse
Communication Interface:
Communication interface is essential for communicating with various subsystems of the
embedded system and with the external world
The communication interface can be viewed in two different perspectives; namely;
1. Onboard Communication Interface
2. External Communication Interface
1. On board communication interfaces:
The Communication channel which interconnects the various components within an
embedded product is referred as Device/board level communication interface (Onboard
Communication Interface)
These are classified into
1. I2C (Inter Integrated Circuit) Bus
2. SPI (Serial Peripheral Interface) Bus
3. UART (Universal Asynchronous Receiver Transmitter)
4. 1-Wires Interface
5. Parallel Interface
22
Universal Asynchronous Receiver Transmitter( UART):
UART is asynchronous type of serial communication.
In UART communication, two UARTs communicate directly with each other(TXD and
RXD pins).
The transmitting UART converts parallel data from a controlling device into serial form,
transmits it in serial to the receiving UART, which then converts the serial data back into
parallel data for the receiving device.
Only two wires are needed to transmit data between two UARTs.
8250 UART chip is considered as standard setting UART.
PARALLEL COMMUNICATION:
23
The communication channel is the number of electrical conductors used at the physical
layer to convey bits.
Parallel communication implies more than one such conductor.
For example, an 8-bit parallel channel will convey eight bits (or a byte) simultaneously,
whereas a serial channel would convey those same bits sequentially, one at a time.
Parallel communication is and always has been widely used within integrated circuits, in
peripheral buses, and in memory devices such as RAM.
24
Note:
RS-232 is a point-to-point communication interface and the devices involved in RS-232
communication are called „Data Terminal Equipment (DTE)‟ and „Data Communication
Equipment (DCE)‟.
If no data flow control is required, only TXD and RXD signal lines and ground line (GND)
are required for data transmission and reception.
The RXD pin of DCE should be connected to the TXD pin of DTE and vice versa for
proper data transmission.
If hardware data flow control is required for serial transmission, various control signal lines
of the RS-232 connection are used appropriately.
The control signals are implemented mainly for modem communication and some of them
may be irrelevant for other type of devices.
The Request to Send (RTS) and Clear To Send (CTS) signals co-ordinate the
communication between DTE and DCE.
Whenever the DTE has a data to send, it activates the RTS line and if the DCE is ready to
accept the data, it activates the CTS line.
The Data Terminal Ready (DTR) signal is activated by DTE when it is ready to accept
data.
Ring Indicator (RI) is a modem specific signal line for indicating an incoming call on the
telephone line.
The Data Set Ready (DSR) is activated by DCE when it is ready for establishing a
communication link.
DTR should be in the activated state before the activation of DSR.
The Data Carrier Detect (DCD) is used by the DCE to indicate the DTE that a good signal
is being received.
2. USB (UNIVERSAL SERIAL BUS):
The USB is a 4 wire bus that supports communication between a host and a
Peripheral.
It support maximum of 127number of peripherals.
The host controller allocates the bandwidth through a token based protocol.
25
The bus supports hot plugging, un-plugging and dynamic configuration.
All transactions are initiated by the host controller.
There are 4 types of transfer, endpoints.
1. The control transfers are used to configure the device.
2. The interrupt transfers are used for periodic data transfer.
3. The bulk transfers are used when rate of transfer is not critical.
4. The isochronous transfers have guaranteed delivery time but no error
correction.
The status of a completed USB transfer or error condition is indicated via status
registers.
An interrupt is also generated if enabled.
The DMA controller transfers data between the endpoint buffer and the USB
RAM.
26
5. GPRS
1. INFRARED:
Infrared is a certain region in the light spectrum
Ranges from .7μ to 1000μ or .1mm
Broken into near, mid, and far infrared
One step up on the light spectrum from visible light
Measure of heat
IR transmission:
The transmitter of an IR LED inside its circuit, which emits infrared light for every electric
pulse given to it.
This pulse is generated as a button on the remote is pressed, thus completing the circuit,
providing bias to the LED.
The LED on being biased emits light of the wavelength of 940nm as a series of pulses,
corresponding to the button pressed.
The IR LED is made to oscillate at this frequency for the time duration of the pulse. The
information or the light signals are pulse width modulated and are contained in the 38 KHz
frequency.
IR supports data rates ranging from 9600bits/second to 16Mbps
2. BLUETOOTH:
Bluetooth is a wireless technology standard for short distances (using short-wavelength
UHF band from 2.4 to 2.485 GHz)for exchanging data over radio waves.
Bluetooth uses a radio technology called frequency- hopping spread spectrum.
Bluetooth divides transmitted data into packets, and transmits each packet on one of 79
designated Bluetooth channels.
Each channel has a bandwidth of 1 MHz
3. Wi-Fi:
Wi-Fi is the name of a popular wireless networking technology that uses radio waves to
provide wireless high-speed Internet and network connections
Wi-Fi is intended for network communication and it supports Internet Protocol (IP) based
communication
Wi-Fi is intended for network communication and it supports Internet Protocol (IP) based
communication
Wi-Fi is the name of a popular wireless networking technology that uses radio waves to
provide wireless high-speed Internet and network connections
27
Wi-Fi based communications require an intermediate agent called Wi-Fi router/Wireless
Access point to manage the communications.
The Wi-Fi router is responsible for restricting the access to a network, assigning IP address
to devices on the network, routing data packets to the intended devices on the network.
Wi-Fi enabled devices contain a wireless adaptor for transmitting and receiving data in the
form of radio signals through an antenna.
Wi-Fi operates at 2.4GHZ or 5GHZ of radio spectrum and they co-exist with other ISM
band devices like Bluetooth.
Wi-Fi networks implements different security mechanisms for authentication and data
transfer.
4. ZIGBEE:
Zigbee is a high level communication protocols used to create personal area networks with
small, low-power digital radios, such as for home automation, medical device data
collection, and other low-power low- bandwidth needs, designed for small scale projects
which need wireless connection.
Hence, zigbee is a low-power, low data rate, and close proximity (i.e., personal area)
wireless ad hoc network.
Applications include wireless light switches, electrical meters with in-home-displays,
traffic management systems, and other consumer and industrial equipment that require
short-range low- rate wireless data transfer.
Its low power consumption limits transmission distances to 10– 100 meters line-of-sight,
depending on power output and environmental characteristics.
Zigbee devices can transmit data over long distances by passing data through a mesh network of
intermediate devices to reach more distant ones
28
1. ZC-Zigbee Coordinator:
The zigbee coordinator acts as the root of the zigbee network.
The ZC is responsible for initiating the Zigbee network and it has the capability to store
information about the network.
2. ZR-Zigbee Router:
Responsible for passing information from device to another device or to another ZR.
3. ZED-Zigbee end device:
End device containing zigbee functionality for data communication. It can talk only
with a ZR or ZC and doesn’t have the capability to act as a mediator for transferring
data from one device to another.
o Zigbee supports an operating distance of up to 100 metres at a data rate of 20 to
250 Kbps.
5. General Packet Radio Service(GPRS):
General Packet Radio Service (GPRS) is a packet oriented mobile data service on the
2G and 3G cellular communication system's global system for mobile communications
(GSM).
GPRS was originally standardized by European Telecommunications Standards Institute
(ETSI) GPRS usage is typically charged based on volume of data transferred, contrasting
with circuit switched data, which is usually billed per minute of connection time.
.
Services offered:
GPRS extends the GSM Packet circuit switched data capabilities and makes the following
services possible:
1. SMS messaging and broadcasting
2. "Always on" internet access
3. Multimedia messaging service (MMS)
4. Push-to-talk over cellular (PoC)
5. Instant messaging and presence-wireless village Internet applications for smart devices
through wireless application protocol (WAP).
6. Point-to-point (P2P) service: inter-networking with the Internet (IP).
7. Point-to-multipoint (P2M) service: point-to- multipoint multicast and point-to-
multipoint group calls.
29
30