SlideShare a Scribd company logo
1 of 100
Download to read offline
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56
The Typical Embedded System
Mr. Anand H. D.
1
The Typical Embedded System
Department of Electronics & Communication Engineering
Dr. Ambedkar Institute of Technology
Bengaluru-56
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 2
Definition
Embedded systems vs. General Computing Systems
Core of the Embedded System
Memory
Sensors and Actuators
Communication Interface
Embedded Firmware
Other System Components
PCB and Passive Components
Topics to be covered:
The Typical Embedded System
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 3
Definition
Embedded systems vs. General Computing Systems
Core of the Embedded System
Memory
Sensors and Actuators
Communication Interface
Embedded Firmware
Other System Components
PCB and Passive Components
Topics to be covered:
The Typical Embedded System
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 4
Embedded System:
Definition
Embedded System is combination of hardware and software, designed
for specific application or domain, whose applications ranges from simple toy
car to complex air traffic control system.
The Typical Embedded System
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 5
Definition
Embedded systems vs. General Computing Systems
Core of the Embedded System
Memory
Sensors and Actuators
Communication Interface
Embedded Firmware
Other System Components
PCB and Passive Components
Topics to be covered:
The Typical Embedded System
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 6
General Purpose Computing System
Embedded systems vs. General Computing Systems
The Typical Embedded System
Embedded System
īƒ˜A system which is combination of a generic
hardware and a general purpose OS for executing a
variety of applications
īƒ˜Contains general purpose Operating System (GPOS)
īƒ˜Applications are alterable (programmable) by the
users.(It is possible for end users to re-install OS, also
add/remove user applications)
īƒ˜Performance is the key deciding factor in selection
of the system. Always ‘Faster is Better’
īƒ˜Less/not at all tailored towards reduced operating
power requirements, options for different levels of
power management.
īƒ˜A system which is combination of special
purpose hardware and Embedded OS for executing
specific set of applications
īƒ˜May or may not contain Operating System
īƒ˜The firmware of the embedded system is pre-
programmed and it is non-alterable by the end
user
īƒ˜Application specific requirements(like
performance, power requirements, memory usage
etc.) are the key deciding factors.
īƒ˜Highly tailored to take advantage of the power
saving modes supported by all hardware and the
operating system
īƒ˜Response requirements are not time critical īƒ˜For certain category of Embedded systems like
mission critical systems, the response is time
critical
īƒ˜Need not be Deterministic in execution behavior īƒ˜Execution behavior is deterministic for certain
types of embedded systems like ‘Hard Real time
systems’
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 7
Definition
Embedded systems vs. General Computing Systems
Core of the Embedded System
Memory
Sensors and Actuators
Communication Interface
Embedded Firmware
Other System Components
PCB and Passive Components
Topics to be covered:
The Typical Embedded System
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 8
Typical Embedded System
The Typical Embedded System
System
Core
I/P Ports
(Sensors)
O/P Ports
(Actuators)
Memory
Other supporting
ICs & Subsystems
Embedded
Firmware
Embedded System
Real World
Communication
Interfaces
FPGA/ASIC/SoC/DSP
Microprocessor/Microcontroller/COTs
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 9
Core of the Embedded System
The Typical Embedded System
1. General Purpose and Domain Specific Processors
2. Application Specific Integrated Circuit (ASIC)
3. Programmable Logic Devices (PLDs)
4. Commercial Off the shelf Components (COTS)
a. Microprocessor
b. Microcontroller
c. Digital Signal Processor (DSP)
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 10
Core of the Embedded System
The Typical Embedded System
Microprocessor Microcontroller
īƒ˜A silicon chip representing a Central Processing
Unit (CPU) which is capable of performing arithmetic
as well as logical operations according to a predefined
set of instructions
īƒ˜It is dependent unit. It requires the combination of
other chips like timers. Program and data memory
chips, interrupt controller etc. for functioning
īƒ˜Most of the time general purpose in design and
operation
īƒ˜Doesn’t contain built in I/O port. I/O port
functionally needs to be implemented with the help of
external programmable peripheral interface chips like
8255
īƒ˜Targeted for high end market where performance is
important
īƒ˜A highly integrated chip that contains a CPU,
Scratchpad RAM, Special and general purpose
register arrays, on chip ROM/ Flash memory for
program storage, timer and interrupt control unit
and dedicated IO ports
īƒ˜It is self contained unit and it doesn't require
external interrupt control unit, timers, UART etc,
for functioning
īƒ˜Mostly application oriented and domain specific
īƒ˜Most of the processors contain multiple built in
I/O ports which can be operated as a single
8/16/32 bit port or individual port pin.
īƒ˜Targeted for embedded market where
performance is not so critical.(at present, it is
invalid)
īƒ˜Limited power saving options compared to
microcontroller
īƒ˜Includes lot of power saving features
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 11
Core of the Embedded System
The Typical Embedded System
Digital Signal Processor
īƒ˜Are powerful special purpose 8/16/32 bit microprocessor designed specifically to meet the
computational demands and power constraints of audio, video and communication applications.
īƒ˜2 to 3 times faster than General purpose Processors (architectural difference between the two)
īƒ˜In general DSP can be viewed as a microchip designed for performing high speed computational
operations for addition, subtraction multiplication and division.
īƒ˜A typical DSP incorporates the following key units:
Program Memory: for storing program required by DSP to process data
Data Memory: working memory for storing temporary variables and data/signal to be processed
Computational Engine: performs signal processing in accordance with stored program.
Computational engine incorporates many specialized arithmetic units and each of them operates
simultaneously to increase the execution speed and also shifters
I/O unit: acts as an interface between the outside world and DSP. It is responsible for capturing signals
to be processed and delivering the processed signals.
īƒ˜Audio, Video signal processing, telecommunication and multimedia applications are typical examples.
Involves Real time operations like Sum of Products(SoP), Convolution, FFT, DFT etc.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 12
Core of the Embedded System
The Typical Embedded System
RISC
Reduced Instruction Set Computer
CISC
Complex Instruction Set Computer
īƒ˜Lesser number of Instructions
īƒ˜Instruction Pipelining and increased execution
speed
īƒ˜Orthogonal Instruction set.(Allows each instruction
to operate on any register and use any addressing
mode)
īƒ˜A large number of Registers are available.
īƒ˜Programmer needs to write more code to execute a
task since the instructions are simpler ones
īƒ˜Greater number of instructions
īƒ˜Generally no instruction pipelining feature
īƒ˜Non-Orthogonal Instruction set.(All instructions
are not allowed to operate on any register and use
any addressing mode. It is instruction specific)
īƒ˜Limited number of general purpose registers.
īƒ˜Instructions are like macros in C language. A
programmer can achieve desired functionality
with a single instruction which in turn provides
the effect of using more number of instructions in
RISC
īƒ˜Single fixed length instructions īƒ˜Variable length instructions
īƒ˜Less silicon usage and pin count īƒ˜More silicon usage since more additional decoder
logic is required to implement the complex
instruction decoding
īƒ˜With Harvard Architecture īƒ˜Can be Harvard or Von-Neumann Architecture
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 13
Core of the Embedded System
The Typical Embedded System
Harvard Architecture Von-Neumann Architecture
īƒ˜Separate buses for instruction and Data fetching
īƒ˜Easier to pipelining, so high performance can be
achieved
īƒ˜Comparatively high cost
īƒ˜Single shared bus for instruction and data
fetching
īƒ˜Low performance compared to Harvard.
īƒ˜Cheaper
īƒ˜No memory alignment problem īƒ˜Allows self modifying codes
īƒ˜Since data memory and program memory are
stored physically in different locations, no
chances for accidental corruption of program
memory
īƒ˜Since data memory and program memory are
stored physically in same location there is
chance for accidental corruption of program
memory
I/O CPU Memory
Program
Memory
CPU
Data
Memory
Single shared
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 14
Core of the Embedded System
The Typical Embedded System
Big Endian vs. Little Endian Processors/Controllers
Base Address + 0
Base Address + 1
Base Address + 2
Base Address + 3
0x2000 (Base Address)
0x2001 (Base Address + 1)
0x2002 (Base Address + 2)
0x2003 (Base Address + 3)
BYTE 0
BYTE 1
BYTE 2
BYTE 3
Base Address + 0
Base Address + 1
Base Address + 2
Base Address + 3
0x2000 (Base Address)
0x2001 (Base Address + 1)
0x2002 (Base Address + 2)
0x2003 (Base Address + 3)
BYTE 3
BYTE 2
BYTE 1
BYTE 0
īƒ˜Lower-order byte of data is stored in memory at
lower address
īƒ˜Higher-order byte of data is stored in memory at
higher address
īƒ˜Lower-order byte of data is stored in memory at
higher address
īƒ˜Higher-order byte of data is stored in memory at
lower address
īƒ˜Endianness specifies the order in which the data is stored in memory by the processor operations in a
multi byte system.
īƒ˜Let us consider a 4 bytes long integer Byte 0, Byte 1, Byte 2 and Byte 3
Little Endian Operation Big Endian Operation
īƒ˜Assignment Q1: Consider Data 0xff001234, store this data in memory with starting address from 0x1d04,
Assume each memory location can accommodate 1 byte of data. Show diagrammatically Big Endian
Storage and Little Endian Storage.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 15
Core of the Embedded System
The Typical Embedded System
Load Store Operation and Instruction Pipelining
1. load R1,x
The concept of Load and Store Architecture
R1 R2 R3
00
7F
23
ALU
2. load R2,y
3. add R3,R1, R2
4. store R3,z
x
y
z
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 16
Core of the Embedded System
The Typical Embedded System
Instruction Pipelining
Fetch Execute
Fetch Execute
Fetch Execute
Fetch Execute
Fetch Execute Fetch Execute Fetch Execute Fetch Execute
1 2 3 4 5
1 2 3 4 5 6 7 8
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 17
Core of the Embedded System
The Typical Embedded System
Application Specific Integrated Circuit ( ASIC)
īƒ˜ASIC is a micro chip designed to perform a specific or unique application
īƒ˜Integrated several functions into a single chip and there by reducing system development cost. Most
of the ASICs are proprietary products,
īƒ˜As a single chip ASIC consumes a very small area in total system and thereby help to design smaller
systems with high capabilities/functionalities.
īƒ˜Can be pre-fabricated for a special application or it can be custom fabricated by using components
from a re-usable “building blocks” library of components for a particular customer application.
īƒ˜ASIC based systems are profitable only for large volume commercial products.
īƒ˜Production of ASIC requires a non-refundable initial investment for the process technology and
configuration expenses- NRE (Non Recurring Engineering Charges), it is one time investment
If NRE is borne by Third Party and ASIC is made openly available in the market, ASIC is
referred as Application Specific Standard Product (ASSP)
Disadvantages: Since ASICs are proprietary products, the developers of such chips may not be
interested in revealing the internal details of it, hence it is very difficult to point out example of it.
It creates legal disputes if an illustration of such an ASIC product is given without prior
permission from manufacturers of ASIC
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 18
Core of the Embedded System
The Typical Embedded System
Programmable Logic Devices( PLDs)
īƒ˜Logic devices provides specific functions, including device-to-device interfacing, data communication,
signal processing, data display, timing and control operation.
īƒ˜logic devices can be classified into 2 broad categories:
Fixed Logic Devices
Programmable Logic Devices
--- Perform one/set of functions once manufactured
--- offers customers a wide range of logic capacity, features, speed and
voltage characteristics
---can be reconfigured to perform no. of functions at anytime
īƒ˜With PLDs, designers use inexpensive software tools to quickly develop, simulate and test their
designs.
Design can be quickly programmed into a device and immediately tested in a live circuit.
īƒ˜There are no NRE costs and the final design is completed much faster than that of a custom, fixed
logic devices.
Key Benefit: During design phase customers can change the circuitry as often as they want until design
operates to their satisfaction.
PLD are based on re-writable memory technology. Once design is final, customers can go into
immediate production by simply programming as many PLDs as they need with final S/W design file.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 19
Core of the Embedded System
The Typical Embedded System
Programmable Logic Devices( PLDs) contd.
īƒ˜PLDs can be classified into 2 broad categories:
CPLDs
FPGAs
--- Complex PLDs
--- Field Programmable Gate Arrays
īƒ˜FPGAs offer highest amount of logic density, most features, highest performance
īƒ˜Largest FPGA now available is Xilinx Vertex with 8 million system gates
īƒ˜Advanced FPGAs also provides hardwired processors, substantial amount of memory, clock
management systems and support latest technologies.
īƒ˜Are used in wide variety of applications ranging from data processing and storage, instrumentation,
telecommunication and Digital Signal Processing
īƒ˜CPLDs offer much smaller amount of logic (10,000 Gates).
īƒ˜But offer very predictable timing characteristics and are ideal for critical control applications
īƒ˜Also requires low amount of power and very inexpensive, hence ideal for cost sensitive, battery
operated, portable applications such as mobiles and digital handheld assistances
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 20
Core of the Embedded System
The Typical Embedded System
Programmable Logic Devices( PLDs) contd.
īƒ˜Advantages of PLDs:
â€ĸ Offers more flexibility during design phase.
â€ĸ Doesn’t require long lead time for prototyping
â€ĸ Do not require large NRE cost
â€ĸ PLD offers customers to order just no. of parts they need, when they need them, allowing them to
control inventory. Fixed PLDs customers end up either with excess inventory or caught short of
parts which delays production.
â€ĸ Can be programmed even after it is shipped to customers-īƒ  up gradation by uploading program
files to internet
īƒ˜Few years ago largest FPGA measured is 10s thousands of system gates and operated at 40Mhz.
Currently million of gates with integrated functionality like Processors and memory, operating at 300MHz
Assignment Q2: Which is the largest FPGA currently available in market and
what is its operating frequency?
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 21
Core of the Embedded System
The Typical Embedded System
Commercial Off the Shelf Components ( COTS)
īƒ˜Designed in such a way to provide easy integration and inter-operability with existing system
components.
īƒ˜May be developed around a general purpose/ domain specific/ ASIC/ PLD
īƒ˜Typical examples -īƒ  remote controlled toy car unit including the RF circuitry part, high performance
and high frequency microwave electronics, high bandwidth ADC, devices and components for operation
at very high temperature, electro-optic IR imaging arrays, UV/IR detectors etc.
īƒ˜Readily available in market, cheap and a developer can cut down his/her development time to a great
extent, reducing time to market.
īƒ˜TCP/IP plug in module available from various manufacturers like WIZnet, Freescale, Dynalog etc. are
very good examples of COTS
īƒ˜You have to identify COTS for your system and give plug-in option on your board
īƒ˜Though multiple vendors supply COTS for same application there is no operational and manufacturing
standards
īƒ˜COTS manufactured by a vendor need not be having hardware plug-in and firmware compatibility with
one manufactured by a second vendor.
This restricts end-users to stick to a particular vendor for a particular COTS
īƒ˜COTS Manufacturers may withdraw the product/discontinue at any time if a rapid change in
technology occurs.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 22
Definition
Embedded systems vs. General Computing Systems
Core of the Embedded System
Memory
Sensors and Actuators
Communication Interface
Embedded Firmware
Other System Components
PCB and Passive Components
Topics to be covered:
The Typical Embedded System
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 23
The Typical Embedded System
Memory
On-Chip Memory and Off-chip Memory
Serial Memory and Parallel Memory
Program Storage Memory (ROM):
Code
Memory
(ROM)
MASK ROM
(MROM)
EPROM EEPROM
NVRAM
FLASH
PROM
(OTP)
ROM and RAM
Volatile Memory and Non Volatile Memory
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 24
The Typical Embedded System
Memory
Masked ROM īƒ  One Time Programmable
īƒ  Programmed by masking and metallization process at the time of production
itself based on input given by user
īƒ  Low cost, good for storing Firmware for low cost embedded devices.
īƒ Once the design is proven and tested, the binary data corresponding to it can
be given to MROM Fabricator
īƒ Disadvantage: disability to modify Firmware
PROM īƒ  One Time Programmable
īƒ  Unlike MROM it is not preprogrammed by manufacturer
īƒ  The end user programs these devices.
īƒ has nichrome/polysilicon arranged as matrix. These wires can be used as
fuses.
īƒ it is programmed by selectively burning these fuses according to bit pattern
to be stored
īƒ fuses not blown represents ‘1’ and those blown are logic ‘0’. Default state is
logic ‘1’
īƒ used for commercial production of embedded systems whose prototype is
proven and code is finalized.
īƒ low cost is advantage but cannot be reprogrammed
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 25
The Typical Embedded System
Memory
EPROM īƒ  Provides the flexibility to reprogram the same chip
īƒ  Stores the bit information by charging the FET gate
īƒ  Contains quartz crystal window for erasing the stored information.
īƒ if this window is exposed to UV rays for a fixed duration, the entire memory will be erased
īƒ for erasing process, it needs to be taken out of circuit board and put in a UV eraser device
for 20-30 mins, which is tedious and time consuming
EEPROM īƒ  Information contained in EEPROM can be altered by electrical signals at register/byte level
īƒ  Can be erased and reprogrammed in-circuit
īƒ consists of a ‘chip erase mode’, in this mode they can be erased in ms.
īƒ provides flexibility for system design
īƒ only limitation is capacity compare to standard ROM
FLASH īƒ  Latest ROM
īƒ  Variation of EEPROM
īƒ combines flexibility of EEPROM + High capacity of Standard ROM.
īƒ organized as sectors(blocks) or pages.
īƒ stores information in an array of floating gate MOSFET transistors.
īƒ memory can be erased at sector/page level without erasing other sectors
īƒ each page/sector must be erased before reprogramming, typical erase cycles is 1000 cycles
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 26
The Typical Embedded System
Memory
NVRAM īƒ  Memory with battery back up
īƒ  Consists of SRAM memory with minute battery
īƒ  Memory and battery are packed in a single package
īƒ life span is expected to be around 10 years
Data
Memory
(RAM)
DRAM NVRAM
SRAM
Read/ Write Memory or Random Access Memory (RAM):
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 27
The Typical Embedded System
Memory
SRAM īƒ  Data is stored in the form of voltage
īƒ  Made up of flip-flops
īƒ  Fastest form of RAM
īƒ typically realized using 6 MOSFETS
4 for building flip-flops; 2 for controlling access
īƒ in simple form SRAM is a 2 Cross-coupled inverters with read/write control through transistor.
īƒ access to memory cell is controlled by word line
īƒ for writing, desired value is applied to bit line controller. i.e. for 1, B=1 and B’=0
for 0, B=0 and B’=1
īƒ for reading, both the bit lines are asserted/set as 1 and word line is set to 1
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 28
The Typical Embedded System
Memory
DRAM īƒ  Dynamic RAM
īƒ  Data is stored in the form of charge
īƒ  Made up of a MOS transistor gate
īƒ high density and low cost
īƒ Charge gets leaked away hence periodic refresh is done
īƒ DRAM Controller refreshes DRAM after certain msecs.
īƒ MOSFET acts as gate for incoming and outgoing data
īƒ capacitor acts as bit storage unit
SRAM DRAM
īƒ made up of 6 CMOS transistors (MOSFETs) īƒ made up of a MOSFET and capacitor
īƒ doesn’t require refresh īƒ periodic refresh is necessary
īƒ low capacity (less dense) īƒ high capacity
īƒ expensive
īƒ fast in operation, 10 ns access time
īƒ less expensive
īƒ slow in operation due to refreshment
60 ns access time
Write is faster than read
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 29
The Typical Embedded System
Memory
Memory Shadowing
īƒ  ROM access speed is very slow compared to
RAM
īƒ  RAM is 3 times faster than ROM
īƒ  Shadowing technique is adapted to solve
execution speed problem
īƒ Basic I/P O/P configuration ROM or BIOS stores hardware configuration information
like address of various ports.
Now manufactures include RAM behind BIOS at its same address, as a shadow BIOS
īƒ First step during Boot up is copying of BIOS to shadowed RAM and write protecting
this RAM and disabling BIOS
īƒ RAM is volatile but ROM is permanent, therefore high system performance is
achieved by accessing RAM instead of ROM
ROM
RAM
Non Volatile Slower
Faster Volatile
Advantage Limitation
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 30
The Typical Embedded System
Memory
Memory Selection for Embedded System
īƒ Code Memory (ROM)
īƒ  Data Memory (RAM)
Application Specific
īƒ if made up of Soc/MC, on-chip memory may be enough, if not must be interfaced with external/off-
chip memory
īƒ ROM + RAM to execute program code, for RTOS based embedded system extra RAM is required for
Memory Shadowing
īƒ Memory Chip Size īƒ available in standard size like 512/1024 bytes (1Kb, 2Kb, 4Kb, 8Kb, 1Gb, 2Gb,
4Gb, 8Gb)
īƒ suppose memory required is 740 bytes, 1Kb chip can be selected
īƒ word size īƒ no. of bits that can be accessed simultaneously, word size <==> bus size
īƒ currently FLASH memory is used
īƒ FLASH memory īƒ NAND FLASH memory
īƒ NOR FLASH memory
īƒ High density, low cost, DRAM is used
īƒ low density, slightly expensive but supports XIP
(execute in place)
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 31
Definition
Embedded systems vs. General Computing Systems
Core of the Embedded System
Memory
Sensors and Actuators
Communication Interface
Embedded Firmware
Other System Components
PCB and Passive Components
Topics to be covered:
The Typical Embedded System
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 32
The Typical Embedded System
Sensors and Actuators
īƒ  Sensor is a transducer that converts energy from one form to another for any
measurement and control purpose
īƒ  Actuator is a transducer device (mechanical/electrical) which converts signals to
corresponding physical actions
īƒ  Input Output Subsystem facilitates interaction between Embedded System
and external world
Light Emitting Diode (LED)
īƒ o/p device for visual indication of signal status like
device ON, Battery Low, charging state
īƒ its an p-n junction diode,
anodeīƒ  +ve terminal of Power supply
cathodeīƒ  -ve terminal of Power supply
īƒ current conducted by LED is limited, therefore to limit current through LED within
maximum value, resistor is connected in series
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 33
The Typical Embedded System
Sensors and Actuators
LED and MP/MC is interfaced in 2 ways
īƒ  Anode is connected to port pi of MP/MC and cathode is connected to ground
īƒ  Cathode is connected to port pin and anode is connected to power supply
īƒ brightness depends on current sourced by port pin,
may be not of required level
īƒ brightness is of required level
Seven Segment Display
īƒ o/p device for displaying alpha-numeric characters
īƒ 8 LED segments are arranged in special form
īƒ 7 are used for displaying Alpha-numeric characters
named as A to G
īƒ 1 LED is used for displaying decimal point in
decimal numbers and named as DP
īƒ popular choice for low cost Embedded applications
like public telephone call monitoring device, point of
sale terminal etc.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 34
The Typical Embedded System
Sensors and Actuators
When interfaced with MP/MC 8 LEDs are connected such that A is connected to LSB
port pin and DP is connected to MSB port pin
īƒ  Can be interfaced with MP/MC using any of 2 configurations:
īƒ  In Common anode, anodes of all the LEDs
are connected commonly and connected to 5V
power supply whereas cathode of each LED is
connected to Port Pins
īƒ Common Anode
īƒ  Common Cathode
īƒ  In Common cathode, cathodes of all the
LEDs are connected commonly and connected
to ground whereas anode of each LED is
connected to Port Pins
īƒ  The current through each LED must be limited below maximum value. It is typically
20mA by connecting current limiting resistor to anode/cathode
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 35
The Typical Embedded System
Sensors and Actuators
Optocoupler:
īƒ to isolate 2 parts of circuit
īƒ can be used for suppressing data interference in data
communication, circuit isolation, high voltage
separation, signal intensification
īƒ LED + photo transistor in single package
īƒ optocoupler can be used at input or output of a
circuit
īƒ optocoupler is available as ICīƒ  MCT2M
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 36
The Typical Embedded System
Sensors and Actuators
Stepper motor:
īƒ electro-mechanical device that generates discrete displacement in response to DC
electrical signals
īƒ based on coil winding arrangements, a 2 phase stepper motor is classified into 2
types:
īƒ widely used in industrial embedded applications, consumer electronic products and
robotic control systems
īƒ Unipolar Stepper Motor
īƒ  Bipolar Stepper Motor
Unipolar Stepper Motor
īƒ 2 windings per phase
īƒ direction of rotation is controlled by changing direction of current flow
īƒ current in these 2 coils flow in opposite direction wrt. to each other
īƒ change of direction implies changing/switching terminals to which
coils are connected
īƒ coils are represented as A, B, C and D. A & C carry current in opposite
direction for phase 1, similarly B & D carry current in opposite direction
for phase 2
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 37
The Typical Embedded System
Sensors and Actuators
Bipolar Stepper Motor
īƒ single winding per phase
īƒ direction of motor rotation is dynamically reversed
īƒ complex circuit is necessary for current reversal
Implementation: by changing sequence of activation of stator windings different stepping
modes can be implemented
Step A B C D
1 H H L L
2 L H H L
3 L L H H
4 H L L H
Both phases are energized simultaneously
Full Step:
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 38
The Typical Embedded System
Sensors and Actuators
Step A B C D
1 H L L L
2 L H L L
3 L L H L
4 L L L H
Only one phase will be active at a time
īƒŸ Wave Step:
Step A B C D
1 H H L L
2 H L L L
3 L H H L
4 L H L L
5 L L H H
6 L L H L
7 H L L H
8 L L L H
Combination of full step and wave step
Half Step:īƒ 
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 39
The Typical Embedded System
Sensors and Actuators
īƒ 2 phase unipolar stepper motors are popular choice
īƒ therefore special circuits are required to interface stepper motor to MP/MC=> COTS->
ULN2803
īƒ current requirement for stepper motor is little high, hence port pin of MP/MC may not
be able to drive stepper motor, normally requires 5v-24v supply voltage
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 40
The Typical Embedded System
Sensors and Actuators
Relay:
īƒ electro-mechanical device
īƒ made up of 2 components:
īƒ dynamic path selector for signals and power
Relay coil
Metal armature
īƒ made up of insulated wire wound over a metal core
īƒ with one or more contacts
īƒ works on electromagnetic principle
when voltage is applied to relay coil, current flows through the coil which generates
magnetic field, this magnetic field attracts/reflects armature and moves the contact
point
īƒ 2 configurations īƒ single core and single throw
īƒ single core and double throw
īƒ only 1 path for information flow
īƒ 2 paths for information flow and selected by
energizing and de-energizing the coil
īƒ single core and single throw
īƒ normally open
īƒ normally closed
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 41
The Typical Embedded System
Sensors and Actuators
īƒ normally controlled using a relay driver circuit connected to the port pins of MP/MC
īƒ free wheeling diode is for protecting relay and transistor
īƒ relay driver circuit is built using transistor
īƒ special relays īƒ  Reeds are available for embedded applications for switching low
voltage DC signals
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 42
The Typical Embedded System
Sensors and Actuators
Piezo-buzzer:
īƒ piezo-electric device for generation of audio indication in embedded applications
īƒ 2 configurations:
īƒ piezo electric diaphragm produces audible sound in response to applied voltage
īƒ Self Driving
īƒ  External Driving
īƒ generates sound at a predefined tone
īƒ supports generation of different tones.
Tone can be varied by applying variable pulse train
īƒ can be directly interfaced or through a transistor based driver circuit
Push Button Switch:
īƒ input device
īƒ 2 configurations:
īƒ Push to make
īƒ  Push to break
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 43
The Typical Embedded System
Sensors and Actuators
īƒ Push to make
īƒ  Push to break
īƒ switch is normally open
īƒ makes contact when pushed or pressed
īƒ remains in the closed state unless it is released
īƒ when released breaks connection
īƒ switch is normally closed
īƒ breaks the contact when pushed or pressed
īƒ remains in the open state unless it is released
īƒ when released circuit connection is made back
īƒ used for generating a momentary pulse i.e.
pulse generator, reset and start pulse
īƒ high pulse/ low pulse depends on how it is
interfaced with MP/MC
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 44
The Typical Embedded System
Sensors and Actuators
Keyboard:
īƒ input device
īƒ if keys required is very less, push buttons can be directly interfaced to port pins
īƒ best solution for such case is Matrix keypad
īƒ it generally reduces to number of interface
connections. For example
If 16 keys required, it requires 16 port pins
Instead if 4x4 matrix keypad is used only
4+4 =8 port pins are required i.e. 50%
reduced
īƒ In matrix keyboard, keys are arranged in
matrix fashion
īƒ if large number of keys are required for user inputs then it is not possible to interface
all the keys, also it will be wastage of port pins
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 45
The Typical Embedded System
Sensors and Actuators
Detecting a Key pressed:
īƒ Scanning Technique
īƒ each row of matrix is pulled low and column is read
īƒ when row is pulled low and a key connected to that is pressed then
when status of column is read, it gives logic 0
īƒ Disadvantage: keys are mechanical therefore suffer from
Switch Debouncing īƒ  multiple key pressed effect for
single key pressed
īƒ after reading status of each column corresponding o a row, that row is pulled high and next row is
pulled low and process is repeated unless all the rows are checked
īƒ H/w key Debouncing circuits:
īƒ S/W key Debouncing technique:
īƒ additional H/W is required
īƒ once key pressed is detected, it is read again after
certain debouncing delay, if key pressed is genuine,
the state remain same on second read also.
īƒ pull up resistors are connected to column lines to limit the
current that flows through rows when key is pressed
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 46
The Typical Embedded System
Sensors and Actuators
Programmable Peripheral Interface:
īƒ used for enhancing I/O capabilities of MP/MC
īƒ MP/MC provides limited number of I/O port pins, in some cases there may be need for
more number of I/O pins than that is supported by MP/MC
īƒ 8255A is popular PPI device īƒ it supports 24 I/O pins
īƒ three 8 bits parallel ports īƒ  port A, port B and port C
īƒ or two 8 bits parallel ports īƒ  port A and port B
īƒ Port C as 8 individual port pins
or
Two 4-bit parallel portsīƒ  Port C
upper and Port C Lower
Control Register of 8255A
Assignment Q3: Explain the bit fields of
Control Register of 8255A PPI Device
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 47
Definition
Embedded systems vs. General Computing Systems
Core of the Embedded System
Memory
Sensors and Actuators
Communication Interface
Embedded Firmware
Other System Components
PCB and Passive Components
Topics to be covered:
The Typical Embedded System
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 48
The Typical Embedded System
Communication Interface
īƒ essential for communicating with various subsystems of the embedded system and
also with other systems.
īƒ 2 prospective:
īƒ Device/Board level
īƒ  Product level
īƒ on-board Communication Interfaces
īƒ External Communication Interfaces
īƒ On-board Communication Interfaces => communication links which interconnect
different subsystems/components with in a Embedded System
īƒ External Communication Interfaces => communication links which facilitates
interaction and data transfers between different devces/systems in a distributed
networkīƒ  wired or wireless
Examples: I2C, Serial Peripheral Interface, UART, 1-wire interface, Parallel
Interface
Examples: RS 232C & RS 485, USB, IEEE 1394, IrDA, Bluetooth, Wi-Fi, Zig bee,
GPRS
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 49
The Typical Embedded System
Communication Interface
On-board Communication Interfaces
Inter Integrated Circuit (I2C) Bus:
īƒ synchronous, bi-directional, half duplex & 2 wire serial interface bus
īƒ concept of I2C busīƒ  Philips Semiconductor in early 1980s
īƒ original intentionīƒ  provide easy communication interface between MP/MC and
other peripheral chips of TV
īƒ 2 wires:
īƒ Serial Clock (SCL)
īƒ  Serial Data (SDA)
SCL īƒ  for generation of clock pulse for
synchronization
SDA īƒ  for transmitting serial data between the
devices
īƒ Shared bus system īƒ  multiple devices connected to a single bus
īƒ Device īƒ  Master/Slave
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 50
The Typical Embedded System
Communication Interface
Master īƒ  controls communication by initiating/terminating data transfer, it sends
data, generates synchronous clock pulse
I2C īƒ  Supports multiple master devices
īƒ connection of master and slave on I2C bus is as
shown in figure
Slave īƒ  waits for the commands from Master and responds on receiving the commands
Master/Slave īƒ  Transmitter/receiver, regardless of Transmitter/receiver Master
generates the clock pulse
īƒ for proper operation of bus both the lines are
pulled to high voltage īƒ¨ 5V for TTL logic and 3V for
CMOS Family devices, through pull up resistors of
2.2 Kâ„Ļ
īƒ therefore with pull-up resistors, the output lines
of bus in ‘idle state’ is High
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 51
The Typical Embedded System
Communication Interface
Sequence of operations for communicating between Master & Slave:
īƒ  START Condition for data transfer
īƒ master device sends address (7-10 bits) of slave
device with which it wants to communicate over SDA
īƒ  Master device pulls the clock line (SCL) HIGH
Therefore: SCL īƒ  HIGH
SDA īƒ  LOW
īƒ master device sends read/write bit
i.e. if Bit Value = 1, READ operation
Bit Value = 0, WRITE operation
īƒ  Master device pulls the data line (SDA) LOW
īƒ master device waits for the acknowledge bit from
the slave device, whose address is sent along along
with read/write operation command
īƒ salve compares received address with its address
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 52
The Typical Embedded System
Communication Interface
īƒ upon receiving acknowledgement bit master device sends 8 bits data to slave device
over SDA line īƒ¨ if requested operation is ‘WRITE to device’ else
īƒ  slave device with address requested by the master responds by sending
acknowledgement (Bit value 1) over SDA line
if requested operation is ‘READ from device’ then slave device sends data to master
over SDA line.
īƒ master device awaits for the acknowledge bit
from the slave device upon byte transfer if WRITE
operation else sends a acknowledgement bit to
salve for READ operation
īƒ master device terminates the transfer by pulling
SDA line HIGH when SCL is HIGH
īƒ  STOP Condition for data transfer
Therefore: SCL īƒ  HIGH
SDA īƒ  HIGH
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 53
The Typical Embedded System
Communication Interface
Standard Mode
īƒ  I2C supports different data rates:
Fast Mode
High Speed Mode
īƒ 100 kbps
īƒ 400 kbps
īƒ 3.4 Mbps
Serial Peripheral Interface (SPI) Bus:
īƒ synchronous, bi-directional, full duplex & 4 wired serial interface bus
īƒ concept was first developed by Motorola
īƒ supports single master and multiple slave
īƒ also supports more than one master īƒ¨ only one master is active at a time
4 wires:
īƒ Master Out Slave In (MOSI)īƒ Slave In/Slave Data In(SI/SDI)
īƒ  Master In Slave Out (MISO)īƒ Slave Out/Slave Data Out(SO/SDO)
īƒ Serial Clock (SCL) īƒ  carry clock signal
īƒ  Slave Select (SS) īƒ  active low
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 54
The Typical Embedded System
Communication Interface
īƒ Master īƒ generates Clock Pulses
īƒ selects the slave device by asserting the slave selecting signal low
īƒ Data exchange through SPIīƒ  fully configurable
īƒ Serial Peripheral Control Register
īƒ  stores all configuration parameters
like selection of master/slave for data
transfer, selection of baud rate for
communication, clock signal control,
whether MSB/LSB should be sent first
īƒ SPI works on Principle of Shift register
īƒ therefore Shift registers of Master & Slave form a Circular buffer
1
0
0
0
0
1
1
0
0
0
1
0
1
0
0
1
1
0
0
0
0
1
1
0
0
0
1
0
1
0
0
1
Master Slave
MOSI
MISO
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 55
The Typical Embedded System
Communication Interface
īƒ master and slave devices contains a special shift registers for data transfer. Size of the
shift register is device dependent, normally it is multiple of 8
īƒ suitable for applications which supports data transfer in streams
īƒ only disadvantage is that it doesn’t support acknowledgement mechanism
Universal Asynchronous Receiver Transmitter (UART) Interface:
īƒ asynchronous type of data transmission
īƒ no need of clock pulse
īƒ transmission takes place based on predefined agreement between Transmitter &
Receiver
īƒ serial communication settings: Baud rate, number of start bits, parity, number of
bits per byte and flow control, should be identical between transmitter & receiver
īƒ special bits in data stream indicates start and stop of data transmission
īƒ while sending a data byte, a start bits are added first and stop bits are added the end
of a byte of data LSB follow start bit.
Start bit
MSB LSB
Stop bit
parity bit
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 56
The Typical Embedded System
Communication Interface
īƒ  Start bits inform receiver that a data byte is about to arrive
īƒ  If baud rate is x bps, time slot for each bit is 1/x seconds. For example if baudrate is
5 then 1/5 seconds.
1/5 (1000) ms = 200ms
īƒ  If parity is enabled then UART of transmitting device adds parity bit
1 īƒ  number of 1’s is odd
0 īƒ  number of 1’s is even
or vice-versa
īƒ  UART on receiver device calculates the parity of bits received and compares it with
parity bit for error checking
īƒ  UART on receiver device discards the ‘Start’, ’Stop’ and ‘Parity’ bits from received
bit stream and converts the received signal bits into words
īƒ  For proper communication, transmitter
line of sending device must be connected to
receiver line of receiving device.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 57
The Typical Embedded System
Communication Interface
īƒ  UART chips are available from different semiconductor manufacturers but National
Semiconductor’s 8250 UART is considered to be standard
īƒ  Now a days most of the MP/MC are available with integrated UART functionality and
they provide built-in instructions to support serial data transmission and reception
1 wire Interface:
īƒ asynchronous, half duplex
īƒ developed by Maxim Dallas Semiconductors
īƒ also known as Dallas 1 wire protocol
īƒ made up of only single signal line called as
DQ for communication, follows master slave
communication model
īƒ supports single master and one or more slave
devices
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 58
The Typical Embedded System
Communication Interface
8 bits family codeīƒ  TTL/CMOS
īƒ  Every 1-wire device contains a globally unique 64 bits identification number. This
UIN can be used for addressing individual devices on bus.
48 bits serial number
8 bits CRC generated from first 56 bits
īƒ  the identifier has 3 partsīƒ 
īƒ  Sequence of operation:
īƒ  Slave device(s) present on bus responds
with a ‘Presence’ pulse
īƒ Master device sends a ROM command īƒ 
64 bits address of device
this addresses the slave device with
which it want to communicate
īƒ Master sends read/write function
command to read/write into internal
memory of slave device
īƒ Master initiates read/write from the
device or into the device
īƒ  Master device sends a ‘Reset’ pulse over 1-wire
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 59
The Typical Embedded System
Communication Interface
īƒ  For starting the communication, master asserts the Reset pulse by pulling 1-wire bus
Low for at least 8 time slots
īƒ  Communication over 1-wire bus is divided into time slots of 60Âĩsecs
īƒ  If slave devices are present on bus and is ready for communication, should respond
with ‘Presence’ pulse within 60Âĩsecs of reset pulse
īƒ  For writing a bit value 1, master pulls the bus LOW for 1-15Âĩsecs and releases for the
rest of the time slots.
īƒ  A bit value is written by master pulling the
bus LOW for minimum 1 time slot and
maximum 2 time slots.
īƒ To read a bit from slave master pulls the bus
LOW for 1 to 15Âĩsecs. If slave wants to send bit
value ‘1’, it simply releases bus for rest of the
time slot
īƒ If slave wants to send bit value’0’, it pulls the
bus low for rest of the time slot
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 60
The Typical Embedded System
Communication Interface
Parallel Interface:
īƒ for communicating with peripheral devices which are memory mapped to host system
īƒ the host MP/MC of Embedded system contains a parallel bus & devices can be
directly connected to this bus
īƒ communication through parallel bus is controlled by Control Signal Interface
between device and host.
Read/write signal
īƒ  Control Signals:
Device Select signal
īƒ controls direction of data transfer
īƒ device activates only when this signal is asserted
īƒ address decoder is used for generating chip
select signal for selecting device
īƒ if address selected by processor is with in
range assigned for devices, the decoder
activates the chip select line and thereby the
device becomes active
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 61
The Typical Embedded System
Communication Interface
īƒ the processor can then read/write from/to the device by asserting RD/WR’ control
lines
īƒ parallel communication is host initiated. If the device wants to communicate, it
can inform by generating a interrupt.
īƒ bus width supported by device must be same as that of host processor (usually 4
bits, 8, 16,32 or 64 bits)
īƒ offers the highest speed for data transfer
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 62
The Typical Embedded System
Communication Interface
External Communication Interfaces
RS 232C & RS 485:
RS232C īƒ  Recommended Standard number 232 revision C from Electronic
Industries Association
īƒ full duplex, wired, asynchronous serial communication
īƒ was developed by EIA in 1960s
īƒ Extends UART communication for external data communication
īƒ follows EIA standard for bit transmission
according to EIAīƒ¨ logic 0 = +3v to +25v, Space
īƒ¨ logic 1 = -3v to -25v, Mark
īƒ supports 2 different types of connectors
DB-9 īƒ¨ 9 pins connector
DB-25 īƒ¨ 25 pins connector
īƒ RS 232 īƒ¨ point to point communication
Devices involved īƒ¨ Data Terminal Equipment (DTE)
īƒ¨ Data Communication Equipment (DCE)
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 63
The Typical Embedded System
Communication Interface
īƒ No control signals are required
only TXD and RXD lines and Gnd line are required
īƒ the RXD pin of DCE must be connected to TXD pin of DTE and vice versa for
proper communication
īƒ Request to send (RTS) and Clear to send (CTS) coordinate the communication
between DTE and DCE
īƒ DTE -----------------------------īƒ  DCE
īƒ¨ DTE activates RTS line
īƒ  DTE īƒŸ-----------------------------DCE
īƒ As per EIA RS 232 supports Baud rate upto 20Kbps
Commonly used Baud rates are īƒ¨ 300bps, 1200 bps, 2400 bps, 9600 bps,
11.52 kbps, 19.2 kbps
īƒ¨ DCE activates CTS line
īƒ¨ DCE sends DCD (Data carrier Detect) to indicate good signal is received
īƒ¨ DTE activates Data Terminal Ready (DTR) if ready to accept
īƒ¨ DCE activates Data Set Ready (DSR) when it wants to send data
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 64
The Typical Embedded System
Communication Interface
īƒ distance supported is 50 feet with full speed
īƒ Embedded systems contain UART for serial communication. A level transistor IC
from Maxim Dallas semiconductor is used for converting the signal lines from UART
to RS 232 signal lines for external communication
īƒ RS 232 supports only point to point communication and not suited for multiple
drop communication
more susceptible to noise, reduced operating distance
īƒ RS 422 supports data rates upto 100 Kbps and distance of 400 ft
īƒ Same RS 232 is used at device end RS 232 – RS422 converter is plugged-in and
at the receiver end RS 422 to RS 232 converter is used
īƒ RS 422 supports multi drop communication with one transmitter and upto 10
receivers
īƒ RS 485 is enhanced version of RS 422 and it supports upto 32 transmitters and
32 receivers
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 65
The Typical Embedded System
Communication Interface
Universal Serial Bus (USB):
īƒ  Wired high speed serial bus
īƒ first version USB 1.0 was released in 1995 and created by USB core group
members including īƒ¨ Intel, Microsoft, IBM, Compaq, Digital & Northern Telecom
īƒ follows star topology with USB host at center and one or more USB peripheral
devices/USB hosts connected to it.
īƒ USB communication is initiated by host
īƒ USB host is made up of USB controller,
which is responsible for controlling the
data communication, establishing
connectivity with USB slave devices,
Packetizing and formatting the data
īƒ USB transmits data in packet form and each packet
has standard format
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 66
The Typical Embedded System
Communication Interface
Open Host Control Interface (OHCI)
īƒ  2 different standards for USB host control interface:
Universal Host Control Interface (UHCI)
īƒ  Physical connection between USB peripheral device and master device is established
using a USB cable. This cable supports communication distance upto 5 meters.
īƒ  USB standards use 2 types of connectors (at the end of USB cable):
‘Type A’ īƒ¨ for upstream connection (connection with host)
‘Type B’ īƒ¨ for downstream connection (connection with slave)
īƒ  Both Type A and Type B have 4 pins:
Vbus īƒ¨ Carrier power (5V)
D-īƒ¨ differential data carrier line
D+īƒ¨ differential data carrier line
GND īƒ¨ Ground Signal line
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 67
The Typical Embedded System
Communication Interface
īƒ  Uses differential signals for data transfer. This increases the immunity of signal
īƒ  USB interface has ability to supply power to connecting devices. 2 pins (power &
GND) is dedicated for carrying power. Can carry upto 500mA at 5Vīƒ  enough for low
power devices.
īƒ  USB devices must have:
īƒ¨ Product ID (PID)
īƒ¨ Vendor ID(VID)
īƒ  USB supports 4 different types of data transfer:
1. Control
2. Bulk
3. Isochronous
4. Interrupt
īƒ  query, configure, issue commands to USB Drivers
īƒ  Sending block of data, supports error checking & correction(data to printer)
īƒ  Real time data communication, data is transmitted as streams
(audio devices, medical equipments)
īƒ  Small amount of data, uses polling īƒ¨ checks whether USB device has
any data to send
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 68
The Typical Embedded System
Communication Interface
īƒ  USB supports 4 different rates:
Low speed
full speed
High speed
Super speed
īƒ  5 Mbps īƒ¨ USB 1.0
īƒ  12 Mbps īƒ¨ USB 1.0
īƒ  480 Mbps īƒ¨ USB 2.0
īƒ  4.8 Gbps īƒ¨ USB 3.0
IEEE 1394 (Firewire):
īƒ  Wired, synchronous, high speed serial communication bus
īƒ also known as High Performance Serial Bus
īƒ supports peer to peer connection and point to multi point communication allowing
63 devices to be connected on bus in a tree topology
Apple Inc.
Sony Corp.
Texas Instruments
īƒ  Firewire
īƒ  I LINK
īƒ Lynx
īƒ it’s a wired technology and it can support a cable length of upto 15 feet for
interconnection
īƒ implementation from different manufacturers with different
name
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 69
The Typical Embedded System
Communication Interface
īƒ  As evolved from IEEE 1394 1995 - IEEE 1394 2008
īƒ  Supports a data rate of 400 to 3200 Mbps
īƒ  Uses differential data transfer & interface cable supports 3 types of connectors
namely: īƒ¨ 4 pins connector
īƒ¨ 6 pin connector (alpha connector)
īƒ¨ 9 pin connector (beta connector)
īƒ  6 pin & 9 pin connectors also carries power ranging from 24 to 30V
Pin name 4
pin
6
pin
9
pin
Power 1 8
Signal ground 2 6
TPB- 1 3 1
TPB+ 2 4 2
TPA- 3 5 3
TPA+ 4 6 4
TPA(s) 5
TPB(s) 9
NC 7
īƒ  There are 2 differential lines A & B normally
differential lines of A are connected to B and vice versa.
īƒ  Popular communication interface for connecting
embedded devices like camera, scanners, camcorders to
desktop for data transfer and storage
īƒ  Data rate supported by 1394 is for higher than the one
supported by USB
īƒ  1394 implementation is much costlier than USB
implementation
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 70
The Typical Embedded System
Communication Interface
Infrared(IrDA):
īƒ  serial, half duplex, line of sight based wireless technology
īƒ remote control of TV, VCD etc. works on infrared technology
īƒ uses infrared waves of electromagnetic spectrum for transmitting the data
īƒ supports point to point and point to multi point communication provided all devices
involved are within line of sight.
īƒ typical range lies in 10cm to 1m, can be increased by increasing transmitting power
of IR device.
īƒ supports data rates ranging from 9600bps to 16Mbps
īƒ  Depending upon speed of data transmission IR is classified into
Serial IR (SIR)
Medium IR (MIR)
Fast (FIR)
Very Fast IR (VFIR)
īƒ  9600bps to 115.2 Kbps
īƒ  0.576 Mbps to 1.152 Mbps
īƒ  Upto 4 Mbps
īƒ  Upto 16Mbps
Ultra Fast IR (UFIR) īƒ  targeting 100Mbps
(Developing Phase)
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 71
The Typical Embedded System
Communication Interface
īƒ  IrDA communication involves a transmitter unit for transmitting the data over
IR and Receiver for receiving data
īƒ Infrared LED is the IR source for transmitter and at the receiving end a photo
diode acts as receiver
īƒ usually most of Ir-devices contains both transmitter and receiver called as
transreceiver for bidirectional communication
īƒ some of the devices have either TxD or RxD.
īƒ Example: TV remote control system
TV Remote
TV
īƒ  TxD
īƒ  RxD
īƒ Infrared Data Association (IrDA) is regulatory body responsible for defining and
licensing the specification for IR data.
īƒ IrDA communication has 2 parts
A physical link part
A protocol part
īƒ physical transfer of data
īƒ  Defining rules for communication
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 72
The Typical Embedded System
Communication Interface
īƒ Control protocol contains implementation for Physical layer (PHY), Media
Access Control (MAC) and Logical Link Control (LLC)
īƒ physical layer defines physical characteristics like range, data rates, power etc.
īƒ IrDA is popular for file exchange and data transfer in low cost devices.
īƒ IrDA was widely used before the discovery of Bluetooth
Bluetooth:
īƒ  Low cost, low power, short range, wireless technology for data and voice communication
īƒ was first proposed by Ericsson in 1994
īƒ operates at 2.4 GHz of Radio Frequency spectrum and uses Frequency Hopping
Spread Spectrum (FHSS) technique for communication
īƒ supports data rate of upto 1Mbps and range of 30 feet
īƒ Similar to IrDA, Bluetooth has 2 essential parts
A physical link part
A protocol part
īƒ physical transmission of data between the device using wireless
principles of RF waves
īƒ  Defining rules for communication
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 73
The Typical Embedded System
Communication Interface
īƒ Each bluetooth device will have a 48 bit Unique Identification Number(UIN).
Bluetooth follows packet based data transfer
īƒ Bluetooth supports point to point and point to multi point communication.
īƒ point to pointīƒ¨ master slave approach
īƒ point to multi pointīƒ¨1 master more slavesīƒ  Piconet
īƒ  A Piconet supports maximum of 7 slaves
īƒ Bluetooth is favorite choice for short range communication in handheld devices. Very
popular for cell phones for transferring ringtones, music files, pictures, media files etc.
īƒ Generic Access Profile (GAP) defines the requirement for detecting a Bluetooth
device and establishing a connection with it
īƒ Serial Port Profile (SPP) defines serial data communication
īƒ File Transfer Profile (FTP) defines file transfer between devices
īƒ Human Interface Devices (HID) for supporting human interface devices like keypad,
mouse etc.
īƒ Bluetooth Special Interest Group (SIG) defines specification and license the
specification.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 74
The Typical Embedded System
Communication Interface
Wi-Fi (Wireless Fidelity):
īƒ popular for networked communication of devices
īƒ follows IEEE 802.11 standard
īƒ essential to have device identities in a multi point communication to address
specific device for communication
īƒ In Internet Protocol communication each device is identified by an IP addressīƒ 
unique to each device on a network
īƒ Wi-Fi communication requires an intermediate agents called Wi-Fi router. Wireless
Access Port(WAP)īƒ¨ â€ĸAssigning IP address to a device on network
â€ĸRouting data packets to intended devices on network
īƒ Wi-Fi enabled devices contains a wireless adaptor for transmitting and receiving data
in the form of radio signals through an antenna īƒ  H/W part is called as Wi-Fi Radio
īƒ For communicating with devices over a Wi-Fi network, Wi-Fi Radio when turned ON,
it searches for the available Wi-Fi network in its vicinity & list out the Service Set
Identifier (SSID) of available networks.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 75
The Typical Embedded System
Communication Interface
īƒ If network security is enabled, Password will be required
īƒ employs Wired Equivalency Privacy (WEP) and Wireless Protected Access (WPA)
for data security
īƒ data ratesīƒ  1 Mbps to 150 Mbps depending on type of antenna and
location(outdoor/indoor) usage
īƒ Operating range is 100 to 300 feet
īƒ low power, low cost, wireless network communication protocol
īƒ based on IEEE 802.15-2006 standard.
Zig-Bee:
īƒ targeted for low power, low data rates and secure applications for wireless Personal
Area Networking (WPAN)
īƒ supports mesh-networking containing multiple nodes. Mesh topology makes network
more reliable as it provides multiple paths to get data from one node to another,
īƒ operates at 3 frequency ranges īƒ  2.4 to 2.484 GHz
īƒ 902 to 928 MHz
īƒ 868.0 to 868.6 MHz
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 76
The Typical Embedded System
Communication Interface
īƒ operating range is of 100 mts and data rates of 20-250 Kbps
īƒ In Zig Bee network each device falls under any one of
following devices:
Zig Bee coordinator/Network Coordinator(ZC)
īƒ acts as root of ZigBee network
īƒ has capability to store more information about the
network
Zig Bee Router (ZR)/Full Function Device (FFD)
īƒ responsible for transmitting data from device to other or
to another ZigBee Router
Zig Bee End Device (ZED)/Reduced Function Device (RFD)
īƒ contains ZigBee functionality for communication. It can talk with ZC/ZR, cannot
transmit data from one device to other directly
īƒ targeting applications: home & industrial automation, energy management,
home control/security, medical/patient tracking, logistics and asset tracking,
Automatic Meter Reading (AMR), Smoke Detectors, HVAC control, Heat & light
Control
īƒ Specification for ZigBee is developed & Managed by ZigBee Alliance
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 77
The Typical Embedded System
Communication Interface
General Packet Radio Service (GPRS):
īƒ Communication technique for transferring data over a mobile communication
network like GSM (Global System for Mobile communication)
īƒ data is sent as packets
TxDing device splits data into several related packets
At RxDing end, data is reconstructed by combining received data packets.
īƒ theoretical maximum data rate of 171.2 Kbps
īƒ radio channel is concurrently shared by several users, instead of single user.
Divides the channel into 8 time slots and data is transmitted over available channel.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 78
Topics to be covered:
Definition
Embedded systems vs. General Computing Systems
Core of the Embedded System
Memory
Sensors and Actuators
Communication Interface
Embedded Firmware
Other System Components
PCB and Passive Components
The Typical Embedded System
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 79
The Typical Embedded System
Embedded Firmware
īƒ  Embedded firmware refers to the control algorithm (Program instructions) and or
the configuration settings that an embedded system developer dumps into the code
(Program) memory of the embedded system.
īƒ  It is an un-avoidable part of an embedded system. There are various methods
available for developing the embedded firmware. They are listed below.
1. Write the program in high level languages like Embedded C/C++ using an
Integrated Development Environment (The IDE will contain an editor, compiler,
linker, debugger, simulator, etc.
īƒ  IDEs are different for different family of processors/controllers. For
example, Keil micro vision3. IDE is used for all family members of 805/
microcontroller, since it contains the generic 8051 compiler C51).
2. Write the program in Assembly language using the instructions supported by
your application‘s target processor/controller. The instruction set for each family
of processor/controller is different
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 80
The Typical Embedded System
Embedded Firmware
īƒ  The program written in either of the methods given above should be converted
into a processor understandable machine code before loading it into the program
memory.
īƒ The process of converting the program written in either a high level language or
processor/specific Assembly code to machine readable binary code is called "HEX
File Creation".
The methods used for 'HEX File Creation' is different depending on the
programming techniques used.
īƒ If the program is written in Embedded C/C++ using an IDE, the cross compiler
included in the IDE converts it into corresponding processor/controller
understandable HEX File'.
īƒ If you are following the Assembly language based programming technique
(method 2), you can use the utilities supplied by the processor/controller vendors
to convert the source code into 'HEX File'.
īƒ Also third party tools are available, which may be of free of cost, for this
conversion.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 81
The Typical Embedded System
Embedded Firmware
īƒ  For a beginner in the embedded software field, it is strongly recommended to use
the high level language based development technique.
īƒ The reasons for this being: writing codes in a high level language is easy, the code
written in high level language is highly portable which means you can use the same
code to run on different processor/controller with little or less dification.
īƒ The only thing you need to do is re-compile the program with the required
processor's IDE, after replacing the include files for that particular processor. Also
the programs written in high level languages are not developer dependent.
īƒ Any skilled programmer can trace out the functionalities of the program by just
having a look at the program. It will be much easier if the source code contains
necessary comments and documentation lines.
īƒ It is very easy to debug and the overall system development time will be reduced
to a greater extent.
īƒ The embedded software development process in assembly language is tedious and
time consuming.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 82
The Typical Embedded System
Embedded Firmware
īƒ  The developer needs to know about all the instruction sets of the
processor/controller or at least he/she should carry an instruction set reference
manual with her/him.
īƒ A programmer using assembly language technique writes the program according
to his/her view and taste.
īƒ Often he/she may be writing a method or functionality which can be achieved
through a single instruction as an experienced person‘s point of view, by two or
three instructions in his/her own style.
īƒ So the program will be highly dependent on the developer. It is very difficult for a
second person to understand the code written in Assembly even if it is well
documented.
īƒ Two types of control algorithm design exist in embedded firmware development.
īƒ˜infinite loop or super loop based approach
īƒ˜with splitting the functions to be executed into tasks and running these tasks
using a scheduler
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 83
The Typical Embedded System
Embedded Firmware
īƒ The first type of control algorithm development is known as the infinite loop or
super loop based approach, where
īƒ the control flow runs from top to bottom and then jumps back to the
top of the program in a conventional procedure.
īƒ It is similar to the while (1) { }; based technique in C.
īƒ The second method deals with
īƒ splitting the functions to be executed into tasks and running these
tasks using a scheduler which is part of a General Purpose or Real Time Embedded
Operating System (GPOS/RTOS).
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 84
Definition
Embedded systems vs. General Computing Systems
Core of the Embedded System
Memory
Sensors and Actuators
Communication Interface
Embedded Firmware
Other System Components
PCB and Passive Components
Topics to be covered:
The Typical Embedded System
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 85
The Typical Embedded System
Other System Components
īƒ The other system components refer to the components/circuits /ICs which are
necessary for the proper functioning of the embedded system.
īƒ Some of these circuits may be essential for the proper functioning of the
processor/controller and firmware execution.
īƒ Watchdog timer, Reset IC (or passive circuit), brown-out protection IC (or
passive circuit), etc.
īƒ Some of the controllers or SoCs integrate these components within a single IC
and doesn't require such components externally connected to the chip for proper
functioning.
īƒ Depending on the system requirement, the embedded system may include other
integrated circuits for performing specific functions, level translator ICs for
interfacing circuits with different logic levels, etc.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 86
The Typical Embedded System
Other System Components
Reset Circuit:
īƒ The reset circuit is essential to ensure that the device is not operating at a voltage
level where the device is not guaranteed to operate, during system power ON.
īƒ The reset signal brings the internal registers and the different hardware systems of
the processor/controller to a known state and starts the firmware execution from the
reset vector
(Normally from vector address 0x0000 for conventional
processors/controllers. The reset vector can be relocated to an address for
processors/controllers supporting boot loader).
īƒ The reset signal can be either active high (The processor undergoes reset when the
reset pin of the processor is at logic high) or active low (The processor undergoes
reset when the reset pin of the processor is at logic low).
īƒ Since the processor operation is synchronized to a clock signal, the reset pulse
should be wide enough to give time for the clock oscillator to stabilize before the
internal reset state starts.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 87
The Typical Embedded System
Other System Components
īƒ The reset signal to the processor can be applied at power ON through an external
passive reset circuit comprising a Capacitor and Resistor or through a standard Reset
IC like MAX810 from Maxim Dallas (www.maxim-ic.com).
īƒ Select the reset IC based on the type of reset signal and logic level (CMOS/TTL)
supported by the processor/controller in use.
īƒ Some microprocessors/controllers contain built-in internal reset circuitry and they
don't require external reset circuitry.
īƒ Figure illustrates a resistor capacitor
based passive reset circuit for active high
and low configurations.
īƒ The reset pulse width can be adjusted by
changing the resistance value R and
capacitance value C.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 88
The Typical Embedded System
Other System Components
Brown-out Protection Circuit:
Brown-out protection circuit prevents the processor/controller from unexpected
program execution behavior when the supply voltage to the processor/controller falls
below a specified voltage.
It is essential for battery powered devices since there are greater chances for the
battery voltage to drop below the required threshold. The processor behavior may not
be predictable if the supply voltage falls below the recommended operating voltage. It
may lead to situations like data corruption.
īƒ  A brown-out protection circuit holds the processor/controller in reset state, when
the operating voltage falls below the threshold, until it rises above the threshold
voltage.
īƒ Certain processors/controllers support built in brown-out protection circuit which
monitors the supply voltage internally. If the processor/controller doesn't integrate a
built-in brown-out protection circuit, the same can be implemented using external
passive
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 89
The Typical Embedded System
Other System Components
īƒ Figure illustrates a brown-out with Active low
output circuit implementation using Zener diode and
transistor for processor/controller with active low
Reset logic,
īƒ The Zener diode Dz and transistor Q forms the heart
of this circuit. The transistor conducts always when
the supply voltage Ve is greater than that of the sum
of VBE and VZ (Zener voltage).
īƒ The transistor stops conducting when the supply voltage falls below the sum of VBE
and VZ. Select the Zener diode with required voltage for setting the low threshold
value for Vcc.
The values of R1, R2, and R3 can be selected based on the electrical characteristics
(Absolute maximum current and voltage ratings) of the transistor in use.
īƒ Microprocessor Supervisor ICs like DS1232 from Maxim Dallas (www.maximis.com)
also provides Brown-out protection.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 90
The Typical Embedded System
Other System Components
Oscillator Unit :
īƒ A microprocessor/microcontroller is a digital device made up of digital
combinational and sequential circuits. The instruction execution of a
microprocessor/controller occurs in sync with a clock signal.
īƒ It is analogous to the heartbeat of a living being which synchronises the execution of
life. For a living being the heart is responsible for the generation of the beat whereas
the oscillator unit of the embedded system is responsible for generating the precise
clock for the processor.
īƒ  Certain processors/controllers integrate a built-in oscillator unit and simply
require an external ceramic resonator/quartz crystal for producing the necessary
clock signals. Quartz crystals and ceramic resonators are equivalent in operation,
however they possess physical difference.
īƒ  A quartz crystal is normally mounted in a hermetically sealed metal case with two
leads protruding out of the case.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 91
The Typical Embedded System
Other System Components
īƒ  Certain devices may not contain a built-in oscillator unit and require the clock
pulses to be generated and supplied externally. Quartz crystal Oscillators are available
in the form chips and they can be used for generating the clock pulses in such a cases.
īƒ The speed of operation of a processor is primarily dependent on the clock frequency.
However we cannot increase the clock frequency blindly for increasing the speed of
execution.
īƒ  The logical circuits lying inside the processor always have an upper threshold value
for the maximum clock at which the system can run, beyond which the system
becomes unstable and non functional.
īƒ  The total system power consumption is directly proportional to the clock
frequency. The power consumption increases with increase in clock frequency.
īƒ  The accuracy of program execution depends on the accuracy of the clock signal.
The accuracy of the crystal oscillator or ceramic resonator is normally expressed in
terms of +/-ppm (Parts per million).
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 92
The Typical Embedded System
Other System Components
īƒ  Figure illustrates the usage of quartz crystal/ceramic resonator and external oscillator chip for
clock generation.
Real-Time Clock (RTC):
īƒ Real-Time Clock (RTC) is a system component responsible for keeping track of time. RTC holds
information like current time (In hours, minutes and seconds) in 12 hour/24 hour format, date,
month, year, day of the week, etc. and supplies timing reference to the system. RTC is intended to
function even in the absence of power.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 93
The Typical Embedded System
Other System Components
īƒ RTCs are available in the form of Integrated Circuits from different semiconductor manufacturers
like Maxim/Dallas, ST Microelectronics etc.
The RTC chip contains a microchip for holding the time and date related information and
backup battery cell for functioning in the absence of power, in a single IC package. The RTC chip is
interfaced to the processor or controller of the embedded system.
īƒ For Operating System based embedded devices, a timing reference is essential for
synchronizing the operations of the OS kernel.
The RTC can interrupt the OS kernel by asserting the interrupt line of the
processor/controller to which the RTC interrupt line is connected.
The OS kernel identifies the interrupt in terms of the Interrupt Request (IRQ) number
generated by an interrupt controller.
īƒ  One IRQ can be assigned to the RTC interrupt and the kernel can perform necessary operations
like system date time updation, managing software timers etc when an RTC timer tick interrupt
occurs.
īƒ  The RTC can be configured to interrupt the processor at predefined intervals or to interrupt the
processor when the RTC register reaches a specified value (used as alarm interrupt)
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 94
The Typical Embedded System
Other System Components
Watchdog Timer:
īƒ  In desktop Windows systems, if we feel our application is behaving in an abnormal
way or if the system hangs up, we have the "Ctrl + Alt + Del‘’ to come out of the
situation. What if it happens to our embedded system? Do we really have a "Ctrl + Alt +
Del' to take control of the situation?
īƒ  Of course not, but we have a watchdog to monitor the firmware execution and reset
the system processor/ microcontroller when the program execution hangs up
īƒ  A watchdog timer, or simply a watchdog, is a hardware timer for monitoring the
firmware execution.
īƒ  Depending on the internal implementation, the watchdog timer increments or
decrements a free running counter with each clock pulse and generates a reset signal
to reset the processor if the count reaches zero for a down counting watchdog, or the
highest count value for an upcounting watchdog.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 95
The Typical Embedded System
Other System Components
īƒ  If the watchdog counter is in the enabled state, the firmware can write a
zero (for upcounting watchdog implementation) to it before starting the execution of a piece
of code (subroutine or portion of code which is susceptible to execution hang up) and the
watchdog will start counting.
īƒ  If the firmware execution doesn't complete due to malfunctioning, within the time required
by the watchdog to reach the maximum count, the counter will generate a reset pulse and
this will reset the processor (if it is connected to the reset line of the processor).
īƒ  If the firmware execution completes before the expiration of the watchdog timer you can
reset the count by writing a 0 (for an upcounting watchdog timer) to the watchdog timer
register.
īƒ  Most of the processors implement watchdog as a built-in component and provides status
register to control the watchdog timer (like enabling and disabling watchdog functioning)
and watchdog timer register for writing the count value. If the processor/controller doesn't
contain a built in watchdog timer, the same can be implemented using an external watchdog
timer IC circuit.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 96
The Typical Embedded System
Other System Components
īƒ  The external watchdog timer uses hardware logic for enabling/disabling, resetting
the watchdog count, etc instead of the firmware based writing to the status and
watchdog timer register. The Microprocessor supervisor IC DS1232 integrates a
hardware watchdog timer in it.
īƒ  In modern systems running on embedded operating systems, the watchdog can be
implemented in such a way that when a watchdog timeout occurs, an interrupt is
generated instead of resetting the processor. The interrupt handler for this handles
the situation in an appropriate fashion.
īƒ  Figure illustrates the implementation of
watchdog timer:
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 97
Definition
Embedded systems vs. General Computing Systems
Core of the Embedded System
Memory
Sensors and Actuators
Communication Interface
Embedded Firmware
Other System Components
PCB and Passive Components
Topics to be covered:
The Typical Embedded System
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 98
The Typical Embedded System
PCB and Passive Components
īƒ  Printed Circuit Board (PCB) is the backbone of every embedded system. After
finalizing the components and the inter-connection among them, a schematic design
is created and according to the schematic the PCB is fabricated.
īƒ  PCB acts as a platform for mounting all the necessary components as per the design
requirement. Also it acts as a platform for testing your embedded firmware.
īƒ  Apart from the above-mentioned important subsystems of an embedded system, you
can find some passive electronic components like resistor, capacitor, diodes, etc. on
your board. They are the co-workers of various chips contained in your embedded
hardware.
īƒ  They are very essential for the proper functioning of your embedded system. For
example for providing a regulated ripple-free supply voltage to the system, a regulator
IC and spike suppressor filter capacitors are very essential.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 52
Reference
Shibu K V, “Introduction to Embedded
Systems”, First Edition, Tata McGraw Hill
Education Private Limited, 2009
For Further Studies:
The Typical Embedded System
100
Prof. Anand H. D.
M. Tech. (PhD.)
Assistant Professor,
Department of Electronics & Communication Engineering
Dr. Ambedkar Institute of Technology, Bengaluru-56
Email: anandhd.ec@drait.edu.in
Phone: 9844518832

More Related Content

What's hot

Trends in Embedded system Design
Trends in Embedded system DesignTrends in Embedded system Design
Trends in Embedded system DesignRaman Deep
 
Introduction to Embedded Architecture
Introduction to Embedded Architecture Introduction to Embedded Architecture
Introduction to Embedded Architecture amrutachintawar239
 
Embedded system design process
Embedded system design processEmbedded system design process
Embedded system design processRAMESHBABU311293
 
Unit II Arm7 Thumb Instruction
Unit II Arm7 Thumb InstructionUnit II Arm7 Thumb Instruction
Unit II Arm7 Thumb InstructionDr. Pankaj Zope
 
Chapter 8 Embedded Hardware Design and Development (second portion)
Chapter 8 Embedded Hardware Design and Development (second portion)Chapter 8 Embedded Hardware Design and Development (second portion)
Chapter 8 Embedded Hardware Design and Development (second portion)Moe Moe Myint
 
Chapter 3 Charateristics and Quality Attributes of Embedded System
Chapter 3 Charateristics and Quality Attributes of Embedded SystemChapter 3 Charateristics and Quality Attributes of Embedded System
Chapter 3 Charateristics and Quality Attributes of Embedded SystemMoe Moe Myint
 
Design challenges in embedded systems
Design challenges in embedded systemsDesign challenges in embedded systems
Design challenges in embedded systemsmahalakshmimalini
 
Embedded system
Embedded systemEmbedded system
Embedded systemAnmol Bagga
 
IoT Enabling Technologies
IoT Enabling TechnologiesIoT Enabling Technologies
IoT Enabling TechnologiesPrakash Honnur
 
Embedded Systems - Training ppt
Embedded Systems - Training pptEmbedded Systems - Training ppt
Embedded Systems - Training pptNishant Kayal
 
ARM CORTEX M3 PPT
ARM CORTEX M3 PPTARM CORTEX M3 PPT
ARM CORTEX M3 PPTGaurav Verma
 
Introduction to Embedded Systems I : Chapter 1
Introduction to Embedded Systems I : Chapter 1Introduction to Embedded Systems I : Chapter 1
Introduction to Embedded Systems I : Chapter 1Moe Moe Myint
 
Introduction to embedded systems
Introduction to embedded systemsIntroduction to embedded systems
Introduction to embedded systemsApurva Zope
 
Building Blocks for IoT Devices
Building Blocks for IoT DevicesBuilding Blocks for IoT Devices
Building Blocks for IoT DevicesAnil Gorthy
 
Real Time Operating system (RTOS) - Embedded systems
Real Time Operating system (RTOS) - Embedded systemsReal Time Operating system (RTOS) - Embedded systems
Real Time Operating system (RTOS) - Embedded systemsHariharan Ganesan
 

What's hot (20)

Trends in Embedded system Design
Trends in Embedded system DesignTrends in Embedded system Design
Trends in Embedded system Design
 
Introduction to Embedded Architecture
Introduction to Embedded Architecture Introduction to Embedded Architecture
Introduction to Embedded Architecture
 
Embedded System Basics
Embedded System BasicsEmbedded System Basics
Embedded System Basics
 
Embedded system design process
Embedded system design processEmbedded system design process
Embedded system design process
 
Unit II Arm7 Thumb Instruction
Unit II Arm7 Thumb InstructionUnit II Arm7 Thumb Instruction
Unit II Arm7 Thumb Instruction
 
Chapter 8 Embedded Hardware Design and Development (second portion)
Chapter 8 Embedded Hardware Design and Development (second portion)Chapter 8 Embedded Hardware Design and Development (second portion)
Chapter 8 Embedded Hardware Design and Development (second portion)
 
ARM Processors
ARM ProcessorsARM Processors
ARM Processors
 
Chapter 3 Charateristics and Quality Attributes of Embedded System
Chapter 3 Charateristics and Quality Attributes of Embedded SystemChapter 3 Charateristics and Quality Attributes of Embedded System
Chapter 3 Charateristics and Quality Attributes of Embedded System
 
Design challenges in embedded systems
Design challenges in embedded systemsDesign challenges in embedded systems
Design challenges in embedded systems
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
IoT Enabling Technologies
IoT Enabling TechnologiesIoT Enabling Technologies
IoT Enabling Technologies
 
Embedded Systems - Training ppt
Embedded Systems - Training pptEmbedded Systems - Training ppt
Embedded Systems - Training ppt
 
TinyOS
TinyOSTinyOS
TinyOS
 
ARM CORTEX M3 PPT
ARM CORTEX M3 PPTARM CORTEX M3 PPT
ARM CORTEX M3 PPT
 
Introduction to Embedded Systems I : Chapter 1
Introduction to Embedded Systems I : Chapter 1Introduction to Embedded Systems I : Chapter 1
Introduction to Embedded Systems I : Chapter 1
 
Embedded system introduction
Embedded system introductionEmbedded system introduction
Embedded system introduction
 
Introduction to embedded systems
Introduction to embedded systemsIntroduction to embedded systems
Introduction to embedded systems
 
Building Blocks for IoT Devices
Building Blocks for IoT DevicesBuilding Blocks for IoT Devices
Building Blocks for IoT Devices
 
Real Time Operating system (RTOS) - Embedded systems
Real Time Operating system (RTOS) - Embedded systemsReal Time Operating system (RTOS) - Embedded systems
Real Time Operating system (RTOS) - Embedded systems
 
Embedded systems basics
Embedded systems basicsEmbedded systems basics
Embedded systems basics
 

Similar to Typical Embedded System

Ppt on embedded system
Ppt on embedded systemPpt on embedded system
Ppt on embedded systemPankaj joshi
 
Embedded systems-unit-1
Embedded systems-unit-1Embedded systems-unit-1
Embedded systems-unit-1Prabhu Mali
 
EMBEDDED SYSTEMS -UNIT-III-TSK-PROF.ECE-ACET.ppt
EMBEDDED SYSTEMS -UNIT-III-TSK-PROF.ECE-ACET.pptEMBEDDED SYSTEMS -UNIT-III-TSK-PROF.ECE-ACET.ppt
EMBEDDED SYSTEMS -UNIT-III-TSK-PROF.ECE-ACET.pptswarna pasupuleti
 
EMBEDDED SYSTEMS -UNIT-III-TSK-PROF.ECE-ACET.ppt
EMBEDDED SYSTEMS -UNIT-III-TSK-PROF.ECE-ACET.pptEMBEDDED SYSTEMS -UNIT-III-TSK-PROF.ECE-ACET.ppt
EMBEDDED SYSTEMS -UNIT-III-TSK-PROF.ECE-ACET.pptswarna pasupuleti
 
Embedded system book very helpful needed and use by everyone
Embedded system book very helpful needed and use by everyoneEmbedded system book very helpful needed and use by everyone
Embedded system book very helpful needed and use by everyoneManojGupta666004
 
Embeddedsystem
EmbeddedsystemEmbeddedsystem
Embeddedsystemanshul parmar
 
Embedded system
Embedded systemEmbedded system
Embedded systemInsane Gamer
 
Implementation of RISC-Based Architecture for Low power applications
Implementation of RISC-Based Architecture for Low power applicationsImplementation of RISC-Based Architecture for Low power applications
Implementation of RISC-Based Architecture for Low power applicationsIOSR Journals
 
Unit 1 Introduction to Embedded computing and ARM processor
Unit 1 Introduction to Embedded computing and ARM processorUnit 1 Introduction to Embedded computing and ARM processor
Unit 1 Introduction to Embedded computing and ARM processorVenkat Ramanan C
 
Low cost embedded system
Low cost embedded systemLow cost embedded system
Low cost embedded systemece svit
 
Co question 2006
Co question 2006Co question 2006
Co question 2006SANTOSH RATH
 
Embedded systems
Embedded systemsEmbedded systems
Embedded systemsPruthvi Koli
 

Similar to Typical Embedded System (20)

Ppt on embedded system
Ppt on embedded systemPpt on embedded system
Ppt on embedded system
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
Embedded Systems
Embedded SystemsEmbedded Systems
Embedded Systems
 
Embedded systems-unit-1
Embedded systems-unit-1Embedded systems-unit-1
Embedded systems-unit-1
 
Clifford sugerman
Clifford sugermanClifford sugerman
Clifford sugerman
 
EMBEDDED SYSTEMS -UNIT-III-TSK-PROF.ECE-ACET.ppt
EMBEDDED SYSTEMS -UNIT-III-TSK-PROF.ECE-ACET.pptEMBEDDED SYSTEMS -UNIT-III-TSK-PROF.ECE-ACET.ppt
EMBEDDED SYSTEMS -UNIT-III-TSK-PROF.ECE-ACET.ppt
 
EMBEDDED SYSTEMS -UNIT-III-TSK-PROF.ECE-ACET.ppt
EMBEDDED SYSTEMS -UNIT-III-TSK-PROF.ECE-ACET.pptEMBEDDED SYSTEMS -UNIT-III-TSK-PROF.ECE-ACET.ppt
EMBEDDED SYSTEMS -UNIT-III-TSK-PROF.ECE-ACET.ppt
 
esunit1.pptx
esunit1.pptxesunit1.pptx
esunit1.pptx
 
Module-1 Embedded computing.pdf
Module-1 Embedded computing.pdfModule-1 Embedded computing.pdf
Module-1 Embedded computing.pdf
 
Cpu
CpuCpu
Cpu
 
Embedded system book very helpful needed and use by everyone
Embedded system book very helpful needed and use by everyoneEmbedded system book very helpful needed and use by everyone
Embedded system book very helpful needed and use by everyone
 
Embeddedsystem
EmbeddedsystemEmbeddedsystem
Embeddedsystem
 
EEE226a.ppt
EEE226a.pptEEE226a.ppt
EEE226a.ppt
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
Implementation of RISC-Based Architecture for Low power applications
Implementation of RISC-Based Architecture for Low power applicationsImplementation of RISC-Based Architecture for Low power applications
Implementation of RISC-Based Architecture for Low power applications
 
Unit 1 Introduction to Embedded computing and ARM processor
Unit 1 Introduction to Embedded computing and ARM processorUnit 1 Introduction to Embedded computing and ARM processor
Unit 1 Introduction to Embedded computing and ARM processor
 
Low cost embedded system
Low cost embedded systemLow cost embedded system
Low cost embedded system
 
Co question 2006
Co question 2006Co question 2006
Co question 2006
 
Embedded systems
Embedded systemsEmbedded systems
Embedded systems
 
UNIT I.pptx
UNIT I.pptxUNIT I.pptx
UNIT I.pptx
 

More from anand hd

RMV sensors
RMV sensorsRMV sensors
RMV sensorsanand hd
 
RMV robot programming
RMV robot programmingRMV robot programming
RMV robot programminganand hd
 
Robot applications
Robot applicationsRobot applications
Robot applicationsanand hd
 
RMV Mechanics
RMV MechanicsRMV Mechanics
RMV Mechanicsanand hd
 
Robot Machine Vision
Robot Machine VisionRobot Machine Vision
Robot Machine Visionanand hd
 
RMV Artificial Intelligence
RMV Artificial IntelligenceRMV Artificial Intelligence
RMV Artificial Intelligenceanand hd
 
OS file systems
OS file systemsOS file systems
OS file systemsanand hd
 
OS virtual memory
OS virtual memoryOS virtual memory
OS virtual memoryanand hd
 
OS scheduling
OS schedulingOS scheduling
OS schedulinganand hd
 
OS Memory Management
OS Memory ManagementOS Memory Management
OS Memory Managementanand hd
 
Modules and ports in Verilog HDL
Modules and ports in Verilog HDLModules and ports in Verilog HDL
Modules and ports in Verilog HDLanand hd
 
Characteristics and Quality Attributes of Embedded System
Characteristics and Quality Attributes of Embedded SystemCharacteristics and Quality Attributes of Embedded System
Characteristics and Quality Attributes of Embedded Systemanand hd
 
Basic concepts in Verilog HDL
Basic concepts in Verilog HDLBasic concepts in Verilog HDL
Basic concepts in Verilog HDLanand hd
 
Overview of digital design with Verilog HDL
Overview of digital design with Verilog HDLOverview of digital design with Verilog HDL
Overview of digital design with Verilog HDLanand hd
 
OS-Process Management
OS-Process ManagementOS-Process Management
OS-Process Managementanand hd
 
Robotics Endeffectors
Robotics EndeffectorsRobotics Endeffectors
Robotics Endeffectorsanand hd
 
Structure of Operating System
Structure of Operating System Structure of Operating System
Structure of Operating System anand hd
 
Fundamentals of Robotics and Machine Vision System
Fundamentals of Robotics and Machine Vision SystemFundamentals of Robotics and Machine Vision System
Fundamentals of Robotics and Machine Vision Systemanand hd
 
Os overview
Os overviewOs overview
Os overviewanand hd
 
OS introduction
OS introductionOS introduction
OS introductionanand hd
 

More from anand hd (20)

RMV sensors
RMV sensorsRMV sensors
RMV sensors
 
RMV robot programming
RMV robot programmingRMV robot programming
RMV robot programming
 
Robot applications
Robot applicationsRobot applications
Robot applications
 
RMV Mechanics
RMV MechanicsRMV Mechanics
RMV Mechanics
 
Robot Machine Vision
Robot Machine VisionRobot Machine Vision
Robot Machine Vision
 
RMV Artificial Intelligence
RMV Artificial IntelligenceRMV Artificial Intelligence
RMV Artificial Intelligence
 
OS file systems
OS file systemsOS file systems
OS file systems
 
OS virtual memory
OS virtual memoryOS virtual memory
OS virtual memory
 
OS scheduling
OS schedulingOS scheduling
OS scheduling
 
OS Memory Management
OS Memory ManagementOS Memory Management
OS Memory Management
 
Modules and ports in Verilog HDL
Modules and ports in Verilog HDLModules and ports in Verilog HDL
Modules and ports in Verilog HDL
 
Characteristics and Quality Attributes of Embedded System
Characteristics and Quality Attributes of Embedded SystemCharacteristics and Quality Attributes of Embedded System
Characteristics and Quality Attributes of Embedded System
 
Basic concepts in Verilog HDL
Basic concepts in Verilog HDLBasic concepts in Verilog HDL
Basic concepts in Verilog HDL
 
Overview of digital design with Verilog HDL
Overview of digital design with Verilog HDLOverview of digital design with Verilog HDL
Overview of digital design with Verilog HDL
 
OS-Process Management
OS-Process ManagementOS-Process Management
OS-Process Management
 
Robotics Endeffectors
Robotics EndeffectorsRobotics Endeffectors
Robotics Endeffectors
 
Structure of Operating System
Structure of Operating System Structure of Operating System
Structure of Operating System
 
Fundamentals of Robotics and Machine Vision System
Fundamentals of Robotics and Machine Vision SystemFundamentals of Robotics and Machine Vision System
Fundamentals of Robotics and Machine Vision System
 
Os overview
Os overviewOs overview
Os overview
 
OS introduction
OS introductionOS introduction
OS introduction
 

Recently uploaded

Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Call Girls in Ramesh Nagar Delhi đŸ’¯ Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi đŸ’¯ Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi đŸ’¯ Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi đŸ’¯ Call Us 🔝9953056974 🔝 Escort Service9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Call Now â‰Ŋ 9953056974 â‰ŧ🔝 Call Girls In New Ashok Nagar â‰ŧ🔝 Delhi door step de...
Call Now â‰Ŋ 9953056974 â‰ŧ🔝 Call Girls In New Ashok Nagar  â‰ŧ🔝 Delhi door step de...Call Now â‰Ŋ 9953056974 â‰ŧ🔝 Call Girls In New Ashok Nagar  â‰ŧ🔝 Delhi door step de...
Call Now â‰Ŋ 9953056974 â‰ŧ🔝 Call Girls In New Ashok Nagar â‰ŧ🔝 Delhi door step de...9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Call Girls in Ramesh Nagar Delhi đŸ’¯ Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi đŸ’¯ Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi đŸ’¯ Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi đŸ’¯ Call Us 🔝9953056974 🔝 Escort Service
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Call Now â‰Ŋ 9953056974 â‰ŧ🔝 Call Girls In New Ashok Nagar â‰ŧ🔝 Delhi door step de...
Call Now â‰Ŋ 9953056974 â‰ŧ🔝 Call Girls In New Ashok Nagar  â‰ŧ🔝 Delhi door step de...Call Now â‰Ŋ 9953056974 â‰ŧ🔝 Call Girls In New Ashok Nagar  â‰ŧ🔝 Delhi door step de...
Call Now â‰Ŋ 9953056974 â‰ŧ🔝 Call Girls In New Ashok Nagar â‰ŧ🔝 Delhi door step de...
 

Typical Embedded System

  • 1. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 The Typical Embedded System Mr. Anand H. D. 1 The Typical Embedded System Department of Electronics & Communication Engineering Dr. Ambedkar Institute of Technology Bengaluru-56
  • 2. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 2 Definition Embedded systems vs. General Computing Systems Core of the Embedded System Memory Sensors and Actuators Communication Interface Embedded Firmware Other System Components PCB and Passive Components Topics to be covered: The Typical Embedded System
  • 3. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 3 Definition Embedded systems vs. General Computing Systems Core of the Embedded System Memory Sensors and Actuators Communication Interface Embedded Firmware Other System Components PCB and Passive Components Topics to be covered: The Typical Embedded System
  • 4. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 4 Embedded System: Definition Embedded System is combination of hardware and software, designed for specific application or domain, whose applications ranges from simple toy car to complex air traffic control system. The Typical Embedded System
  • 5. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 5 Definition Embedded systems vs. General Computing Systems Core of the Embedded System Memory Sensors and Actuators Communication Interface Embedded Firmware Other System Components PCB and Passive Components Topics to be covered: The Typical Embedded System
  • 6. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 6 General Purpose Computing System Embedded systems vs. General Computing Systems The Typical Embedded System Embedded System īƒ˜A system which is combination of a generic hardware and a general purpose OS for executing a variety of applications īƒ˜Contains general purpose Operating System (GPOS) īƒ˜Applications are alterable (programmable) by the users.(It is possible for end users to re-install OS, also add/remove user applications) īƒ˜Performance is the key deciding factor in selection of the system. Always ‘Faster is Better’ īƒ˜Less/not at all tailored towards reduced operating power requirements, options for different levels of power management. īƒ˜A system which is combination of special purpose hardware and Embedded OS for executing specific set of applications īƒ˜May or may not contain Operating System īƒ˜The firmware of the embedded system is pre- programmed and it is non-alterable by the end user īƒ˜Application specific requirements(like performance, power requirements, memory usage etc.) are the key deciding factors. īƒ˜Highly tailored to take advantage of the power saving modes supported by all hardware and the operating system īƒ˜Response requirements are not time critical īƒ˜For certain category of Embedded systems like mission critical systems, the response is time critical īƒ˜Need not be Deterministic in execution behavior īƒ˜Execution behavior is deterministic for certain types of embedded systems like ‘Hard Real time systems’
  • 7. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 7 Definition Embedded systems vs. General Computing Systems Core of the Embedded System Memory Sensors and Actuators Communication Interface Embedded Firmware Other System Components PCB and Passive Components Topics to be covered: The Typical Embedded System
  • 8. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 8 Typical Embedded System The Typical Embedded System System Core I/P Ports (Sensors) O/P Ports (Actuators) Memory Other supporting ICs & Subsystems Embedded Firmware Embedded System Real World Communication Interfaces FPGA/ASIC/SoC/DSP Microprocessor/Microcontroller/COTs
  • 9. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 9 Core of the Embedded System The Typical Embedded System 1. General Purpose and Domain Specific Processors 2. Application Specific Integrated Circuit (ASIC) 3. Programmable Logic Devices (PLDs) 4. Commercial Off the shelf Components (COTS) a. Microprocessor b. Microcontroller c. Digital Signal Processor (DSP)
  • 10. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 10 Core of the Embedded System The Typical Embedded System Microprocessor Microcontroller īƒ˜A silicon chip representing a Central Processing Unit (CPU) which is capable of performing arithmetic as well as logical operations according to a predefined set of instructions īƒ˜It is dependent unit. It requires the combination of other chips like timers. Program and data memory chips, interrupt controller etc. for functioning īƒ˜Most of the time general purpose in design and operation īƒ˜Doesn’t contain built in I/O port. I/O port functionally needs to be implemented with the help of external programmable peripheral interface chips like 8255 īƒ˜Targeted for high end market where performance is important īƒ˜A highly integrated chip that contains a CPU, Scratchpad RAM, Special and general purpose register arrays, on chip ROM/ Flash memory for program storage, timer and interrupt control unit and dedicated IO ports īƒ˜It is self contained unit and it doesn't require external interrupt control unit, timers, UART etc, for functioning īƒ˜Mostly application oriented and domain specific īƒ˜Most of the processors contain multiple built in I/O ports which can be operated as a single 8/16/32 bit port or individual port pin. īƒ˜Targeted for embedded market where performance is not so critical.(at present, it is invalid) īƒ˜Limited power saving options compared to microcontroller īƒ˜Includes lot of power saving features
  • 11. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 11 Core of the Embedded System The Typical Embedded System Digital Signal Processor īƒ˜Are powerful special purpose 8/16/32 bit microprocessor designed specifically to meet the computational demands and power constraints of audio, video and communication applications. īƒ˜2 to 3 times faster than General purpose Processors (architectural difference between the two) īƒ˜In general DSP can be viewed as a microchip designed for performing high speed computational operations for addition, subtraction multiplication and division. īƒ˜A typical DSP incorporates the following key units: Program Memory: for storing program required by DSP to process data Data Memory: working memory for storing temporary variables and data/signal to be processed Computational Engine: performs signal processing in accordance with stored program. Computational engine incorporates many specialized arithmetic units and each of them operates simultaneously to increase the execution speed and also shifters I/O unit: acts as an interface between the outside world and DSP. It is responsible for capturing signals to be processed and delivering the processed signals. īƒ˜Audio, Video signal processing, telecommunication and multimedia applications are typical examples. Involves Real time operations like Sum of Products(SoP), Convolution, FFT, DFT etc.
  • 12. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 12 Core of the Embedded System The Typical Embedded System RISC Reduced Instruction Set Computer CISC Complex Instruction Set Computer īƒ˜Lesser number of Instructions īƒ˜Instruction Pipelining and increased execution speed īƒ˜Orthogonal Instruction set.(Allows each instruction to operate on any register and use any addressing mode) īƒ˜A large number of Registers are available. īƒ˜Programmer needs to write more code to execute a task since the instructions are simpler ones īƒ˜Greater number of instructions īƒ˜Generally no instruction pipelining feature īƒ˜Non-Orthogonal Instruction set.(All instructions are not allowed to operate on any register and use any addressing mode. It is instruction specific) īƒ˜Limited number of general purpose registers. īƒ˜Instructions are like macros in C language. A programmer can achieve desired functionality with a single instruction which in turn provides the effect of using more number of instructions in RISC īƒ˜Single fixed length instructions īƒ˜Variable length instructions īƒ˜Less silicon usage and pin count īƒ˜More silicon usage since more additional decoder logic is required to implement the complex instruction decoding īƒ˜With Harvard Architecture īƒ˜Can be Harvard or Von-Neumann Architecture
  • 13. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 13 Core of the Embedded System The Typical Embedded System Harvard Architecture Von-Neumann Architecture īƒ˜Separate buses for instruction and Data fetching īƒ˜Easier to pipelining, so high performance can be achieved īƒ˜Comparatively high cost īƒ˜Single shared bus for instruction and data fetching īƒ˜Low performance compared to Harvard. īƒ˜Cheaper īƒ˜No memory alignment problem īƒ˜Allows self modifying codes īƒ˜Since data memory and program memory are stored physically in different locations, no chances for accidental corruption of program memory īƒ˜Since data memory and program memory are stored physically in same location there is chance for accidental corruption of program memory I/O CPU Memory Program Memory CPU Data Memory Single shared
  • 14. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 14 Core of the Embedded System The Typical Embedded System Big Endian vs. Little Endian Processors/Controllers Base Address + 0 Base Address + 1 Base Address + 2 Base Address + 3 0x2000 (Base Address) 0x2001 (Base Address + 1) 0x2002 (Base Address + 2) 0x2003 (Base Address + 3) BYTE 0 BYTE 1 BYTE 2 BYTE 3 Base Address + 0 Base Address + 1 Base Address + 2 Base Address + 3 0x2000 (Base Address) 0x2001 (Base Address + 1) 0x2002 (Base Address + 2) 0x2003 (Base Address + 3) BYTE 3 BYTE 2 BYTE 1 BYTE 0 īƒ˜Lower-order byte of data is stored in memory at lower address īƒ˜Higher-order byte of data is stored in memory at higher address īƒ˜Lower-order byte of data is stored in memory at higher address īƒ˜Higher-order byte of data is stored in memory at lower address īƒ˜Endianness specifies the order in which the data is stored in memory by the processor operations in a multi byte system. īƒ˜Let us consider a 4 bytes long integer Byte 0, Byte 1, Byte 2 and Byte 3 Little Endian Operation Big Endian Operation īƒ˜Assignment Q1: Consider Data 0xff001234, store this data in memory with starting address from 0x1d04, Assume each memory location can accommodate 1 byte of data. Show diagrammatically Big Endian Storage and Little Endian Storage.
  • 15. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 15 Core of the Embedded System The Typical Embedded System Load Store Operation and Instruction Pipelining 1. load R1,x The concept of Load and Store Architecture R1 R2 R3 00 7F 23 ALU 2. load R2,y 3. add R3,R1, R2 4. store R3,z x y z
  • 16. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 16 Core of the Embedded System The Typical Embedded System Instruction Pipelining Fetch Execute Fetch Execute Fetch Execute Fetch Execute Fetch Execute Fetch Execute Fetch Execute Fetch Execute 1 2 3 4 5 1 2 3 4 5 6 7 8
  • 17. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 17 Core of the Embedded System The Typical Embedded System Application Specific Integrated Circuit ( ASIC) īƒ˜ASIC is a micro chip designed to perform a specific or unique application īƒ˜Integrated several functions into a single chip and there by reducing system development cost. Most of the ASICs are proprietary products, īƒ˜As a single chip ASIC consumes a very small area in total system and thereby help to design smaller systems with high capabilities/functionalities. īƒ˜Can be pre-fabricated for a special application or it can be custom fabricated by using components from a re-usable “building blocks” library of components for a particular customer application. īƒ˜ASIC based systems are profitable only for large volume commercial products. īƒ˜Production of ASIC requires a non-refundable initial investment for the process technology and configuration expenses- NRE (Non Recurring Engineering Charges), it is one time investment If NRE is borne by Third Party and ASIC is made openly available in the market, ASIC is referred as Application Specific Standard Product (ASSP) Disadvantages: Since ASICs are proprietary products, the developers of such chips may not be interested in revealing the internal details of it, hence it is very difficult to point out example of it. It creates legal disputes if an illustration of such an ASIC product is given without prior permission from manufacturers of ASIC
  • 18. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 18 Core of the Embedded System The Typical Embedded System Programmable Logic Devices( PLDs) īƒ˜Logic devices provides specific functions, including device-to-device interfacing, data communication, signal processing, data display, timing and control operation. īƒ˜logic devices can be classified into 2 broad categories: Fixed Logic Devices Programmable Logic Devices --- Perform one/set of functions once manufactured --- offers customers a wide range of logic capacity, features, speed and voltage characteristics ---can be reconfigured to perform no. of functions at anytime īƒ˜With PLDs, designers use inexpensive software tools to quickly develop, simulate and test their designs. Design can be quickly programmed into a device and immediately tested in a live circuit. īƒ˜There are no NRE costs and the final design is completed much faster than that of a custom, fixed logic devices. Key Benefit: During design phase customers can change the circuitry as often as they want until design operates to their satisfaction. PLD are based on re-writable memory technology. Once design is final, customers can go into immediate production by simply programming as many PLDs as they need with final S/W design file.
  • 19. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 19 Core of the Embedded System The Typical Embedded System Programmable Logic Devices( PLDs) contd. īƒ˜PLDs can be classified into 2 broad categories: CPLDs FPGAs --- Complex PLDs --- Field Programmable Gate Arrays īƒ˜FPGAs offer highest amount of logic density, most features, highest performance īƒ˜Largest FPGA now available is Xilinx Vertex with 8 million system gates īƒ˜Advanced FPGAs also provides hardwired processors, substantial amount of memory, clock management systems and support latest technologies. īƒ˜Are used in wide variety of applications ranging from data processing and storage, instrumentation, telecommunication and Digital Signal Processing īƒ˜CPLDs offer much smaller amount of logic (10,000 Gates). īƒ˜But offer very predictable timing characteristics and are ideal for critical control applications īƒ˜Also requires low amount of power and very inexpensive, hence ideal for cost sensitive, battery operated, portable applications such as mobiles and digital handheld assistances
  • 20. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 20 Core of the Embedded System The Typical Embedded System Programmable Logic Devices( PLDs) contd. īƒ˜Advantages of PLDs: â€ĸ Offers more flexibility during design phase. â€ĸ Doesn’t require long lead time for prototyping â€ĸ Do not require large NRE cost â€ĸ PLD offers customers to order just no. of parts they need, when they need them, allowing them to control inventory. Fixed PLDs customers end up either with excess inventory or caught short of parts which delays production. â€ĸ Can be programmed even after it is shipped to customers-īƒ  up gradation by uploading program files to internet īƒ˜Few years ago largest FPGA measured is 10s thousands of system gates and operated at 40Mhz. Currently million of gates with integrated functionality like Processors and memory, operating at 300MHz Assignment Q2: Which is the largest FPGA currently available in market and what is its operating frequency?
  • 21. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 21 Core of the Embedded System The Typical Embedded System Commercial Off the Shelf Components ( COTS) īƒ˜Designed in such a way to provide easy integration and inter-operability with existing system components. īƒ˜May be developed around a general purpose/ domain specific/ ASIC/ PLD īƒ˜Typical examples -īƒ  remote controlled toy car unit including the RF circuitry part, high performance and high frequency microwave electronics, high bandwidth ADC, devices and components for operation at very high temperature, electro-optic IR imaging arrays, UV/IR detectors etc. īƒ˜Readily available in market, cheap and a developer can cut down his/her development time to a great extent, reducing time to market. īƒ˜TCP/IP plug in module available from various manufacturers like WIZnet, Freescale, Dynalog etc. are very good examples of COTS īƒ˜You have to identify COTS for your system and give plug-in option on your board īƒ˜Though multiple vendors supply COTS for same application there is no operational and manufacturing standards īƒ˜COTS manufactured by a vendor need not be having hardware plug-in and firmware compatibility with one manufactured by a second vendor. This restricts end-users to stick to a particular vendor for a particular COTS īƒ˜COTS Manufacturers may withdraw the product/discontinue at any time if a rapid change in technology occurs.
  • 22. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 22 Definition Embedded systems vs. General Computing Systems Core of the Embedded System Memory Sensors and Actuators Communication Interface Embedded Firmware Other System Components PCB and Passive Components Topics to be covered: The Typical Embedded System
  • 23. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 23 The Typical Embedded System Memory On-Chip Memory and Off-chip Memory Serial Memory and Parallel Memory Program Storage Memory (ROM): Code Memory (ROM) MASK ROM (MROM) EPROM EEPROM NVRAM FLASH PROM (OTP) ROM and RAM Volatile Memory and Non Volatile Memory
  • 24. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 24 The Typical Embedded System Memory Masked ROM īƒ  One Time Programmable īƒ  Programmed by masking and metallization process at the time of production itself based on input given by user īƒ  Low cost, good for storing Firmware for low cost embedded devices. īƒ Once the design is proven and tested, the binary data corresponding to it can be given to MROM Fabricator īƒ Disadvantage: disability to modify Firmware PROM īƒ  One Time Programmable īƒ  Unlike MROM it is not preprogrammed by manufacturer īƒ  The end user programs these devices. īƒ has nichrome/polysilicon arranged as matrix. These wires can be used as fuses. īƒ it is programmed by selectively burning these fuses according to bit pattern to be stored īƒ fuses not blown represents ‘1’ and those blown are logic ‘0’. Default state is logic ‘1’ īƒ used for commercial production of embedded systems whose prototype is proven and code is finalized. īƒ low cost is advantage but cannot be reprogrammed
  • 25. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 25 The Typical Embedded System Memory EPROM īƒ  Provides the flexibility to reprogram the same chip īƒ  Stores the bit information by charging the FET gate īƒ  Contains quartz crystal window for erasing the stored information. īƒ if this window is exposed to UV rays for a fixed duration, the entire memory will be erased īƒ for erasing process, it needs to be taken out of circuit board and put in a UV eraser device for 20-30 mins, which is tedious and time consuming EEPROM īƒ  Information contained in EEPROM can be altered by electrical signals at register/byte level īƒ  Can be erased and reprogrammed in-circuit īƒ consists of a ‘chip erase mode’, in this mode they can be erased in ms. īƒ provides flexibility for system design īƒ only limitation is capacity compare to standard ROM FLASH īƒ  Latest ROM īƒ  Variation of EEPROM īƒ combines flexibility of EEPROM + High capacity of Standard ROM. īƒ organized as sectors(blocks) or pages. īƒ stores information in an array of floating gate MOSFET transistors. īƒ memory can be erased at sector/page level without erasing other sectors īƒ each page/sector must be erased before reprogramming, typical erase cycles is 1000 cycles
  • 26. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 26 The Typical Embedded System Memory NVRAM īƒ  Memory with battery back up īƒ  Consists of SRAM memory with minute battery īƒ  Memory and battery are packed in a single package īƒ life span is expected to be around 10 years Data Memory (RAM) DRAM NVRAM SRAM Read/ Write Memory or Random Access Memory (RAM):
  • 27. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 27 The Typical Embedded System Memory SRAM īƒ  Data is stored in the form of voltage īƒ  Made up of flip-flops īƒ  Fastest form of RAM īƒ typically realized using 6 MOSFETS 4 for building flip-flops; 2 for controlling access īƒ in simple form SRAM is a 2 Cross-coupled inverters with read/write control through transistor. īƒ access to memory cell is controlled by word line īƒ for writing, desired value is applied to bit line controller. i.e. for 1, B=1 and B’=0 for 0, B=0 and B’=1 īƒ for reading, both the bit lines are asserted/set as 1 and word line is set to 1
  • 28. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 28 The Typical Embedded System Memory DRAM īƒ  Dynamic RAM īƒ  Data is stored in the form of charge īƒ  Made up of a MOS transistor gate īƒ high density and low cost īƒ Charge gets leaked away hence periodic refresh is done īƒ DRAM Controller refreshes DRAM after certain msecs. īƒ MOSFET acts as gate for incoming and outgoing data īƒ capacitor acts as bit storage unit SRAM DRAM īƒ made up of 6 CMOS transistors (MOSFETs) īƒ made up of a MOSFET and capacitor īƒ doesn’t require refresh īƒ periodic refresh is necessary īƒ low capacity (less dense) īƒ high capacity īƒ expensive īƒ fast in operation, 10 ns access time īƒ less expensive īƒ slow in operation due to refreshment 60 ns access time Write is faster than read
  • 29. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 29 The Typical Embedded System Memory Memory Shadowing īƒ  ROM access speed is very slow compared to RAM īƒ  RAM is 3 times faster than ROM īƒ  Shadowing technique is adapted to solve execution speed problem īƒ Basic I/P O/P configuration ROM or BIOS stores hardware configuration information like address of various ports. Now manufactures include RAM behind BIOS at its same address, as a shadow BIOS īƒ First step during Boot up is copying of BIOS to shadowed RAM and write protecting this RAM and disabling BIOS īƒ RAM is volatile but ROM is permanent, therefore high system performance is achieved by accessing RAM instead of ROM ROM RAM Non Volatile Slower Faster Volatile Advantage Limitation
  • 30. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 30 The Typical Embedded System Memory Memory Selection for Embedded System īƒ Code Memory (ROM) īƒ  Data Memory (RAM) Application Specific īƒ if made up of Soc/MC, on-chip memory may be enough, if not must be interfaced with external/off- chip memory īƒ ROM + RAM to execute program code, for RTOS based embedded system extra RAM is required for Memory Shadowing īƒ Memory Chip Size īƒ available in standard size like 512/1024 bytes (1Kb, 2Kb, 4Kb, 8Kb, 1Gb, 2Gb, 4Gb, 8Gb) īƒ suppose memory required is 740 bytes, 1Kb chip can be selected īƒ word size īƒ no. of bits that can be accessed simultaneously, word size <==> bus size īƒ currently FLASH memory is used īƒ FLASH memory īƒ NAND FLASH memory īƒ NOR FLASH memory īƒ High density, low cost, DRAM is used īƒ low density, slightly expensive but supports XIP (execute in place)
  • 31. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 31 Definition Embedded systems vs. General Computing Systems Core of the Embedded System Memory Sensors and Actuators Communication Interface Embedded Firmware Other System Components PCB and Passive Components Topics to be covered: The Typical Embedded System
  • 32. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 32 The Typical Embedded System Sensors and Actuators īƒ  Sensor is a transducer that converts energy from one form to another for any measurement and control purpose īƒ  Actuator is a transducer device (mechanical/electrical) which converts signals to corresponding physical actions īƒ  Input Output Subsystem facilitates interaction between Embedded System and external world Light Emitting Diode (LED) īƒ o/p device for visual indication of signal status like device ON, Battery Low, charging state īƒ its an p-n junction diode, anodeīƒ  +ve terminal of Power supply cathodeīƒ  -ve terminal of Power supply īƒ current conducted by LED is limited, therefore to limit current through LED within maximum value, resistor is connected in series
  • 33. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 33 The Typical Embedded System Sensors and Actuators LED and MP/MC is interfaced in 2 ways īƒ  Anode is connected to port pi of MP/MC and cathode is connected to ground īƒ  Cathode is connected to port pin and anode is connected to power supply īƒ brightness depends on current sourced by port pin, may be not of required level īƒ brightness is of required level Seven Segment Display īƒ o/p device for displaying alpha-numeric characters īƒ 8 LED segments are arranged in special form īƒ 7 are used for displaying Alpha-numeric characters named as A to G īƒ 1 LED is used for displaying decimal point in decimal numbers and named as DP īƒ popular choice for low cost Embedded applications like public telephone call monitoring device, point of sale terminal etc.
  • 34. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 34 The Typical Embedded System Sensors and Actuators When interfaced with MP/MC 8 LEDs are connected such that A is connected to LSB port pin and DP is connected to MSB port pin īƒ  Can be interfaced with MP/MC using any of 2 configurations: īƒ  In Common anode, anodes of all the LEDs are connected commonly and connected to 5V power supply whereas cathode of each LED is connected to Port Pins īƒ Common Anode īƒ  Common Cathode īƒ  In Common cathode, cathodes of all the LEDs are connected commonly and connected to ground whereas anode of each LED is connected to Port Pins īƒ  The current through each LED must be limited below maximum value. It is typically 20mA by connecting current limiting resistor to anode/cathode
  • 35. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 35 The Typical Embedded System Sensors and Actuators Optocoupler: īƒ to isolate 2 parts of circuit īƒ can be used for suppressing data interference in data communication, circuit isolation, high voltage separation, signal intensification īƒ LED + photo transistor in single package īƒ optocoupler can be used at input or output of a circuit īƒ optocoupler is available as ICīƒ  MCT2M
  • 36. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 36 The Typical Embedded System Sensors and Actuators Stepper motor: īƒ electro-mechanical device that generates discrete displacement in response to DC electrical signals īƒ based on coil winding arrangements, a 2 phase stepper motor is classified into 2 types: īƒ widely used in industrial embedded applications, consumer electronic products and robotic control systems īƒ Unipolar Stepper Motor īƒ  Bipolar Stepper Motor Unipolar Stepper Motor īƒ 2 windings per phase īƒ direction of rotation is controlled by changing direction of current flow īƒ current in these 2 coils flow in opposite direction wrt. to each other īƒ change of direction implies changing/switching terminals to which coils are connected īƒ coils are represented as A, B, C and D. A & C carry current in opposite direction for phase 1, similarly B & D carry current in opposite direction for phase 2
  • 37. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 37 The Typical Embedded System Sensors and Actuators Bipolar Stepper Motor īƒ single winding per phase īƒ direction of motor rotation is dynamically reversed īƒ complex circuit is necessary for current reversal Implementation: by changing sequence of activation of stator windings different stepping modes can be implemented Step A B C D 1 H H L L 2 L H H L 3 L L H H 4 H L L H Both phases are energized simultaneously Full Step:
  • 38. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 38 The Typical Embedded System Sensors and Actuators Step A B C D 1 H L L L 2 L H L L 3 L L H L 4 L L L H Only one phase will be active at a time īƒŸ Wave Step: Step A B C D 1 H H L L 2 H L L L 3 L H H L 4 L H L L 5 L L H H 6 L L H L 7 H L L H 8 L L L H Combination of full step and wave step Half Step:īƒ 
  • 39. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 39 The Typical Embedded System Sensors and Actuators īƒ 2 phase unipolar stepper motors are popular choice īƒ therefore special circuits are required to interface stepper motor to MP/MC=> COTS-> ULN2803 īƒ current requirement for stepper motor is little high, hence port pin of MP/MC may not be able to drive stepper motor, normally requires 5v-24v supply voltage
  • 40. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 40 The Typical Embedded System Sensors and Actuators Relay: īƒ electro-mechanical device īƒ made up of 2 components: īƒ dynamic path selector for signals and power Relay coil Metal armature īƒ made up of insulated wire wound over a metal core īƒ with one or more contacts īƒ works on electromagnetic principle when voltage is applied to relay coil, current flows through the coil which generates magnetic field, this magnetic field attracts/reflects armature and moves the contact point īƒ 2 configurations īƒ single core and single throw īƒ single core and double throw īƒ only 1 path for information flow īƒ 2 paths for information flow and selected by energizing and de-energizing the coil īƒ single core and single throw īƒ normally open īƒ normally closed
  • 41. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 41 The Typical Embedded System Sensors and Actuators īƒ normally controlled using a relay driver circuit connected to the port pins of MP/MC īƒ free wheeling diode is for protecting relay and transistor īƒ relay driver circuit is built using transistor īƒ special relays īƒ  Reeds are available for embedded applications for switching low voltage DC signals
  • 42. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 42 The Typical Embedded System Sensors and Actuators Piezo-buzzer: īƒ piezo-electric device for generation of audio indication in embedded applications īƒ 2 configurations: īƒ piezo electric diaphragm produces audible sound in response to applied voltage īƒ Self Driving īƒ  External Driving īƒ generates sound at a predefined tone īƒ supports generation of different tones. Tone can be varied by applying variable pulse train īƒ can be directly interfaced or through a transistor based driver circuit Push Button Switch: īƒ input device īƒ 2 configurations: īƒ Push to make īƒ  Push to break
  • 43. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 43 The Typical Embedded System Sensors and Actuators īƒ Push to make īƒ  Push to break īƒ switch is normally open īƒ makes contact when pushed or pressed īƒ remains in the closed state unless it is released īƒ when released breaks connection īƒ switch is normally closed īƒ breaks the contact when pushed or pressed īƒ remains in the open state unless it is released īƒ when released circuit connection is made back īƒ used for generating a momentary pulse i.e. pulse generator, reset and start pulse īƒ high pulse/ low pulse depends on how it is interfaced with MP/MC
  • 44. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 44 The Typical Embedded System Sensors and Actuators Keyboard: īƒ input device īƒ if keys required is very less, push buttons can be directly interfaced to port pins īƒ best solution for such case is Matrix keypad īƒ it generally reduces to number of interface connections. For example If 16 keys required, it requires 16 port pins Instead if 4x4 matrix keypad is used only 4+4 =8 port pins are required i.e. 50% reduced īƒ In matrix keyboard, keys are arranged in matrix fashion īƒ if large number of keys are required for user inputs then it is not possible to interface all the keys, also it will be wastage of port pins
  • 45. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 45 The Typical Embedded System Sensors and Actuators Detecting a Key pressed: īƒ Scanning Technique īƒ each row of matrix is pulled low and column is read īƒ when row is pulled low and a key connected to that is pressed then when status of column is read, it gives logic 0 īƒ Disadvantage: keys are mechanical therefore suffer from Switch Debouncing īƒ  multiple key pressed effect for single key pressed īƒ after reading status of each column corresponding o a row, that row is pulled high and next row is pulled low and process is repeated unless all the rows are checked īƒ H/w key Debouncing circuits: īƒ S/W key Debouncing technique: īƒ additional H/W is required īƒ once key pressed is detected, it is read again after certain debouncing delay, if key pressed is genuine, the state remain same on second read also. īƒ pull up resistors are connected to column lines to limit the current that flows through rows when key is pressed
  • 46. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 46 The Typical Embedded System Sensors and Actuators Programmable Peripheral Interface: īƒ used for enhancing I/O capabilities of MP/MC īƒ MP/MC provides limited number of I/O port pins, in some cases there may be need for more number of I/O pins than that is supported by MP/MC īƒ 8255A is popular PPI device īƒ it supports 24 I/O pins īƒ three 8 bits parallel ports īƒ  port A, port B and port C īƒ or two 8 bits parallel ports īƒ  port A and port B īƒ Port C as 8 individual port pins or Two 4-bit parallel portsīƒ  Port C upper and Port C Lower Control Register of 8255A Assignment Q3: Explain the bit fields of Control Register of 8255A PPI Device
  • 47. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 47 Definition Embedded systems vs. General Computing Systems Core of the Embedded System Memory Sensors and Actuators Communication Interface Embedded Firmware Other System Components PCB and Passive Components Topics to be covered: The Typical Embedded System
  • 48. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 48 The Typical Embedded System Communication Interface īƒ essential for communicating with various subsystems of the embedded system and also with other systems. īƒ 2 prospective: īƒ Device/Board level īƒ  Product level īƒ on-board Communication Interfaces īƒ External Communication Interfaces īƒ On-board Communication Interfaces => communication links which interconnect different subsystems/components with in a Embedded System īƒ External Communication Interfaces => communication links which facilitates interaction and data transfers between different devces/systems in a distributed networkīƒ  wired or wireless Examples: I2C, Serial Peripheral Interface, UART, 1-wire interface, Parallel Interface Examples: RS 232C & RS 485, USB, IEEE 1394, IrDA, Bluetooth, Wi-Fi, Zig bee, GPRS
  • 49. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 49 The Typical Embedded System Communication Interface On-board Communication Interfaces Inter Integrated Circuit (I2C) Bus: īƒ synchronous, bi-directional, half duplex & 2 wire serial interface bus īƒ concept of I2C busīƒ  Philips Semiconductor in early 1980s īƒ original intentionīƒ  provide easy communication interface between MP/MC and other peripheral chips of TV īƒ 2 wires: īƒ Serial Clock (SCL) īƒ  Serial Data (SDA) SCL īƒ  for generation of clock pulse for synchronization SDA īƒ  for transmitting serial data between the devices īƒ Shared bus system īƒ  multiple devices connected to a single bus īƒ Device īƒ  Master/Slave
  • 50. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 50 The Typical Embedded System Communication Interface Master īƒ  controls communication by initiating/terminating data transfer, it sends data, generates synchronous clock pulse I2C īƒ  Supports multiple master devices īƒ connection of master and slave on I2C bus is as shown in figure Slave īƒ  waits for the commands from Master and responds on receiving the commands Master/Slave īƒ  Transmitter/receiver, regardless of Transmitter/receiver Master generates the clock pulse īƒ for proper operation of bus both the lines are pulled to high voltage īƒ¨ 5V for TTL logic and 3V for CMOS Family devices, through pull up resistors of 2.2 Kâ„Ļ īƒ therefore with pull-up resistors, the output lines of bus in ‘idle state’ is High
  • 51. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 51 The Typical Embedded System Communication Interface Sequence of operations for communicating between Master & Slave: īƒ  START Condition for data transfer īƒ master device sends address (7-10 bits) of slave device with which it wants to communicate over SDA īƒ  Master device pulls the clock line (SCL) HIGH Therefore: SCL īƒ  HIGH SDA īƒ  LOW īƒ master device sends read/write bit i.e. if Bit Value = 1, READ operation Bit Value = 0, WRITE operation īƒ  Master device pulls the data line (SDA) LOW īƒ master device waits for the acknowledge bit from the slave device, whose address is sent along along with read/write operation command īƒ salve compares received address with its address
  • 52. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 52 The Typical Embedded System Communication Interface īƒ upon receiving acknowledgement bit master device sends 8 bits data to slave device over SDA line īƒ¨ if requested operation is ‘WRITE to device’ else īƒ  slave device with address requested by the master responds by sending acknowledgement (Bit value 1) over SDA line if requested operation is ‘READ from device’ then slave device sends data to master over SDA line. īƒ master device awaits for the acknowledge bit from the slave device upon byte transfer if WRITE operation else sends a acknowledgement bit to salve for READ operation īƒ master device terminates the transfer by pulling SDA line HIGH when SCL is HIGH īƒ  STOP Condition for data transfer Therefore: SCL īƒ  HIGH SDA īƒ  HIGH
  • 53. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 53 The Typical Embedded System Communication Interface Standard Mode īƒ  I2C supports different data rates: Fast Mode High Speed Mode īƒ 100 kbps īƒ 400 kbps īƒ 3.4 Mbps Serial Peripheral Interface (SPI) Bus: īƒ synchronous, bi-directional, full duplex & 4 wired serial interface bus īƒ concept was first developed by Motorola īƒ supports single master and multiple slave īƒ also supports more than one master īƒ¨ only one master is active at a time 4 wires: īƒ Master Out Slave In (MOSI)īƒ Slave In/Slave Data In(SI/SDI) īƒ  Master In Slave Out (MISO)īƒ Slave Out/Slave Data Out(SO/SDO) īƒ Serial Clock (SCL) īƒ  carry clock signal īƒ  Slave Select (SS) īƒ  active low
  • 54. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 54 The Typical Embedded System Communication Interface īƒ Master īƒ generates Clock Pulses īƒ selects the slave device by asserting the slave selecting signal low īƒ Data exchange through SPIīƒ  fully configurable īƒ Serial Peripheral Control Register īƒ  stores all configuration parameters like selection of master/slave for data transfer, selection of baud rate for communication, clock signal control, whether MSB/LSB should be sent first īƒ SPI works on Principle of Shift register īƒ therefore Shift registers of Master & Slave form a Circular buffer 1 0 0 0 0 1 1 0 0 0 1 0 1 0 0 1 1 0 0 0 0 1 1 0 0 0 1 0 1 0 0 1 Master Slave MOSI MISO
  • 55. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 55 The Typical Embedded System Communication Interface īƒ master and slave devices contains a special shift registers for data transfer. Size of the shift register is device dependent, normally it is multiple of 8 īƒ suitable for applications which supports data transfer in streams īƒ only disadvantage is that it doesn’t support acknowledgement mechanism Universal Asynchronous Receiver Transmitter (UART) Interface: īƒ asynchronous type of data transmission īƒ no need of clock pulse īƒ transmission takes place based on predefined agreement between Transmitter & Receiver īƒ serial communication settings: Baud rate, number of start bits, parity, number of bits per byte and flow control, should be identical between transmitter & receiver īƒ special bits in data stream indicates start and stop of data transmission īƒ while sending a data byte, a start bits are added first and stop bits are added the end of a byte of data LSB follow start bit. Start bit MSB LSB Stop bit parity bit
  • 56. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 56 The Typical Embedded System Communication Interface īƒ  Start bits inform receiver that a data byte is about to arrive īƒ  If baud rate is x bps, time slot for each bit is 1/x seconds. For example if baudrate is 5 then 1/5 seconds. 1/5 (1000) ms = 200ms īƒ  If parity is enabled then UART of transmitting device adds parity bit 1 īƒ  number of 1’s is odd 0 īƒ  number of 1’s is even or vice-versa īƒ  UART on receiver device calculates the parity of bits received and compares it with parity bit for error checking īƒ  UART on receiver device discards the ‘Start’, ’Stop’ and ‘Parity’ bits from received bit stream and converts the received signal bits into words īƒ  For proper communication, transmitter line of sending device must be connected to receiver line of receiving device.
  • 57. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 57 The Typical Embedded System Communication Interface īƒ  UART chips are available from different semiconductor manufacturers but National Semiconductor’s 8250 UART is considered to be standard īƒ  Now a days most of the MP/MC are available with integrated UART functionality and they provide built-in instructions to support serial data transmission and reception 1 wire Interface: īƒ asynchronous, half duplex īƒ developed by Maxim Dallas Semiconductors īƒ also known as Dallas 1 wire protocol īƒ made up of only single signal line called as DQ for communication, follows master slave communication model īƒ supports single master and one or more slave devices
  • 58. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 58 The Typical Embedded System Communication Interface 8 bits family codeīƒ  TTL/CMOS īƒ  Every 1-wire device contains a globally unique 64 bits identification number. This UIN can be used for addressing individual devices on bus. 48 bits serial number 8 bits CRC generated from first 56 bits īƒ  the identifier has 3 partsīƒ  īƒ  Sequence of operation: īƒ  Slave device(s) present on bus responds with a ‘Presence’ pulse īƒ Master device sends a ROM command īƒ  64 bits address of device this addresses the slave device with which it want to communicate īƒ Master sends read/write function command to read/write into internal memory of slave device īƒ Master initiates read/write from the device or into the device īƒ  Master device sends a ‘Reset’ pulse over 1-wire
  • 59. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 59 The Typical Embedded System Communication Interface īƒ  For starting the communication, master asserts the Reset pulse by pulling 1-wire bus Low for at least 8 time slots īƒ  Communication over 1-wire bus is divided into time slots of 60Âĩsecs īƒ  If slave devices are present on bus and is ready for communication, should respond with ‘Presence’ pulse within 60Âĩsecs of reset pulse īƒ  For writing a bit value 1, master pulls the bus LOW for 1-15Âĩsecs and releases for the rest of the time slots. īƒ  A bit value is written by master pulling the bus LOW for minimum 1 time slot and maximum 2 time slots. īƒ To read a bit from slave master pulls the bus LOW for 1 to 15Âĩsecs. If slave wants to send bit value ‘1’, it simply releases bus for rest of the time slot īƒ If slave wants to send bit value’0’, it pulls the bus low for rest of the time slot
  • 60. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 60 The Typical Embedded System Communication Interface Parallel Interface: īƒ for communicating with peripheral devices which are memory mapped to host system īƒ the host MP/MC of Embedded system contains a parallel bus & devices can be directly connected to this bus īƒ communication through parallel bus is controlled by Control Signal Interface between device and host. Read/write signal īƒ  Control Signals: Device Select signal īƒ controls direction of data transfer īƒ device activates only when this signal is asserted īƒ address decoder is used for generating chip select signal for selecting device īƒ if address selected by processor is with in range assigned for devices, the decoder activates the chip select line and thereby the device becomes active
  • 61. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 61 The Typical Embedded System Communication Interface īƒ the processor can then read/write from/to the device by asserting RD/WR’ control lines īƒ parallel communication is host initiated. If the device wants to communicate, it can inform by generating a interrupt. īƒ bus width supported by device must be same as that of host processor (usually 4 bits, 8, 16,32 or 64 bits) īƒ offers the highest speed for data transfer
  • 62. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 62 The Typical Embedded System Communication Interface External Communication Interfaces RS 232C & RS 485: RS232C īƒ  Recommended Standard number 232 revision C from Electronic Industries Association īƒ full duplex, wired, asynchronous serial communication īƒ was developed by EIA in 1960s īƒ Extends UART communication for external data communication īƒ follows EIA standard for bit transmission according to EIAīƒ¨ logic 0 = +3v to +25v, Space īƒ¨ logic 1 = -3v to -25v, Mark īƒ supports 2 different types of connectors DB-9 īƒ¨ 9 pins connector DB-25 īƒ¨ 25 pins connector īƒ RS 232 īƒ¨ point to point communication Devices involved īƒ¨ Data Terminal Equipment (DTE) īƒ¨ Data Communication Equipment (DCE)
  • 63. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 63 The Typical Embedded System Communication Interface īƒ No control signals are required only TXD and RXD lines and Gnd line are required īƒ the RXD pin of DCE must be connected to TXD pin of DTE and vice versa for proper communication īƒ Request to send (RTS) and Clear to send (CTS) coordinate the communication between DTE and DCE īƒ DTE -----------------------------īƒ  DCE īƒ¨ DTE activates RTS line īƒ  DTE īƒŸ-----------------------------DCE īƒ As per EIA RS 232 supports Baud rate upto 20Kbps Commonly used Baud rates are īƒ¨ 300bps, 1200 bps, 2400 bps, 9600 bps, 11.52 kbps, 19.2 kbps īƒ¨ DCE activates CTS line īƒ¨ DCE sends DCD (Data carrier Detect) to indicate good signal is received īƒ¨ DTE activates Data Terminal Ready (DTR) if ready to accept īƒ¨ DCE activates Data Set Ready (DSR) when it wants to send data
  • 64. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 64 The Typical Embedded System Communication Interface īƒ distance supported is 50 feet with full speed īƒ Embedded systems contain UART for serial communication. A level transistor IC from Maxim Dallas semiconductor is used for converting the signal lines from UART to RS 232 signal lines for external communication īƒ RS 232 supports only point to point communication and not suited for multiple drop communication more susceptible to noise, reduced operating distance īƒ RS 422 supports data rates upto 100 Kbps and distance of 400 ft īƒ Same RS 232 is used at device end RS 232 – RS422 converter is plugged-in and at the receiver end RS 422 to RS 232 converter is used īƒ RS 422 supports multi drop communication with one transmitter and upto 10 receivers īƒ RS 485 is enhanced version of RS 422 and it supports upto 32 transmitters and 32 receivers
  • 65. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 65 The Typical Embedded System Communication Interface Universal Serial Bus (USB): īƒ  Wired high speed serial bus īƒ first version USB 1.0 was released in 1995 and created by USB core group members including īƒ¨ Intel, Microsoft, IBM, Compaq, Digital & Northern Telecom īƒ follows star topology with USB host at center and one or more USB peripheral devices/USB hosts connected to it. īƒ USB communication is initiated by host īƒ USB host is made up of USB controller, which is responsible for controlling the data communication, establishing connectivity with USB slave devices, Packetizing and formatting the data īƒ USB transmits data in packet form and each packet has standard format
  • 66. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 66 The Typical Embedded System Communication Interface Open Host Control Interface (OHCI) īƒ  2 different standards for USB host control interface: Universal Host Control Interface (UHCI) īƒ  Physical connection between USB peripheral device and master device is established using a USB cable. This cable supports communication distance upto 5 meters. īƒ  USB standards use 2 types of connectors (at the end of USB cable): ‘Type A’ īƒ¨ for upstream connection (connection with host) ‘Type B’ īƒ¨ for downstream connection (connection with slave) īƒ  Both Type A and Type B have 4 pins: Vbus īƒ¨ Carrier power (5V) D-īƒ¨ differential data carrier line D+īƒ¨ differential data carrier line GND īƒ¨ Ground Signal line
  • 67. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 67 The Typical Embedded System Communication Interface īƒ  Uses differential signals for data transfer. This increases the immunity of signal īƒ  USB interface has ability to supply power to connecting devices. 2 pins (power & GND) is dedicated for carrying power. Can carry upto 500mA at 5Vīƒ  enough for low power devices. īƒ  USB devices must have: īƒ¨ Product ID (PID) īƒ¨ Vendor ID(VID) īƒ  USB supports 4 different types of data transfer: 1. Control 2. Bulk 3. Isochronous 4. Interrupt īƒ  query, configure, issue commands to USB Drivers īƒ  Sending block of data, supports error checking & correction(data to printer) īƒ  Real time data communication, data is transmitted as streams (audio devices, medical equipments) īƒ  Small amount of data, uses polling īƒ¨ checks whether USB device has any data to send
  • 68. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 68 The Typical Embedded System Communication Interface īƒ  USB supports 4 different rates: Low speed full speed High speed Super speed īƒ  5 Mbps īƒ¨ USB 1.0 īƒ  12 Mbps īƒ¨ USB 1.0 īƒ  480 Mbps īƒ¨ USB 2.0 īƒ  4.8 Gbps īƒ¨ USB 3.0 IEEE 1394 (Firewire): īƒ  Wired, synchronous, high speed serial communication bus īƒ also known as High Performance Serial Bus īƒ supports peer to peer connection and point to multi point communication allowing 63 devices to be connected on bus in a tree topology Apple Inc. Sony Corp. Texas Instruments īƒ  Firewire īƒ  I LINK īƒ Lynx īƒ it’s a wired technology and it can support a cable length of upto 15 feet for interconnection īƒ implementation from different manufacturers with different name
  • 69. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 69 The Typical Embedded System Communication Interface īƒ  As evolved from IEEE 1394 1995 - IEEE 1394 2008 īƒ  Supports a data rate of 400 to 3200 Mbps īƒ  Uses differential data transfer & interface cable supports 3 types of connectors namely: īƒ¨ 4 pins connector īƒ¨ 6 pin connector (alpha connector) īƒ¨ 9 pin connector (beta connector) īƒ  6 pin & 9 pin connectors also carries power ranging from 24 to 30V Pin name 4 pin 6 pin 9 pin Power 1 8 Signal ground 2 6 TPB- 1 3 1 TPB+ 2 4 2 TPA- 3 5 3 TPA+ 4 6 4 TPA(s) 5 TPB(s) 9 NC 7 īƒ  There are 2 differential lines A & B normally differential lines of A are connected to B and vice versa. īƒ  Popular communication interface for connecting embedded devices like camera, scanners, camcorders to desktop for data transfer and storage īƒ  Data rate supported by 1394 is for higher than the one supported by USB īƒ  1394 implementation is much costlier than USB implementation
  • 70. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 70 The Typical Embedded System Communication Interface Infrared(IrDA): īƒ  serial, half duplex, line of sight based wireless technology īƒ remote control of TV, VCD etc. works on infrared technology īƒ uses infrared waves of electromagnetic spectrum for transmitting the data īƒ supports point to point and point to multi point communication provided all devices involved are within line of sight. īƒ typical range lies in 10cm to 1m, can be increased by increasing transmitting power of IR device. īƒ supports data rates ranging from 9600bps to 16Mbps īƒ  Depending upon speed of data transmission IR is classified into Serial IR (SIR) Medium IR (MIR) Fast (FIR) Very Fast IR (VFIR) īƒ  9600bps to 115.2 Kbps īƒ  0.576 Mbps to 1.152 Mbps īƒ  Upto 4 Mbps īƒ  Upto 16Mbps Ultra Fast IR (UFIR) īƒ  targeting 100Mbps (Developing Phase)
  • 71. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 71 The Typical Embedded System Communication Interface īƒ  IrDA communication involves a transmitter unit for transmitting the data over IR and Receiver for receiving data īƒ Infrared LED is the IR source for transmitter and at the receiving end a photo diode acts as receiver īƒ usually most of Ir-devices contains both transmitter and receiver called as transreceiver for bidirectional communication īƒ some of the devices have either TxD or RxD. īƒ Example: TV remote control system TV Remote TV īƒ  TxD īƒ  RxD īƒ Infrared Data Association (IrDA) is regulatory body responsible for defining and licensing the specification for IR data. īƒ IrDA communication has 2 parts A physical link part A protocol part īƒ physical transfer of data īƒ  Defining rules for communication
  • 72. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 72 The Typical Embedded System Communication Interface īƒ Control protocol contains implementation for Physical layer (PHY), Media Access Control (MAC) and Logical Link Control (LLC) īƒ physical layer defines physical characteristics like range, data rates, power etc. īƒ IrDA is popular for file exchange and data transfer in low cost devices. īƒ IrDA was widely used before the discovery of Bluetooth Bluetooth: īƒ  Low cost, low power, short range, wireless technology for data and voice communication īƒ was first proposed by Ericsson in 1994 īƒ operates at 2.4 GHz of Radio Frequency spectrum and uses Frequency Hopping Spread Spectrum (FHSS) technique for communication īƒ supports data rate of upto 1Mbps and range of 30 feet īƒ Similar to IrDA, Bluetooth has 2 essential parts A physical link part A protocol part īƒ physical transmission of data between the device using wireless principles of RF waves īƒ  Defining rules for communication
  • 73. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 73 The Typical Embedded System Communication Interface īƒ Each bluetooth device will have a 48 bit Unique Identification Number(UIN). Bluetooth follows packet based data transfer īƒ Bluetooth supports point to point and point to multi point communication. īƒ point to pointīƒ¨ master slave approach īƒ point to multi pointīƒ¨1 master more slavesīƒ  Piconet īƒ  A Piconet supports maximum of 7 slaves īƒ Bluetooth is favorite choice for short range communication in handheld devices. Very popular for cell phones for transferring ringtones, music files, pictures, media files etc. īƒ Generic Access Profile (GAP) defines the requirement for detecting a Bluetooth device and establishing a connection with it īƒ Serial Port Profile (SPP) defines serial data communication īƒ File Transfer Profile (FTP) defines file transfer between devices īƒ Human Interface Devices (HID) for supporting human interface devices like keypad, mouse etc. īƒ Bluetooth Special Interest Group (SIG) defines specification and license the specification.
  • 74. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 74 The Typical Embedded System Communication Interface Wi-Fi (Wireless Fidelity): īƒ popular for networked communication of devices īƒ follows IEEE 802.11 standard īƒ essential to have device identities in a multi point communication to address specific device for communication īƒ In Internet Protocol communication each device is identified by an IP addressīƒ  unique to each device on a network īƒ Wi-Fi communication requires an intermediate agents called Wi-Fi router. Wireless Access Port(WAP)īƒ¨ â€ĸAssigning IP address to a device on network â€ĸRouting data packets to intended devices on network īƒ Wi-Fi enabled devices contains a wireless adaptor for transmitting and receiving data in the form of radio signals through an antenna īƒ  H/W part is called as Wi-Fi Radio īƒ For communicating with devices over a Wi-Fi network, Wi-Fi Radio when turned ON, it searches for the available Wi-Fi network in its vicinity & list out the Service Set Identifier (SSID) of available networks.
  • 75. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 75 The Typical Embedded System Communication Interface īƒ If network security is enabled, Password will be required īƒ employs Wired Equivalency Privacy (WEP) and Wireless Protected Access (WPA) for data security īƒ data ratesīƒ  1 Mbps to 150 Mbps depending on type of antenna and location(outdoor/indoor) usage īƒ Operating range is 100 to 300 feet īƒ low power, low cost, wireless network communication protocol īƒ based on IEEE 802.15-2006 standard. Zig-Bee: īƒ targeted for low power, low data rates and secure applications for wireless Personal Area Networking (WPAN) īƒ supports mesh-networking containing multiple nodes. Mesh topology makes network more reliable as it provides multiple paths to get data from one node to another, īƒ operates at 3 frequency ranges īƒ  2.4 to 2.484 GHz īƒ 902 to 928 MHz īƒ 868.0 to 868.6 MHz
  • 76. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 76 The Typical Embedded System Communication Interface īƒ operating range is of 100 mts and data rates of 20-250 Kbps īƒ In Zig Bee network each device falls under any one of following devices: Zig Bee coordinator/Network Coordinator(ZC) īƒ acts as root of ZigBee network īƒ has capability to store more information about the network Zig Bee Router (ZR)/Full Function Device (FFD) īƒ responsible for transmitting data from device to other or to another ZigBee Router Zig Bee End Device (ZED)/Reduced Function Device (RFD) īƒ contains ZigBee functionality for communication. It can talk with ZC/ZR, cannot transmit data from one device to other directly īƒ targeting applications: home & industrial automation, energy management, home control/security, medical/patient tracking, logistics and asset tracking, Automatic Meter Reading (AMR), Smoke Detectors, HVAC control, Heat & light Control īƒ Specification for ZigBee is developed & Managed by ZigBee Alliance
  • 77. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 77 The Typical Embedded System Communication Interface General Packet Radio Service (GPRS): īƒ Communication technique for transferring data over a mobile communication network like GSM (Global System for Mobile communication) īƒ data is sent as packets TxDing device splits data into several related packets At RxDing end, data is reconstructed by combining received data packets. īƒ theoretical maximum data rate of 171.2 Kbps īƒ radio channel is concurrently shared by several users, instead of single user. Divides the channel into 8 time slots and data is transmitted over available channel.
  • 78. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 78 Topics to be covered: Definition Embedded systems vs. General Computing Systems Core of the Embedded System Memory Sensors and Actuators Communication Interface Embedded Firmware Other System Components PCB and Passive Components The Typical Embedded System
  • 79. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 79 The Typical Embedded System Embedded Firmware īƒ  Embedded firmware refers to the control algorithm (Program instructions) and or the configuration settings that an embedded system developer dumps into the code (Program) memory of the embedded system. īƒ  It is an un-avoidable part of an embedded system. There are various methods available for developing the embedded firmware. They are listed below. 1. Write the program in high level languages like Embedded C/C++ using an Integrated Development Environment (The IDE will contain an editor, compiler, linker, debugger, simulator, etc. īƒ  IDEs are different for different family of processors/controllers. For example, Keil micro vision3. IDE is used for all family members of 805/ microcontroller, since it contains the generic 8051 compiler C51). 2. Write the program in Assembly language using the instructions supported by your application‘s target processor/controller. The instruction set for each family of processor/controller is different
  • 80. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 80 The Typical Embedded System Embedded Firmware īƒ  The program written in either of the methods given above should be converted into a processor understandable machine code before loading it into the program memory. īƒ The process of converting the program written in either a high level language or processor/specific Assembly code to machine readable binary code is called "HEX File Creation". The methods used for 'HEX File Creation' is different depending on the programming techniques used. īƒ If the program is written in Embedded C/C++ using an IDE, the cross compiler included in the IDE converts it into corresponding processor/controller understandable HEX File'. īƒ If you are following the Assembly language based programming technique (method 2), you can use the utilities supplied by the processor/controller vendors to convert the source code into 'HEX File'. īƒ Also third party tools are available, which may be of free of cost, for this conversion.
  • 81. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 81 The Typical Embedded System Embedded Firmware īƒ  For a beginner in the embedded software field, it is strongly recommended to use the high level language based development technique. īƒ The reasons for this being: writing codes in a high level language is easy, the code written in high level language is highly portable which means you can use the same code to run on different processor/controller with little or less dification. īƒ The only thing you need to do is re-compile the program with the required processor's IDE, after replacing the include files for that particular processor. Also the programs written in high level languages are not developer dependent. īƒ Any skilled programmer can trace out the functionalities of the program by just having a look at the program. It will be much easier if the source code contains necessary comments and documentation lines. īƒ It is very easy to debug and the overall system development time will be reduced to a greater extent. īƒ The embedded software development process in assembly language is tedious and time consuming.
  • 82. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 82 The Typical Embedded System Embedded Firmware īƒ  The developer needs to know about all the instruction sets of the processor/controller or at least he/she should carry an instruction set reference manual with her/him. īƒ A programmer using assembly language technique writes the program according to his/her view and taste. īƒ Often he/she may be writing a method or functionality which can be achieved through a single instruction as an experienced person‘s point of view, by two or three instructions in his/her own style. īƒ So the program will be highly dependent on the developer. It is very difficult for a second person to understand the code written in Assembly even if it is well documented. īƒ Two types of control algorithm design exist in embedded firmware development. īƒ˜infinite loop or super loop based approach īƒ˜with splitting the functions to be executed into tasks and running these tasks using a scheduler
  • 83. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 83 The Typical Embedded System Embedded Firmware īƒ The first type of control algorithm development is known as the infinite loop or super loop based approach, where īƒ the control flow runs from top to bottom and then jumps back to the top of the program in a conventional procedure. īƒ It is similar to the while (1) { }; based technique in C. īƒ The second method deals with īƒ splitting the functions to be executed into tasks and running these tasks using a scheduler which is part of a General Purpose or Real Time Embedded Operating System (GPOS/RTOS).
  • 84. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 84 Definition Embedded systems vs. General Computing Systems Core of the Embedded System Memory Sensors and Actuators Communication Interface Embedded Firmware Other System Components PCB and Passive Components Topics to be covered: The Typical Embedded System
  • 85. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 85 The Typical Embedded System Other System Components īƒ The other system components refer to the components/circuits /ICs which are necessary for the proper functioning of the embedded system. īƒ Some of these circuits may be essential for the proper functioning of the processor/controller and firmware execution. īƒ Watchdog timer, Reset IC (or passive circuit), brown-out protection IC (or passive circuit), etc. īƒ Some of the controllers or SoCs integrate these components within a single IC and doesn't require such components externally connected to the chip for proper functioning. īƒ Depending on the system requirement, the embedded system may include other integrated circuits for performing specific functions, level translator ICs for interfacing circuits with different logic levels, etc.
  • 86. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 86 The Typical Embedded System Other System Components Reset Circuit: īƒ The reset circuit is essential to ensure that the device is not operating at a voltage level where the device is not guaranteed to operate, during system power ON. īƒ The reset signal brings the internal registers and the different hardware systems of the processor/controller to a known state and starts the firmware execution from the reset vector (Normally from vector address 0x0000 for conventional processors/controllers. The reset vector can be relocated to an address for processors/controllers supporting boot loader). īƒ The reset signal can be either active high (The processor undergoes reset when the reset pin of the processor is at logic high) or active low (The processor undergoes reset when the reset pin of the processor is at logic low). īƒ Since the processor operation is synchronized to a clock signal, the reset pulse should be wide enough to give time for the clock oscillator to stabilize before the internal reset state starts.
  • 87. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 87 The Typical Embedded System Other System Components īƒ The reset signal to the processor can be applied at power ON through an external passive reset circuit comprising a Capacitor and Resistor or through a standard Reset IC like MAX810 from Maxim Dallas (www.maxim-ic.com). īƒ Select the reset IC based on the type of reset signal and logic level (CMOS/TTL) supported by the processor/controller in use. īƒ Some microprocessors/controllers contain built-in internal reset circuitry and they don't require external reset circuitry. īƒ Figure illustrates a resistor capacitor based passive reset circuit for active high and low configurations. īƒ The reset pulse width can be adjusted by changing the resistance value R and capacitance value C.
  • 88. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 88 The Typical Embedded System Other System Components Brown-out Protection Circuit: Brown-out protection circuit prevents the processor/controller from unexpected program execution behavior when the supply voltage to the processor/controller falls below a specified voltage. It is essential for battery powered devices since there are greater chances for the battery voltage to drop below the required threshold. The processor behavior may not be predictable if the supply voltage falls below the recommended operating voltage. It may lead to situations like data corruption. īƒ  A brown-out protection circuit holds the processor/controller in reset state, when the operating voltage falls below the threshold, until it rises above the threshold voltage. īƒ Certain processors/controllers support built in brown-out protection circuit which monitors the supply voltage internally. If the processor/controller doesn't integrate a built-in brown-out protection circuit, the same can be implemented using external passive
  • 89. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 89 The Typical Embedded System Other System Components īƒ Figure illustrates a brown-out with Active low output circuit implementation using Zener diode and transistor for processor/controller with active low Reset logic, īƒ The Zener diode Dz and transistor Q forms the heart of this circuit. The transistor conducts always when the supply voltage Ve is greater than that of the sum of VBE and VZ (Zener voltage). īƒ The transistor stops conducting when the supply voltage falls below the sum of VBE and VZ. Select the Zener diode with required voltage for setting the low threshold value for Vcc. The values of R1, R2, and R3 can be selected based on the electrical characteristics (Absolute maximum current and voltage ratings) of the transistor in use. īƒ Microprocessor Supervisor ICs like DS1232 from Maxim Dallas (www.maximis.com) also provides Brown-out protection.
  • 90. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 90 The Typical Embedded System Other System Components Oscillator Unit : īƒ A microprocessor/microcontroller is a digital device made up of digital combinational and sequential circuits. The instruction execution of a microprocessor/controller occurs in sync with a clock signal. īƒ It is analogous to the heartbeat of a living being which synchronises the execution of life. For a living being the heart is responsible for the generation of the beat whereas the oscillator unit of the embedded system is responsible for generating the precise clock for the processor. īƒ  Certain processors/controllers integrate a built-in oscillator unit and simply require an external ceramic resonator/quartz crystal for producing the necessary clock signals. Quartz crystals and ceramic resonators are equivalent in operation, however they possess physical difference. īƒ  A quartz crystal is normally mounted in a hermetically sealed metal case with two leads protruding out of the case.
  • 91. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 91 The Typical Embedded System Other System Components īƒ  Certain devices may not contain a built-in oscillator unit and require the clock pulses to be generated and supplied externally. Quartz crystal Oscillators are available in the form chips and they can be used for generating the clock pulses in such a cases. īƒ The speed of operation of a processor is primarily dependent on the clock frequency. However we cannot increase the clock frequency blindly for increasing the speed of execution. īƒ  The logical circuits lying inside the processor always have an upper threshold value for the maximum clock at which the system can run, beyond which the system becomes unstable and non functional. īƒ  The total system power consumption is directly proportional to the clock frequency. The power consumption increases with increase in clock frequency. īƒ  The accuracy of program execution depends on the accuracy of the clock signal. The accuracy of the crystal oscillator or ceramic resonator is normally expressed in terms of +/-ppm (Parts per million).
  • 92. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 92 The Typical Embedded System Other System Components īƒ  Figure illustrates the usage of quartz crystal/ceramic resonator and external oscillator chip for clock generation. Real-Time Clock (RTC): īƒ Real-Time Clock (RTC) is a system component responsible for keeping track of time. RTC holds information like current time (In hours, minutes and seconds) in 12 hour/24 hour format, date, month, year, day of the week, etc. and supplies timing reference to the system. RTC is intended to function even in the absence of power.
  • 93. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 93 The Typical Embedded System Other System Components īƒ RTCs are available in the form of Integrated Circuits from different semiconductor manufacturers like Maxim/Dallas, ST Microelectronics etc. The RTC chip contains a microchip for holding the time and date related information and backup battery cell for functioning in the absence of power, in a single IC package. The RTC chip is interfaced to the processor or controller of the embedded system. īƒ For Operating System based embedded devices, a timing reference is essential for synchronizing the operations of the OS kernel. The RTC can interrupt the OS kernel by asserting the interrupt line of the processor/controller to which the RTC interrupt line is connected. The OS kernel identifies the interrupt in terms of the Interrupt Request (IRQ) number generated by an interrupt controller. īƒ  One IRQ can be assigned to the RTC interrupt and the kernel can perform necessary operations like system date time updation, managing software timers etc when an RTC timer tick interrupt occurs. īƒ  The RTC can be configured to interrupt the processor at predefined intervals or to interrupt the processor when the RTC register reaches a specified value (used as alarm interrupt)
  • 94. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 94 The Typical Embedded System Other System Components Watchdog Timer: īƒ  In desktop Windows systems, if we feel our application is behaving in an abnormal way or if the system hangs up, we have the "Ctrl + Alt + Del‘’ to come out of the situation. What if it happens to our embedded system? Do we really have a "Ctrl + Alt + Del' to take control of the situation? īƒ  Of course not, but we have a watchdog to monitor the firmware execution and reset the system processor/ microcontroller when the program execution hangs up īƒ  A watchdog timer, or simply a watchdog, is a hardware timer for monitoring the firmware execution. īƒ  Depending on the internal implementation, the watchdog timer increments or decrements a free running counter with each clock pulse and generates a reset signal to reset the processor if the count reaches zero for a down counting watchdog, or the highest count value for an upcounting watchdog.
  • 95. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 95 The Typical Embedded System Other System Components īƒ  If the watchdog counter is in the enabled state, the firmware can write a zero (for upcounting watchdog implementation) to it before starting the execution of a piece of code (subroutine or portion of code which is susceptible to execution hang up) and the watchdog will start counting. īƒ  If the firmware execution doesn't complete due to malfunctioning, within the time required by the watchdog to reach the maximum count, the counter will generate a reset pulse and this will reset the processor (if it is connected to the reset line of the processor). īƒ  If the firmware execution completes before the expiration of the watchdog timer you can reset the count by writing a 0 (for an upcounting watchdog timer) to the watchdog timer register. īƒ  Most of the processors implement watchdog as a built-in component and provides status register to control the watchdog timer (like enabling and disabling watchdog functioning) and watchdog timer register for writing the count value. If the processor/controller doesn't contain a built in watchdog timer, the same can be implemented using an external watchdog timer IC circuit.
  • 96. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 96 The Typical Embedded System Other System Components īƒ  The external watchdog timer uses hardware logic for enabling/disabling, resetting the watchdog count, etc instead of the firmware based writing to the status and watchdog timer register. The Microprocessor supervisor IC DS1232 integrates a hardware watchdog timer in it. īƒ  In modern systems running on embedded operating systems, the watchdog can be implemented in such a way that when a watchdog timeout occurs, an interrupt is generated instead of resetting the processor. The interrupt handler for this handles the situation in an appropriate fashion. īƒ  Figure illustrates the implementation of watchdog timer:
  • 97. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 97 Definition Embedded systems vs. General Computing Systems Core of the Embedded System Memory Sensors and Actuators Communication Interface Embedded Firmware Other System Components PCB and Passive Components Topics to be covered: The Typical Embedded System
  • 98. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 98 The Typical Embedded System PCB and Passive Components īƒ  Printed Circuit Board (PCB) is the backbone of every embedded system. After finalizing the components and the inter-connection among them, a schematic design is created and according to the schematic the PCB is fabricated. īƒ  PCB acts as a platform for mounting all the necessary components as per the design requirement. Also it acts as a platform for testing your embedded firmware. īƒ  Apart from the above-mentioned important subsystems of an embedded system, you can find some passive electronic components like resistor, capacitor, diodes, etc. on your board. They are the co-workers of various chips contained in your embedded hardware. īƒ  They are very essential for the proper functioning of your embedded system. For example for providing a regulated ripple-free supply voltage to the system, a regulator IC and spike suppressor filter capacitors are very essential.
  • 99. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 52 Reference Shibu K V, “Introduction to Embedded Systems”, First Edition, Tata McGraw Hill Education Private Limited, 2009 For Further Studies: The Typical Embedded System
  • 100. 100 Prof. Anand H. D. M. Tech. (PhD.) Assistant Professor, Department of Electronics & Communication Engineering Dr. Ambedkar Institute of Technology, Bengaluru-56 Email: anandhd.ec@drait.edu.in Phone: 9844518832