Es 2
Es 2
Es 2
Unit Two-
Attiuttama Mishra
Asst. Prof.
B.K Birla college, Kalyan
1
[lecture slides contains some content adapted from : Shibu K V textbook
authors, Mc Graw Hill Education]
Application and Domain specific Embedded systems
Embedded systems are application and domain specific, meaning; they are
specifically built for certain applications in certain domains like consumer
electronics, telecom, automotive, industrial control, etc.
Washing Machine-Application-Specific Embedded System
tub, water drawing pump and inlet valve to control the flow of water into the
unit.
The sensor part consists of the water temperature sensor, level sensor, etc.
The control part contains a microprocessor/controller based board with
The sensor data is fed back to the control unit and the control unit generates the
The control unit also provides connectivity to user interfaces like keypad for
setting the washing time, selecting the type of material to be washed like light,
User feedback is reflected through the display unit and LEDs connected to the
control board.
The functional block diagram of a washing machine is shown in Figure.
The integrated control panel consists of a microprocessor/controller based
board with I/O interfaces and a control algorithm running in it.
Input interface includes the keyboard which consists of wash type selector
namely Wash, Spin and Rinse, cloth type selector namely Light, Medium, Heavy
duty and washing time setting, etc.
The output interface consists of LED/LCD displays, status indication LEDs, etc.
connected to the I/O bus of the controller.
It is to be noted that this interface may vary from manufacturer to
manufacturer and model to model.
The other types of I/O interfaces which are invisible to the end user are
different kinds of sensor interfaces, namely, water temperature sensor, water
level sensor, etc. and actuator interface including motor control for agitator
and tub movement control, inlet water flow control, etc.
Automotive-Domain-Specific Examples of Embedded System
Automotive embedded systems are the one where electronics take control
over the mechanical systems.
The presence of automotive embedded system in a vehicle varies from simple
mirror and wiper controls to complex air bag controller and antilock brake
systems (ABS).
Automotive embedded systems are normally built around microcontrollers or
DSPs or a hybrid of the two and are generally known as Electronic Control
Units (ECUs).
The various types of electronic control units (ECUs) used in the automotive
embedded industry can be broadly classified into two-High speed embedded
control units and Low speed embedded control units.
High speed Electronic Control Units (HECUs) : High speed electronic control
units (HECUs) are deployed in critical control units requiring fast response, like
fuel injection systems, antilock brake systems, etc.
Low speed Electronic Control Units (LECUs) : Low speed electronic control
units are deployed in applications where response time is not so critical. They
are generally built around low cost microprocessors/microcontrollers and
digital signal processors. Audio controllers, passenger and driver door locks,
door glass controls, etc., are examples for LECUs.
Automotive Communication Buses
CAN bus is an event driven serial protocol interface with support for error
handling in data transmission. It is generally employed in safety system like
airbag control, powertrain systems like engine control and Antilock Brake
Systems.
LIN bus is a single master multiple slave (up to 16 independent slave nodes)
communication interface. LIN is a low speed, single wire communication
interface with support for data rates up to 20 kbps and is used for
sensor/actuator interfacing.
The Media Oriented System Transport (MOST) bus is targeted for automotive
audio video equipment interfacing. MOST bus is a multimedia fiber-optic point-
topoint network implemented in a star, ring or daisy chained topology over
optical fibers cables.
COMPONENTS ON AN EMBEDDED SYSTEM
Before the programmer can start to code anything, he has to invest some
time in understand the functioning of the embedded system.
• He is expected to understand the following things:
a. Functioning or purpose of the embedded system
b. Individual components involved
c. The way data flows through the components of an embedded system
The I/O map contains one entry for each of the peripheral.
An I/O map has to be created if a separate I/O space is present. It is done by
repeating the steps performed to create memory map.
To create an I/O map, simply create a table of peripheral names and address
ranges, organized in such a way that the lowest addresses are at the bottom.
The diagram below shows the I/O map for the printer sharing device
• The part of the header file below describes the I/O map
#define SVIEW_BASE 0xFC00
#define PIO_BASE 0xFD00
#define PCB_BASE 0xFF00
INTERRUPT MAP
There are two techniques which can be used by the processor to communicate with
memories or peripheral devices. These are:
a. Polling: In this technique the processor polls the device (asks question) repeatedly
at regular intervals to check if the device has completed the given task or has any new
task to execute.
b. Interrupt: An interrupt is a signal sent from a peripheral to the processor. A
peripheral may send an interrupt signal to a processor when it has some job to
perform which requires the processors intervention
Upon receiving an interrupt signal the Processor does the job by issuing certain
commands and waits for another interrupt to signal the completion of the job.
• While the processor is waiting for the interrupt to arrive, it is free to continue
working on other things.
• When a fresh interrupt signal is received, the processor temporarily sets aside its
current work and executes a small piece of software called the interrupt service routine
(ISR). When the ISR completes, the processor returns to the work that was interrupted.
• The programmer must write the ISR himself and enable it so that it will be executed
when the relevant interrupt occurs.