Introduction To Embedded Systems
Introduction To Embedded Systems
Embedded Systems
Agenda
• Embedded Systems Vs. General purpose Systems
• Examples of Embedded Systems
• What is a microcontroller?
• Difference between Microprocessor
and Microcontroller
• Trade off between HW and SW
• Software characteristics
• Hardware characteristics
• System on chip and system on board
• HW/SW Partitioning
• Advanced Embedded System
• Most Microcontroller Families used in ES
• Difference between Emulator and Simulator
• Languages used in embedded systems programming
2
Embedded Systems Vs. General
Purpose Systems ??
• Embedded system is a special
-purpose system designed to
perform one or a few
dedicated functions.
• It is usually Embedded as
a part of a complete device
including hardware and
mechanical parts.
4
What is Microcontroller?
• A microcontroller is a single chip
devices or single chip computers in a
small size that its resources are far
more limited than those of a desktop
personal computer
• It is designed for standalone operation.
• It is includes:
– Processing Unit.
– RAM and ROM.
– I/O.
– Buses.
– Peripherals (SPI, PWM,..).
5
Difference Between MC and MP
Microprocessor
Is a general purpose CPU
Microcontroller
Is a CPU with peripherals
6
Tradeoff between HW & SW
• For a certain application
7
Software Characteristics
• Highly configurable
• Shorter development cycle
• Easier in versions updates
• Cheaper
• Constrained with processor
speed which may satisfy real
time application and may not
8
Hardware Characteristics
• Longer development cycle
• Better performance in
high speed real time
application
9
System on Board
Board
Shared
CPU
memory
A/D
Customized
Hardware
Sensors
Actuator
10
System on Chip
• System-on-a-chip (SOC):
– Integrating all components of a computer or other electronic system
into a single integrated circuit (chip).
– It may contain digital, analog, mixed-signal, and often radio-frequency
functions – all on one chip.
– Typical application is in the area of embedded systems.
11
System on Chip
Keyboard
controller USB interface
LCD
CPU Memories
controller
Customized
hardware
12
HW/SW Partitioning
• In complicated systems
functional blocks could be:
13
Advanced Embedded Systems
14
Advanced Embedded systems
• Network of embedded
microcontrollers on board :
15
Most Microcontroller Families
used in ES
• 8051, AVR and Atmega
• PIC
– Very general purpose
microcontroller that can come
with many different options
– Used in constructing clocks,
very simple video games,
robots, servo controllers.
16
Most Microcontroller Families
used in ES
• HC12
– Real time and Automotive
applications
• ARM
– Used in electronic devices
– Mobiles, Digital cameras DVD
players, Robots and
Automotive applications
17
Emulators & Simulators
• An emulator duplicates the functions
of one system using a different
system, so that the second system
behaves like (and appears to be) the
first system.
18
Emulators & Simulators
19
Languages used in ES
• Assembly Language:
Lowest-level human-readable
method for programming.
Platform specific
No need for compilation
Used by some compilers, such as
GCC, to convert high-level
languages (such as C) into
platform-dependent assembly
language before assembling into
machine language.
20
Languages used in ES
• Assembly Disadvantages:
Platform Specific.
Operate by acting on specific
instructions.
Can perform no other actions
besides those specifically
listed.
Instructions are highly
atomic: each instruction
performs a single, small
instruction.
Too difficult to program large
applications.
21
Languages used in ES
• C Language:
22
23