Professional Documents
Culture Documents
EMBEDDED COMPUTING
EMBEDDED COMPUTER
SYSTEM
Definition:
Any device that includes a
programmable computer but is not itself
intended to be a general purpose computer
It is a computer based system
designed for a specific application or a
product
ex. Fax machine
Microprocessor & Microcontroller
Microprocessor
It is a single chip CPU having no memory & I/O ports
on the chip itself
Ex. Intel 4004
Microcontroller
It is a single chip CPU having fixed amount of RAM,
ROM, i/o ports and timers
Ex. Intel 8051
Advantages of programmable CPU over dedicated
hardwired unit
• Easier to design & debug the system
• It allows upgradation
Characteristics of Embedded computing applications
• Complex algorithms
operations performed by microprocessor may be sophisticated
• User interface
microprocessors are used to control complex UI
• Real time
operations must be performed in real time
• Multirate
must control both slow and fast operations simultaneously
• Manufacturing cost
determined by type of microprocessor used, amount of memory & type of I/O
devices
• Power & Energy
power consumption affects cost
Reasons for not using ordinary PC for embedded
computing
Real time performance requirements
Low power & low cost
Specifications
Architecture
Components
System Integration
Steps in embedded system design process
Requirements
- informal description from the customers
Types
• Functional - basic functions of the
system
• Non functional
- performance
- cost
- physical size & weight
- power consumption
Requirements methodology – use of requirements
form
Entries in the requirements form
• Name
• Purpose
• Inputs and Outputs
• Functions
• Performance
• Manufacturing cost
• Power
• Physical size & weight
Specifications
- serves as a contract between the
customer and the architects
- accurately reflects the customers
requirements & does it in a way that can
be clearly followed during design
Architecture design
It describes how the system functions
It is a plan for the overall structure
It must satisfy both functional & non
functional requirements
Designing h/w & s/w components
Components design builds the
components in conformance to the
architecture & specification
It includes both h/w & s/w
System Integration
Putting all components together
Bugs are normally found during
integration
Usually difficult because it un covers
problems
Formalism for system design
UML – Unified Modeling Language
visual language used to capture all design
tasks
Structural Description
describes basic components of the system
Object – principal component of OO design
Class – form of type definition
Types of relationships between objects &
classes
Association
Aggregation
Composition
Generalization
Behavioral Description
specifies the behavior of the system as
well as its structure
State machine – shows UML states
Events – Some type of action
Types of events
• Signal
• Call event
• Timeout event
Computer Architecture Taxonomy
Ways to organize a computer
Based on architecture
Based on the instructions used & their execution
Based on the characteristics of instruction set
Based on Architecture
Von Neumann architecture
Harvard architecture
Von Neumann Architecture
Data and instructions are held in a single
block of memory
Not harder to write self modifying
program
Harvard Architecture
Program and Data are held in separate
block of memory
Harder to write self modifying program
Based on Instructions used
• Complex Instruction Set Computers
• Reduced Instruction Set Computers
Based on the characteristics of Instruction
Set
• Fixed vs variable length
• Addressing modes
• Number of operands
• Types of operations supported
Basic Features of Assembly
Language
One Instruction appears per line
Memory locations are given names called labels
in the first column
Instructions must start in the second column
Comments run from some designated comment
character
An assembly language instruction consists of four
fields
[ label:] mnemonic [operands] [;comments]
Embedded Processors
8051- Block Diagram
CPU
EDITOR PGM
Myfile.asm
ASSEMBLER
PGM
Myfile.lst
Myfile.obj
LINKER PGM
Myfile.obj
OH PGM
Myfile.hex
ARM Processor
Features
RISC processor
Instructions are written one per line
Comments begin with semicolon
Labels , names of memory locations comes at the
beginning of the line
16 GPRs (R0 – R15)
R15 used as PC
CPSR (current program status register) is set
automatically during every operation
the top 4 bits of CPSR denotes negative, zero,carry &overflow bits
Processor & Memory Organization
Versions of ARM processor
1. ARM 7 (von Neumann archi. Based)
2. ARM 9 (Harvard archi. Based)
Data types
1. Std. 32 bit word
2. Four 8 bit bytes
Byte Organizations in a ARM word
Little Endian mode
Big Endian mode
Data operations
ARM is a load and store architecture
Load & Store archi.
Data operands are first loaded into the
CPU and then stored back to main
memory to save the result