Introduction To Embedded Systems Byshibukv
Introduction To Embedded Systems Byshibukv
by Shibu K V
CT-4233
Chapter-1
Introduction to Embedded Systems
• What is an Embedded System?
An embedded system is an electronic/electro-mechanical system designed to
perform a specific function and is a combination of both hardware and
firmware(software).
Microprocessor Microcontroller
A silicon chip representing a central processing unit(CPU), A microcontroller is a highly integrated chip that contains a
which is capable of performing arithmetic as well as logical CPU, scratchpad RAM, special and general purpose register
operations according to a pre-defined set of instructions arrays, on chip ROM/FLASH memory for program storage,
timer and interrupt control units and dedicated I/O ports
It is a dependent unit. It is a self-contained unit.
Most of the time general purpose in design and operation Mostly application-oriented or domain-specific
Doesn’t contain a buit in I/O port Most of the processors contain multiple built-in I/O ports
Targeted for high end market where performance is important Targeted for embedded market where performance is not so
critical
Limited power saving options compared to microcontrollers Includes lot of power saving features
RISC CISC
Instruction pipelining and increased execution speed Generally no instruction pipelining feature
Orthogonal instruction set (Allows each instruction to operate Non-orthogonal instruction set
on any register and use addressing mode)
Operations are performed on registers only, the only memory Operations are performed on registers or memory depending on
operations are load and store the instruction
A large number of registers are available Limited number of general purpose registers
Programmer needs to write more code to execute a task since Instructions are like macros in C languages
the instructions are simpler ones
Single, fixed length instructions Variable length instructions
Less silicon usage and pin count Instructions are like macros in C language
• Latest ROM technology and is the most popular ROM technology used in today’s
embedded designs
• 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 others sectors or pages
• Erasable capacity of FLASH is 1000 cycles
NVRAM (Non-volatile RAM)
Actuators
Actuator is a form of transducer device (mechanical or electrical) which converts signals to
corresponding physical action (motion). Actuator acts as an output device.
Stepper Motor
An electro-mechanical device which generates discrete displacement (motion) in response to
dc electrical signals.
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. Eg: printer/fax
Unipolar
Bipolar
Unipolar
two windings per phase
Clockwise or anticlockwise
Current in one direction flows through one coil and in the opposite direction flows through
the other coil
Figure: 2-Phase unipolar stepper motor
Bipolar
Single winding per phase
For reversing the motor rotation the current flow through the windings is reversed
dynamically
Full Step
Wave Step
Half Step
Figure: Interfacing of stepper motor through driver circuit
Relay
• Electro-mechanical device
• Dynamic path selectors for signals and power
• 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.
Figure: Transistor based Relay driving circuit
Communication Interface
ZigBee
• Low power, low cost, wireless network communication protocol based on the IEEE
802.15.4.2006 standard
• Secure applications for Wireless Personal Area Networking (WPAN)
• Zigbee alliance (www.zigbee.org)
Other system components
• Reset Circuit
• Brown-out Protection Circuit
• Oscillator Unit
• Real-time Clock(RTC)
• Watchdog Timer