Edit - Module-5-Embedded System - New
Edit - Module-5-Embedded System - New
Image Courtesy of
Recording Connection of Canada
GENERAL-PURPOSE COMPUTERS
Expensive.
Image Courtesy of
Recording Connection of Canada
Low cost.
Image Courtesy of
Recording Connection of Canada
Based on Generation
Based on Triggering
Classification based on Generation
1st Generation ES: built around 8-bit microprocessors like 8085 and Z80 and 4-bit
microcontrollers.
2nd Generation ES: Built around 16-bit microprocessors and 8 or 16-bit microcontrollers
3rd Generation ES: Built around high performance 16/32 bit Microprocessors/controllers,
Application Specific Instruction set processors like Digital Signal Processors (DSPs), and
Application Specific Integrated Circuits (ASICs).The instruction set is complex and powerful.
Medium Scale ES: Built around medium performance, low cost 16 or 32 bit microprocessors /
microcontrollers or DSPs. These are slightly complex in hardware and firmware. It may
contain GPOS/RTOS.
1. Soft Real time Systems: Missing a deadline may not be critical and can be tolerated to
a certain degree.
2. Hard Real time systems: Missing a program/task execution time deadline can have
catastrophic consequences (financial, human loss of life, etc.)
1. Event Triggered : Activities within the system (e.g., task run-times) are dynamic and
2. Time triggered: Activities within the system follow a statically computed schedule
(i.e., they are allocated time slots during which they can take place) and thus by nature
are predictable.
Elements of Embedded systems
Microcontrollers and Microprocessors
RISC and CISC architecture
Reduced Instruction Set Architecture (RISC)
• To make hardware simpler by using an instruction set for loading, evaluating, and storing operations
• Just like a load command will load data, a store command will store the data.
Complex Instruction Set Architecture (CISC)
• Single instruction will do all loading, evaluating, and storing operations
• Just like a multiplication command will do stuff like loading data, evaluating, and storing it, hence it’s
complex.
RISC CISC
Uses only Hardwired control unit Uses both hardwired and microprogrammed control unit
Can perform only Register to Register Arithmetic operations Can perform REG to REG or REG to MEM or MEM to MEM
An instruction executed in a single clock cycle Instruction takes more than one clock cycle
An instruction fit in one word. Instructions are larger than the size of one word
Simple and limited addressing modes. Complex and more addressing modes.
Sensors and Interfacing
Instrumentation System
• The physical quantity to be measured (e.g. temperature) acts upon a sensor that produces an electrical output
signal.
• Since the output produced by the sensor may be small or may 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
digital conversion may be required.
Control Systems
• This uses negative feedback in order to regulate and stabilize the output. It thus becomes possible
to set the input/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).
• A comparator is used to sense the difference in these two signals and if 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
The sensing element is called the sensor. It is a device producing measurable response to change
in physical conditions.
Input parameters-
pressure, Transducing
temperature, force Sensing element Electrical signal
element
etc
Input and output transducers
An input transducer is used to convert various kinds of physical energy such as
pressure, temperature, force, sound and acceleration into electrical energy such
as electrical current or voltage.
An output transducer operates in reverse, i.e., it will convert electrical energy
into energy in a different physical domain.
For maximum flexibility and capability it’s typically best to sense the
environment using the desired input transducer, then employ an
amplifier/conditioner to direct the electrical signal from the transducer to an
analog to digital converter.
Similarly, when attempting to create a stimulus in the physical environment, it’s optimal to
process an electrical signal (typically in digital form, via software) in the desired fashion prior to
converting the signal into energy of a different physical form.
When attempting to influence the environment, via some type of physical stimulus, it’s optimal
to employ software to establish the nature of the stimulus signal and then use a digital to
analog converter to transform the digital -software produced- signal back into an electrical
signal form.
Finally, an output transducer can be used to transform the electrical signal into the desired
physical signal.
Potentiometer
Dynamic Microphone
Rotary
Potentiometer