Professional Documents
Culture Documents
O
Embedded Systems – Manish Tiwari 4
Product with Embedded Systems
• VCRs, DVD players
• Cell phone
• Microwave
• Washer
• Camera
• Cars (antilock brake system, air-bag, gas
injection, electricity distribution..)
• Printers, copiers
• Fax Machines
• Video Games
O
Embedded Systems – Manish Tiwari 7
Embedded Systems
I “An Embedded Systems is a system whose
principle function is not computational, but which
N is controlled by a computer embedded within it.
The computer is likely to be a microprocessor or
T
a microcontroller. The word embedded implies
that it lies inside the overall system, hidden from
R
view, forming an integral part of greater whole. ”
- Tim Wilmshurst
O
Embedded Systems – Manish Tiwari 8
Embedded Systems
I “It is any device that includes a programmable
computer but is not itself intended to be a
N general purpose computer.” - Wayne Wolf
N
A Comparison may also serve well.
T
O
Embedded Systems – Manish Tiwari 12
A Comparison
I General Purpose Vs Embedded Systems
General Purpose Embedded
W (MFLOPS).
•Dhrystone is a benchmarking program, that
A
measures the CPU performance in processing
R
integers and strings. It benchmarks a CPU, not
E the IO or OS. 1 MIPS=1757 Dhrystones/sec.
Embedded Systems – Manish Tiwari 33
A Princeton Vs Harvard
R • Initiated by DoD in late 30s.
C • University of Princeton & Harvard were asked to
H come up with a computer architecture that
I
could be used for Naval Artillery under different
T
conditions.
E
C • Design from Princeton was called Princeton or
T more popularly Von Neumann Architecture.
U • Harvard design was called Harvard Architecture.
R
E Embedded Systems – Manish Tiwari 34
8085 Memory Connection
P AD0-AD7
R
I A8-A15
N
C
E
T
O
N
• Only one memory interface, for both Program & Data making it Princetorn
Architecture.
A
R
V
A
R
• Two memory interfaces (Program & Data) making it Harvard Architecture.
D • Two interfaces with single address & data bus makes it Modified Harvard
Architecture.
Embedded Systems – Manish Tiwari 37
A CISC Vs RISC
R • CISC – Complex Instruction Set Computer.
C – Micro Programmed Control Unit.
H – Have a vast and rich instruction set.
I
– Various permutations are possible for same
T
E work. e.g. MOV in 8085 has 63 variations
C while over 10,000 MOV variations in 8086.
T – Compiler Design is very easy.
U – Processing Capability is very high.
R – Supposed to be slower than RISC.
E Embedded Systems – Manish Tiwari 38
A CISC Vs RISC
R • RISC – Reduced Instruction Set Computer.
C – Hard Wired Control Unit.
H
– Limited & speed optimized instruction set.
I
T – Don’t have much flexibility in instructions.
E – Compiler Design is tedious as instructions
C are not flexible as CISC.
T – Processing Capability is limited but very
U
efficient and very fast for the applications
R
they are designed.
E Embedded Systems – Manish Tiwari 39
A CISC Vs RISC
R • Optimizing instructions in RISC simplify the job.
C • There are instructions that are same for each &
H every operand i.e. one instruction will do same
I processing on any operand. This is called
T Symmetrical or Orthogonal core.
E • RISC processors are not always faster than
C CISC.
T • In some cases even they are unable to
U
complete the task.
R
• Many processors have a RISC core with CISC.
E Embedded Systems – Manish Tiwari 40
General Purpose Processors
H (GPPs)
• Embedded Systems processing core frequently
A uses General Purpose Processors (GPPs).
R – Microcontrollers
– Microprocessors
D
– Embedded Processors
W
– Digital Signal Processors
A
R
E
Embedded Systems – Manish Tiwari 41
GPPs
H • GPPs are used in embedded systems due to following
A advantages
– Use of known instruction set results in faster system
R
development.
D – Design boards, I/O interfacing circuits are readily
A • Are costly.
R
E
Embedded Systems – Manish Tiwari 50
Power Supply
H
• Total power consumption by the system must
A
be optimized.
R • The power supply have a specific range.
D • The flow of voltage and the connection
W depend upon the number of supply pin in the
A chip.
• System which do not have a power of their
R
own connect to external power supply.
E
Embedded Systems – Manish Tiwari 51
Real Time Clock (RTC)
H
• Real time means continuously flowing time that
A
neither stops nor comes back ……………
R • So is a Real Time Clock. Means a clock circuit
D that ones start with power on, continuously
W works, can not be stopped, can not be altered,
W after power-up.
• Before entering in a loop, embedded software
A
initiates it for a fixed time. If within that time
R
timer is not reset or reinitiated then after the
E configured amount of time it resets the system.
Embedded Systems – Manish Tiwari 55
Embedded System Software
S • An embedded system processor and the system
O need software that is specific to a given
F application of that system.
T • Code must take advantages of power optimizing
W features of processor.
• Reduction in Power Dissipation has always been
A
an issue in Embedded system designs.
R • Here is why ???????
E
Embedded Systems – Manish Tiwari 56
Embedded System Software
S • What if you need to replace the batteries of
O your Scientific Calculators
F – Once in a month.
– Once in two months.
T
– Even once in Six months.
W • Such dissatisfaction will fail your design as when
A it comes to market there is always some one
R with design better than you.
R • OS COS-II
• Vx Works
T • Windows CE
• OSEK
O • Linux 2.6.24 or RT Linux
• QNX
S