BESCK104C 204C Module 4 PDF
BESCK104C 204C Module 4 PDF
Embedded Systems:
• An embedded system is an electronic/electro-mechanical system designed to
perform a specific function and a combination of both hardware and firmware
(software).
• Every embedded system is unique and the hardware as well as the firmware is
highly specialized to the application domain.
• Embedded systems are becoming an inevitable part of any product or equipment
in all fields including household appliances, telecommunications, medical
equipment, industrial control, consumer products, etc.
• Embedded system is a combination of 3 things
1. Hardware
2. Software
3. Mechanical component & it is supposed to do only one specific task only
Examples:
Example1: Washing Machine
b. Software: It has a chip on the circuit that holds the software which drives controls
& monitors various operations possible.
c. Mechanical components: the internals of a washing machine which actually
wash the clothes control the input and output of water.
Example-2: Air Conditioner
An Air Conditioner from an embedded systems point of view has:
a. Hardware: Remote, display & buzzer, infrared Sensors, electronic circuitry.
b. Software: It has a chip on the circuit that holds the software which drives control
& monitors the various operations possible. The software monitors the external
temperature through the sensos and then releases the coolant or suppresses it.
c. Mechanical components: The internals of an air conditioner the motor, the outlet,
etc.
vtucircle.com Page 2
Introduction to Electronics & Communication Module-4
vtucircle.com Page 3
Introduction to Electronics & Communication Module-4
1. Small-scale:
• It is suitable for simple applications.
• Performance not time-critical.
• It may oy may not contain OS.
• Built around low performance & low cost 8 or 16 bit µp/µc.
• Example: an electronic toy
2. Medium-scale:
• Slightly complex in hardware & firmware requirement.
• Built around medium performance & low cost 16 or 32 bit µp/µc.
vtucircle.com Page 4
Introduction to Electronics & Communication Module-4
vtucircle.com Page 5
Introduction to Electronics & Communication Module-4
vtucircle.com Page 6
Introduction to Electronics & Communication Module-4
systems through input ports by the end users to the system core.
• The system processes the signals and provide the control signals to the output
ports (actuators).
• 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.
• 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.
The Core of the Embedded Systems:
The core of the embedded system falls into any one of the following categories.
1. General Purpose and Domain Specific Processors
• Microprocessors
• Microcontrollers
• Digital Signal Processors
2. Programmable Logic Devices (PLDs)
3. Application Specific Integrated Circuits (ASICs)
4. Commercial off the shelf Components (COTS)
General Purpose and Domain Specific Processor:
Almost 80% of the embedded systems are processor/ controller based. The
processor may be microprocessor or a microcontroller or digital signal processor,
depending on the domain and application.
vtucircle.com Page 7
Introduction to Electronics & Communication Module-4
Microprocessor:
➢ A silicon chip representing a Central Processing Unit (CPU), which is capable of
performing arithmetic as well as logical operations according to a pre-defined set
of Instructions, which is specific to the manufacturer
➢ In general, the CPU contains the Arithmetic and Logic Unit (ALU), Control Unit
and Working registers
➢ Microprocessor is a dependent unit and it requires the combination of other
hardware like Memory, Timer Unit, and Interrupt Controller etc. for proper
functioning.
Developers of microprocessors:
➢ Intel – Intel 4004 – November 1971(4-bit)
➢ Intel – Intel 4040.
➢ Intel – Intel 8008 – April 1972.
➢ Intel – Intel 8080 – April 1974(8-bit).
➢ Intel – Intel 8085 – 1976.
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.
➢ 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.
Microprocessor Microcontroller
vtucircle.com Page 8
Introduction to Electronics & Communication Module-4
5. Used for high scale applications. 5. Used for low scale applications.
CISC RISC
vtucircle.com Page 9
Introduction to Electronics & Communication Module-4
➢
suffer from the presence of noise (i.e., unwanted signals).
➢ Further signal conditioning will be required before the signal will be at an
acceptable level and in an acceptable form for signal processing, display and
recording.
➢ Furthermore, because the signal processing may use digital rather than analog
signals an additional stage of analog-to-digital conversion may be required.
➢ Fig.(b) shows the arrangement of a control system. This uses negative feedback in
order to regulate and stabilize the output.
➢ It thus becomes possible to set the input or demand (i.e., what we desire the
output to be) and leave the system to regulate itself by comparing it with a signal
derived from the output (via a sensor and appropriate signal conditioning).
vtucircle.com Page 10
Introduction to Electronics & Communication Module-4
➢ A comparator is used to sense the difference in these two signals and where any
discrepancy is detected the input to the power amplifier is adjusted accordingly.
➢ This signal is referred to as an error signal (it should be zero when the output
exactly matches the demand).
➢ The input (demand) is often derived from a simple potentiometer connected across
a stable d.c. voltage source while the controlled device can take many forms (e.g.,
a d.c. motor, linear actuator, heater, etc.).
Transducers:
➢ Transducers are devices that convert energy in the form of sound, light, heat, etc.,
intoan equivalent electrical signal, or vice versa.
➢ Ex: A loudspeaker is a transducer that converts low frequency electric current
into audible sounds.
A microphone, on the other hand, is a transducer that performs the reverse
function i.e. that of converting sound pressure variations into voltage or current.
Loudspeakers and microphones can thus be considered as complementary
transducers.
➢ Transducers may be used both as inputs to electronic circuits and outputs from
them. From the two previous examples, it should be obvious that a loudspeaker
is an output transducer designed for use in conjunction with an audio system.
➢ A microphone is an input transducer designed for use with a recording or sound
reinforcing system.
Sensors:
➢ A sensor is a special kind of transducer that converts energy from one form to
anotherfor any measurement or control purpose.
vtucircle.com Page 11
Introduction to Electronics & Communication Module-4
➢ Sensors can also be classed as either digital or analog. The output of a digital
sensorcan exist in only two discrete states, either ‘on’ or ‘off’, ‘low’ or ‘high’, ‘logic
1’ or ‘logic 0’, etc.
Actuator:
Actuator is used for output. It is a transducer that may be either mechanical
orelectrical which converts signals to corresponding physical actions.
• LED is a p-n junction diode and contains a CATHODE and ANODE for
functioning the anode is connected to +ve end of power supply and cathode is
connected to –ve end of power supply.
• The maximum current flowing through the LED is limited by connecting a
resistor in series between the power supply and LED as shown in the figure.
• The Cathode of LED is connected to the port pin and Anode to Vcc : In this
approach the port pin sources the current to the LED when it is at logic high
vtucircle.com Page 12
Introduction to Electronics & Communication Module-4
(ie. 1). Here the port pin sinks the current and the LED is turned ON when the
port pin is at Logic low (ie. 0).
➢ 7-Segment Display:
• In most applications, the seven segments are of nearly uniform shape and size
(usually elongated hexagons, though trapezoids and rectangles can also be
used), though in thecase of adding machines, the vertical segments are longer
and more oddly shaped at the ends in an effort to further enhance readability.
• The segments of a 7-segment display are referred to by the letters A to G, where
the optional decimal point (an "eighth segment", referred to as DP) is used for
the display of non-integer numbers.
vtucircle.com Page 13