Documente Academic
Documente Profesional
Documente Cultură
Introduction to Embedded
Systems
• What is an embedded system
• Embedded System v/s General Computing System
• Classification of Embedded Systems
• Major Application Areas of Embedded Systems
• Purpose of Embedded Systems
• Smart Running Shoes.
What is a system?
• Way of working , organizing or doing one or
more tasks according to a fixed plan ,program
or set of rules.
Hardware :
o Status display panel
o switches & dials
o Motor to rotate & spin
o power supply & control unit
o water sensors
o Valves for draining water in and out.
What is a system?
• Example 2 : Automated clothes washing
system ( washing machine)
• Follows a set of rules.
• Wash by spinning the motor for a
preprogrammed period.
• Rinse in fresh water after draining out dirty
water, & rinse the second time if the system is
not programmed in water saving mode.
What is a system?
• Example 2 : Automated clothes washing
system ( washing machine)
• At each step display the process stage of the
system.
• In case of an interruption, execute only the
remaining part of the process, starting from
the position when the process was
interrupted.
What is a system?
• Example 3: 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 controls & monitors the
various operations possible. The software monitors
the external temperature through the sensors and
then releases the coolant or suppresses it.
c. Mechanical Components: the internals of an air
conditioner the motor, the chassis, the outlet, etc.
Introduction to embedded systems
• Computing systems are everywhere
• Most of us think of “desktop” computers
– PC’s
– Laptops
– Mainframes
– Servers
• But there’s another type of computing system
– Far more common...
A “short list” of embedded
systems
• Anti-lock brakes •Electronic toys/games • Scanners
• Auto-focus cameras •Factory control • Smart ovens/dishwashers
• Automatic toll systems •Fax machines • Speech recognizers
• Automatic transmission •Fingerprint identifiers
•Home security • Stereo systems
• Avionic systems systems • Teleconferencing systems
• Battery chargers •Life-support systems • Televisions
• Camcorders •Medical testing • Temperature controllers
• Cell phones systems • Theft tracking systems
• Cell-phone base • Modems
•Network cards • TV set-top boxes
stations • VCR’s, DVD players
•Network
• Cordless phones switches/routers • Video game consoles
• Cruise control •Pagers • Video phones
• Digital cameras •Photocopiers • Washers and dryers
• Disk drives •Portable video games
• Electronic card readers •Printers
•Satellite phones
• Electronic instruments
Embedded System : Definition
1. “An embedded system is a system that has software embedded into
computer-hardware, which makes a system dedicated for an application (s)
or specific part of an application or product or part of a larger system.”
• general-purpose computer
Personal computers
• A general-purpose computer is itself made up of
numerous embedded systems.
• Example :
• A computer consists of a keyboard, mouse, video
card, modem, hard drive, floppy drive, and sound
card-each of which is an embedded system.
• Each of these devices contains a processor & software
and is designed to perform a specific function.
• A modem is designed to send & receive digital data
over an analog telephone line.
Embedded system: Block Diagram
Classification Of Embedded
System
The classification of embedded system is based
on following criteria's:
• On generation
• On complexity & performance
• On deterministic behaviour
• On triggering
Classification: On generation
1.First generation(1G):
• Built around 8bit microprocessor & microcontroller.
• Simple in hardware circuit & firmware developed.
• Examples: Digital telephone keypads.
2. Second generation(2G):
• Built around 16 – bit μp & 8 – bit μc.
• They are more complex & powerful than 1G μp & μc.
• Examples: SCADA systems
Classification: On generation
3. Third generation(3G):
• Built around 32 – bit μp & 16 – bit μc.
• Concepts like Digital Signal Processors(DSPs),
• Application Specific Integrated Circuits(ASICs) evolved.
• Examples: Robotics, Media, etc.
4. Monitoring:
• All embedded products coming under the medical domain are with
monitoring functions.
• Electro cardiogram machine is intended to do the monitoring of the heartbeat
of a patient but it cannot impose control over the heartbeat.
• Other examples with monitoring function are digital CRO, digital multi-meters,
and logic analyzers.
Purpose Of Embedded System
5. Control:
• A system with control functionality contains both sensors and actuators.
• Sensors are connected to the input port for capturing the changes in
environmental variable and the actuators connected to the output port
are controlled according to the changes in the input variable.
• Air conditioner system used to control the room temperature to a
specified limit is a typical example for CONTROL purpose.
Embedded
Hall Sensor
Smart Running Shoes: ADIDAS
Smart Running Shoes: ADIDAS
• Adidas created the world's first "smart shoe" by mating it with a computer chip
that adapts its cushioning level to a runner's size and stride.
• The Adidas 1 was the product of a three-year secret project the German
company developed at its U.S. headquarters in Portland, Ore.
• A shoe the company claimed will revolutionize distance running and training.
• "This is the first intelligent shoe ever," said Erich Stamminger, global marketing
director for Adidas. "It senses, understands and adapts.“
• The computerized shoe endured the wear-and-tear of running in almost any
condition -- from hard pavement to dirt trails, and dry streets to wet beaches.
• The entire assembly weighs no more than 40 grams -- just 10 percent of the
400-gram total weight of the shoe, to keep it light enough for distance runners.
• But the $250 price tag was likely to make it a luxury it.em
Smart Running Shoes: ADIDAS
Set- up:
• Hall effect sensor at the top of “cushioning element”.
(A Hall effect sensor is a transducer that varies its output voltage in response to
a magnetic field. Hall effect sensors are used for proximity switching, positioning, speed
detection, and current sensing applications)
• 3 V battery powers the motor and it lasts for 100 hours of running
Smart Running Shoes: ADIDAS
Algorithm:
• As the cushioning compresses on each impact, the sensor measures the distance from
top to bottom of the mid – sole. (accuracy ≈ 0.1 mm)
• 1000 readings/ second taken and relayed to the embedded µP
• An embedded algorithm is run and compression values are compared to the preset
ranges of proper cushioning levels.
• µP commands the micro motor to turn the lead screw to either lengthen/ shorten the
cable.
• Shortened cable: less cushioning; longer cable: more cushioning
• Change in cushion element: accounts for – change of running surface, change in pace of
the runner
• Changes are made over 4 running steps, not to give sudden changes
• Inspite of automatic cushion adjustments changes needed – adjust using +/ - buttons
• LED indicates when the electronics of the shoe is turned on
• LEDs are off when shoe is in use
• If electronic part not switched on: shoe remains in normal regular mode
• If not used for more than 10 minutes shoe turns off
A Typical
Embedded system:
Core of embedded
system
Introduction
• Embedded systems are domain and application
specific and are built around a central core.
• The core of the embedded system falls into any of
the following categories:
General purpose and domain specific processor.
Microprocessors
Microcontrollers
Digital signal processors
Application Specific Integrated Circuits (ASIC)
Programmable logic devices(PLD’s)
Commercial off – the – shelf components(COTs)
General purpose and domain specific processors
1.Microprocessors (µP)
• A microprocessor is a silicon chip representing a central
processing unit.
• It requires the combination of other hardware like memory,
timer unit, 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).
• Motorola – Motorola 6800.
• Intel – Intel 8085 –1976.
• Zilog - Z80 – July 1976
Microprocessors (µP)
• Intel
• Motorola
• AMD
• FreeScale
• IBM
• Hitachi
• NES
• Cyrix
2. Microcontrollers (µC)
• Highly integrated chip that contains 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.
• Texas Instrument’s TMS 1000 Is considered as the world’s first
microcontroller.
• Some embedded system application require only 8 bit controllers
whereas some requiring superior performance and computational
needs demand 16/32 bit controllers.
• The instruction set of a microcontroller can be RISC or CISC.
• Microcontrollers are designed for either general purpose
application requirement or domain specific application
requirement
Microcontrollers (µC)
• Intel
• PIC
• Atmel
• Zilog
• Freescale
• Toshiba
• Philips
• Texas Instruments
• Daewoo
• TDK
• Triscend
µP & µC
Microprocessor Microcontroller
Block diagram of microcontroller
Contains ALU, General purpose registers, stack Contains the circuitry of microprocessor, and in
pointer, program counter, clock timing circuit, addition it has built in ROM, RAM, I/O Devices,
interrupt circuit Timers/Counters etc.
It has many instructions to move data between It has few instructions to move data between
memory and CPU memory and CPU
Few bit handling instruction It has many bit handling instructions
Less number of pins are multifunctional More number of pins are multifunctional
Single memory map for data and code (program) Separate memory map for data and code (program)
Access time for memory and IO are more Less access time for built in memory and IO
It requires more additional hardware It requires less additional hardware
More flexible in the design point of view Less flexible since the additional circuits reside
inside the microcontroller
Large number of instructions with flexible Limited number of instructions with few addressing
addressing modes modes
RISC AND CISC CPU ARCHITECTURES
Microcontrollers with small instruction set are called reduced instruction set computer
(RISC) machines . Example: Microchip PIC 18F87X
Microcontrollers with complex instruction set are called complex instruction set
computer (CISC). Example: Intel 8051
RISC CISC
Instruction takes one or two cycles Instruction takes multiple cycles
Instructions executed by hardware Instructions executed by the micro program
Fixed format instruction Variable format instructions
Few addressing modes Many addressing modes
Few instructions Complex instruction set
Have multiple register banks Single register bank
Highly pipelined Less pipelined
Complexity is in the compiler Complexity in the microprogram
•
Harvard architecture Von Neumann architecture
The name is originated from “Harvard It is named after the mathematician and early
Mark I” a relay based old computer. computer scientist John Von Neumann.
It required two memories for their It required only one memory for their
instruction and data instruction and data
Design of Harvard architecture is Design of the von Neumann architecture is
complicated. simple.
Harvard architecture is required Von Neumann architecture is required only one
separate bus for instruction and data. bus for instruction and data.
Comparatively high cost. It is cheaper.
Uses CISC architecture Uses RISC architecture
Eg. 8085, 8086, MC6800 Eg. General purpose microcontrollers, special
DSP chips etc.
Digital signal processors (DSP)
• powerful , special purpose 8/16/32 bit
processors designed to meet computational
demands & power constraints of today’s
embedded audio , video & communication
applications.