Professional Documents
Culture Documents
Content
What is an Embedded System ? Embedded System Structure General Characteristics of Embedded Systems Design Issues Design Metrics Essential Considerations Programming New trends in ES
2
Examples
An Embedded System
Compressor Control Alarm
Display
Dash Board
window motor lock control lock actuator
teering
Central Control
ir Bag
adio & CD
C N Bus Le t Door
ump Sensor Left Light Sensor Left Light Sensor Rear PIC Power Regulation Management 9V Alkaline
9V 5V Serial Data
Compass
Serial Clock Serial Extension us Pulse Width Modulation Stream x2
Microcontroller
Motor Left
Motor Right
Example 4: Electrocardiograph
wiki
An embedded system is a computer system designed to perform one or a few dedicated functions often with real-time computing constraints. It is embedded as part of a complete device often including hardware and mechanical parts. In contrast, a general-purpose computer, such as a personal computer, is designed to be flexible and to meet a wide range of an end-user s needs.
10
Si al C iti i
e
ata e si
e C Software
te
t t i e t t Va ia les
ut Va ia les
Har ware
t e
ste s
An embedded system is a system whose principal function is not computational, but which is controlled by a computer embedded within it.
11
uP varieties
uController: includes
I/O devices On-board memory.
12
Characteristics General Characteristics Application Specific Characteristics DSP Characteristics Distributed Characteristics
13
14
Knowledge ?
15
A Mix of Disciplines
Control Engineering
Data Communications
16
Essential Considerations
Real Time Systems Memory Organization Instruction Set Communication/I/O Interfaces Portability ? Low Power ( attery Life) Software, Tools
17
18
Memory Organisation
Address
Data Memory
Data
Data Memory
Address
Input/ Output
Data
Address
Input/ Output
Data Address
Program Memory
Program Memory
Data
19
CPU Cache
20
What can the Computer Actually Do? - Instructions and Instruction Sets
A computer executes instructions in its Arithmetic Logic Unit (ALU), running through a series of instructions called a progr m. An ALU can only do a few things, but it can do them very fast. A typical 8-bit ALU can do the list shown below. A is the Accumulator, a digital register where the computations actually occur, and M is a location in memory. The ALU in turn forms part of the Central Processing Unit (CPU).
A D A A A M M A AND A w M O Aw M E O Aw A left Shift A right Rotate A left Rotate A right Complement A Clear A
A = NOT A A=0
21
A CISC machine is generally recognised by: Many instructions (say over one hundred), some with considerable sophistication; Instruction words are of different length; Instructions take different lengths of time to execute.
22
Another approach is to keep the CPU very simple, and have a limited instruction set. This leads to the RISC approach the Reduced Instruction Set Computer. The instruction set, and hence overall design, is kept simple. This leads to fast operation. One characteristic of the RISC approach is that each instruction is contained within a single binary word. That word must hold all information necessary, including the instruction code itself, as well as any address or data information also needed. A further characteristic, an outcome of the simplicity of the approach, is that every instruction normally takes the same amount of time to execute.
A RISC machine is generally recognised by: Few instructions (say well below one hundred), Each performs a very simple action; All instructions are single word; All, or almost all instructions take the same length of time to execute.
23
Programming
Language features implemented for a particular platform Hardware Operating system Libraries Templates Excellent for embedded systems work As always, try to write the clearest, cleanest, most maintainable code
24
Complexity
25
Reliability
Embedded systems often reside in machines that are expected to run continuously for years without errors, and in some cases recover by themselves if an error occurs. Specific reliability issues may include: The system cannot safely be shut down for repair, or it is too inaccessible to repair. The system must be kept running for safety reasons. Often backups are selected by an operator. The system will lose large amounts of money when shut down.
26
New trends in ES HW
27
New trends in ES SW
28
30
Motorola 68000
PIC 12F508
features also appear across all their microcontrollers, and knowledge of one family can lead with ease to knowledge of another
31