Beruflich Dokumente
Kultur Dokumente
SYSTEMS
Handled by
V.Mohanraj AP/EEE
1
UNIT 1
INTRODUCTION TO
EMBEDDED SYSTEMS
2
Introduction
3
Application domain of embedded
systems
• Consumer electronics : camera , music players , TVs ,
DVD players.
• Household appliances : Air conditioners and fire alarm
systems
• Handheld devices : Mobile phones , MP3 players etc
• Banking : ATMs , Currency counters etc
• Computer peripherals : printers , scanners , webcams ,
etc
• Networking : Routers
• Robotics : Used in factories , household etc
• Toys
4
Desirable features and general
characteristics of embedded
systems
• It should have one or small set of functions which it
is expected to perform efficiently
• It should be designed for low power dissipation
• It has limited memory and limited number of
peripherals
• Applications are not meant to be alterable by user
• They need to be highly reliable
• Many of them need to operate with time constraints
5
Model of a embedded system ( simple
model )
A
S C
E PROCESSOR T
N U
S A
O T
R O
S R
S
MEMORY
6
Example of a simple embedded
system(temperature monitor )
SENSOR DISPLAY
M
C
U
MOTOR
KEYBOARD
ALARM
7
Figures of merit for an embedded
system objectives
• Low power dissipation
• Small physical size
• Small code size
• High speed of response
• Real time response
8
History of embedded systems
9
Current Trends
• Multi-core processor
• Embedded and real time operating systems
10
Structural units in Embedded processor
( advanced architecture )
IQ
IR
INST. BT.
ID DATA
CACHE CACHE PFCU
CACHE
MMU
CU
PC
ADDRESS
BUS
ADVANCED ALU AOU
FLPU
PROCESSING MAR B
UNITS I DATA BUS
SP U
11
Structural units in Embedded processor
( advanced architecture )
STRUCTURAL UNIT FUNCTIONS
12
Structural units in Embedded processor
( advanced architecture )
STRUCTURAL UNIT FUNCTIONS
13
Structural units in Embedded processor
( advanced architecture )
STRUCTURAL UNIT FUNCTIONS
14
Structural units in Embedded processor
( advanced architecture )
STRUCTURAL UNIT FUNCTIONS
15
Structural units in Embedded processor
( advanced architecture )
STRUCTURAL UNIT FUNCTIONS
16
USE OF MONITOR FOR TARGET
HARDWARE DEBUGGING
• Monitor codes can be downloaded in ICE ROM
• It may run a “power on self test” program
bootstrapping
• Monitor is a debugging tool for the target
microprocessor or microcontroller in ICE ROM
emulator , or in target development board
17
USE OF MONITOR FOR TARGET
HARDWARE DEBUGGING
• Monitor from different source differ in their
functioning . One typical monitor does the following
1. Monitor loads the application codes , is also used for
corrections in codes , and then test the system
2. Monitor controls break points as per command from
the debugger
3. Monitor can be run in single step mode also
4. A part of monitor runs as host
5. Facilitates controlled execution of application and
controlled display of executing program status
18
TARGET BOARD SUB UNITS
INCLUDING MONITOR
• Socket
• RAM and interfaces
• Display
• Monitor segments in ROM
• Twenty key pad
• Connectors
19
DIRECT MEMORY ACCESS (DMA)
20
DMA CONTROLLER
CS
RD/WR
processor RAM
A0-A15 and D0-D7
D0-D7
Hold A0-A15
acknowledge Hold request
A I/O
Port device
with
DMA set
controller of
I/O BUS
Addresses
DMA request
DMAC acknowledge
21
DMAC
22
DMAC
23
BUILD PROCESS FOR EMBEDDED
SYSTEMS
• An embedded system develops using process of designing the
hardware, target platform and software followed by integration
of both
• The first step in the build process for an embedded system
hardware consists of selecting a processor(s)
• A processor is selected from the considerations of the following:
1.Instruction set
2.Maximum bits in an operand (8, 16 or 32) in a
single
3.arithmetic or logical operation
4.Clock frequency in MHz or Gift and processing
speed in Million Instructions Per Second (MIPS)
processor ability to solve the complex algorithms
used in meeting deadlines for their processing
24
BUILD PROCESS FOR EMBEDDED
SYSTEMS
• The build process for embedding software consists of
the following steps:
1. Project file consisting of source file and library
files
2. Compilation of the project files
3. Linking all object files and locating onto a single re-
locatable object file
4. Converting the object file in a form called hex-file
to binary image (ROM image)
25
BUILD PROCESS FOR EMBEDDED
SYSTEMS
• The build processes for the embedded systems when
microprocessors or ASIPs or multiple processors are
used Build process process
26
COMPONENTS OF EMBEDDED SYSTEM
HARDWARE
27
EMBEDDED HARDWARE UNITS AND
DEVICES IN A EMBEDDED
SYSTEM
• Power source
• Clock oscillator
• System timer
• Real time clock
• Reset circuit , power up reset and watch dog timer
• Memory
• Input , output and i/o ports
• Bus
• Digital to analog conversion
• Analog to digital conversion
• LED , LCD and Touch screen displays
• Keyboard , keypad and virtual keypad at touch screen
• Interrupt handler
28
CLASSIFICATION OF EMBEDDED
SYSTEM
• Small scale embedded system
• Medium scale embedded system
• Sophisticated scale embedded system
29
SMALL SCALE EMBEDDED
SYSTEM
• Designed with a single 8- or 16-bit microcontroller or
DSP
• May have little hardware and software complexities
and involve board-level design
• May be battery operated
• May use an integrated development environment (IDE)
specific to the microcontroller or processor family
used is the main programming tool
• Uses generally 'C' or MATLAB
• May or may not use an RTOS
30
MEDIUM SCALE EMBEDDED
SYSTEM
• Designed with a single or few 16- or 32-bit microcontroller
or DSP or Reduced Instruction Set Computer (RISC)
• May also be designed with available single purpose
processors
• Uses real-time operating system (RTOS) for multitasking
• Uses software tools for providing the solutions to the
hardware complexities
• Uses complex software design using programming tools:
C/C OH/lava, RTOS, and Source code engineering tool,
Simulator, Debugger and Integrated Development
Environment
• The systems have both hardware and software
complexities
31
SOPHISTICATED SCALE
EMBEDDED SYSTEM
• Designed on 32- or 64-bit RISCs
• Needs hardware and software co-design
• Needs component-integration in the final system
• May need implemented in the hardware in the form of
IP cores for complex software functions
• May need new development tools
• May be an SoC (system-on-chip)
• These systems are used for cutting-edge applications
that need hardware and software co-design and
components integration in the final system
32
IN CIRCUIT EMULATOR (ICE)
33
EMULATOR
34
EMULATOR
35
EMULATOR
36
ICE
37
ICE
38
SUB UNITS OF ICE
• Interfacing circuits
• Twenty keypad
• ROM emulator
• Socket
• External memory
• Emulator board display
• System registers
• Interfacing driver circuit
• Monitor codes
39
ICE
40