Embedded System Design Embedded System Design: Dr. Zulfiqar H Khan
Embedded System Design Embedded System Design: Dr. Zulfiqar H Khan
Design
Dr. Zulfiqar H Khan
[email protected]
Lecture 1
Me?
Ph.D. from Chalmers University, Sweden
In Electrical and Computer Engineering
Major: Digital Signal and Image Processing
Ph.D. Research
Stochastic Modeling for Visual Object
Tracking and Online Learning: manifolds
and particle filters
Current Job and Research:
Project Director, Advanced Engineering &
Research Organization (AERO), Hasanabdal
Leading a Digital Control and Machine Vision
2 Research Group
My Assumptions about You
Background in Digital Electronics Design
Programming in C
3
Course Goals
The main objective of this course is to you the
understanding and practical skills for:
The theory and practice of embedded systems
Understanding schematics and data sheets
Powering an embedded system
Producing and debugging an embedded
system
Microcontroller Atmel AVR atmega328 or 2560
series
Digital Signal Processing (DSP) architectures
Protocols (SPI and I2C) used to add peripherals
RS-232C, RS-422, infrared communication, and
4
USB
Course Organization
Course Web Site: (TBDL)
Lectures:
Friday 10:30- 01:30
Textbook :
Designing Embedded Hardware, John Catsoulis,
O'Reilly, 2005, 2nd Edition, ISBN: 0-596-00755-8
Embedded Microcomputer Systems: Real Time
Interfacing, 2nd Edition, by Jonathan W. Valvano
5
Policy
No specific text book
Lecture notes, microprocessor reference
material, exercises, homework and lots of
other important information will be given
in the class
Syllabus lists some useful (but not
required) books on embedded systems
programming
Ill mention during the lecture what you
should be reading
Feel free to stop me when I talk too fast or
6
too slow.
Policy
I will surely make some mistakes in
lectures / HWs / exams. Inform me about
each of these mistakes.
Keep up with the lectures.
Make sure that you understand the concepts
presented in the lecture before you go
home.
I will evaluate your understanding of the
course regularly through
In class problems/activities
Assignments
7
Exams
Grading System
Coursework will be weighted as follows:
Type Percent
age
Assignments/Projects 15%
Quizzes 15%
Midterm 30%
Final Examination 40%
Total 100%
8
Administrative stuff is over
Lets Start
9
What is Embedded System
Computer systems fall into two separate
categories:
Desktop computer
Embedded computer
10
What is an Embedded System?
A microprocessor based system that does not
look like computer
OR
12
Embedded System
An embedded system is nearly any
computing system (other than a general-
purpose computer) with the following
Single function
characteristics:
Typically designed to perform a predefined
function
Tightly constrained
Tuned for low cost
Single-to-fewer component based
Performs functions fast enough / real time
Consumes minimum power
Continually monitor the environment
13 (react to changes)
Embedded System Examples
Automotive applications
Braking systems
Traction control
Airbag release systems
Cruise-control
14
15
Embedded System Examples
Mobile phone systems
Customer handsets and base stations
Aerospace applications
Flight-control systems
Engine controllers,
Auto-piloting systems
Passenger in-flight entertainment systems
16
Embedded System Examples
Defense systems
Radar systems
Fighter aircraft flight-control systems
Radio systems
Missile guidance systems
17
Recap of Electronics Concepts
necessary to understand
Embedded System
18
Voltage and Current (1/2)
Current:
The flow of electrons through a conductor or a
semiconductor is known as current
Current is measured in Amperes, more
commonly called just plain Amps (with the unit
symbol "A," equation symbol "I")
Voltage:
The difference in charge between two points
that causes the current to flow
The size of this imbalance is known as the
potential difference, or voltage difference,
between two points
19
Voltage and Current (2/2)
Voltage:
The unit of voltage difference is the Volt (unit
symbol "V").
The greater the voltage difference, the greater
the opportunity for current flow.
Note:
Voltage cannot exist in isolation. It always
refers to the difference between two points.
Although you will sometimes see a statement
like "the voltage at this point is...," it is taken
as given that it is relative to some common
reference point, usually ground (the zero-volt
20
Analog Signals (1/4)
The voltage of a signal may vary over time, or
it may be constant . An analog signal can have
an amplitude of any voltage within a range
Figure below shows a typical analog signal:
voltage
time
Periodic Signal: If the voltage varies and it
repeats at regular interval then the signal is
called periodic signal
Period: The interval of time it takes for the
signal to repeat, is called period of signal
21
Analog Signals (2/4)
Frequency:
The number of times the pattern of signal
repeats in one second is called frequency. It is
is measured in Hertz and relates to the period
as follows:
Frequency = 1 / period
Unipolar signal:
It has all positive or all
negative voltages
Bipolar signal:
22It has both positive and
AC and DC Components of Analog Signals
(3/4)
A typical analog signal will have both an AC
component and a DC component
DC component:
It is the fixed voltage of the signal
AC component :
It is a varying voltage imposed on the DC
component. The AC component is also referred
to as the peak-to-peak amplitude of a signal
23
Analog Signals Power (4/4)
It is the amount of work per time (Joules per
second) and is measured in Watts (unit symbol
"W").
25
Schematics (2/7)
Pin Types:
26
Schematics (3/7)
Net labels: It shows which pins are connected
without the need for drawing every wire
27
Schematics (4/7)
BUS: Related signals are routed using a bus
28
Schematics (4/7)
Schematics (5/7)
Ports: It indicate that nets are connected
across multiple sheets
30
Schematics (6/7)
Net Crossing:
31
Schematics (7/7)
Power Ports
32
Resistance (1/6)
The resistance is measured in Ohms (unit
symbol "W," equation symbol "R")
35
Resistors (4/6)
When resistors are connected in series, he
combined total resistance is given by the
relation:
RTOTAL = R1 + R2
38
Capacitors (1/8)
Capacitor stores charge. Capacitance is
measured in Farads (or more formally,
"Faradays") with an equation symbol "C" and a
unit symbol "F."
I = C * dV/dt
I = (VIN - VOUT) / R
dV / dt = (VIN - VOUT) / RC
VOUT = VIN (1 - e-t/RC)
46
Inductors (1/3)
Inductors are passive components that are
essentially coils of conductive wire. The
schematic symbol for an inductor is:
47
RLC Circuits (2/3)
RL Circut
48
RLC Circuits (3/3)
Series RLC Parallel RLC
Circuit Circuit
49
Diodes
Diodes are used to allow currents to flow in one
direction and prevent currents from
"backwashing
Diodes
Useful Diode from Embedded System
Design View