Embedded System Design BSC 01
Embedded System Design BSC 01
Lecture 1
Embedded systems overview
desktop units
though they cost a lot
less each.
Automobiles
engine management, trip computer, cruise
control, immobilizer, car alarm,
airbag, ABS, ESP, …
Building Systems
elevator, heater, air conditioning, lighting, key
card entries, locks, alarm systems, …
Agriculture
feeding systems, milking systems, …
Space
satellite systems, …
Example: Automotive Electronics
Embedded systems:
90% future innovations
40% price ACC Stop&Go
BFD
ALC
KSG
42 voltage
Internet Portal
GPRS, UMTS
Navigation System Telematics
Level of dependency
source: BMW
Check Control Telephone RDS/TMC Personalization
Speed Control Seat Heating Control Speech Recognition Software Update
Central Locking Autom. Mirror Dimming Emergency Call… Force Feedback Pedal…
… …
IBM Power 5 IC
(2004)
IBM revealed the world’s first working 7nm processor Using silicon-germanium
(SiGe) alloy which can yield 20 billion transistors per chip.
Evolution of Devices Used in Designing Computing
Equipment and Their Impact on Computing Perfomance
When Will Humans Transcend Biology?
Supercomputers
A supercomputer is a computer with great speed and memory. This kind
of computer can do jobs faster than any other computer of its generation. They are
usually thousands of times faster than ordinary personal computers made at that time.
Supercomputers play an important role in the field of computational science, and
are used for a wide range of computationally intensive tasks in various fields, including
quantum mechanics, weather forecasting, etc…
The first IC based super computer was the 80 MHz Cray 1 in 1976, it delivered a
performance index of 133 MFLOPS
As of June 2016, the fastest supercomputer in the world is the Sunway TaihuLight, in
mainland China, with a Linpack benchmark of 93 PFLOPS. Its peak performance can
reach 125.4 petaflops. , exceeding the previous record holder, Tianhe-2, by around
59 PFLOPS. It tops the rankings in the TOP500 supercomputer list
Tianhe-2, which means Milky Way-2, was built using intel’s Xeon processors . has
a performance rating of 33.86 petaflops with Linpack benchmark .
At No. 3 was Titan, a Cray XK7 system installed at the Department of Energy’s (DOE)
Oak Ridge National Laboratory. Titan, the top system in the United States and one of
the most energy-efficient systems on the list, achieved 17.59 petaflop/s on the Linpack
benchmark.
References:
Lecture 2
Embedded system design methodology
Definition of Terms
• System
In the design step, a detailed circuit diagram of the entire system is developed. It
will serve as a roadmap to implement the system. It is also a good idea, at this
point, to investigate available design information relative to the project. This
would include hardware design examples, software code examples, and application
notes available from manufacturers.
Unified Modeling Language (UML) Symbols
IMPLEMENT PROTOTYPE
To successfully implement a prototype, an incremental approach should be
followed. Again, the top-down design, bottom-up implementation provides a solid
guide for system implementation. In an embedded system design involving both
hardware and software, the hardware system including the microcontroller should
be assembled first, so the required signals of the software can interact.
As the hardware prototype is assembled on a prototype board, each component is
tested for proper operation as it is brought online. This allows the designer to
pinpoint malfunctions as they occur. A low cost, low risk hardware prototype
approach is desired.
Once the hardware prototype is assembled, coding may commence. As before,
software should be brought online incrementally. a top down, bottom up, or hybrid
approach may be used depending on the nature of the software. Because of
bringing the software online in slow, stated increments, issues can be identified and
corrected early on.
PRELIMINARY TESTING
• To test the system, a detailed test plan must be developed.
• Tests should be developed to verify that the system meets all of its requirements
and also intended system performance in an operational environment.
• The test plan should also include scenarios in which the system is used in an
unintended manner. As before, a top-down, bottom-up, or hybrid approach can
be used to test the system.
Once the test plan is completed, actual testing may commence. The results of each
test should be carefully documented.
When testing on a low cost simulator is complete, the entire test plan should be
performed again with the actual system hardware. Once this is completed, e a
system that meets client’s requirements is ready for delivery.
COMPLETE AND ACCURATE DOCUMENTATION
With testing complete, the system design should be thoroughly documented. Much
of the documentation will have already been accomplished during system
development. Documentation will include :
• system description,
• system requirements,
• structure chart.
• UML activity diagrams documenting program flow.
• test plan, results of the test plan,
• system schematics,
• Properly documented code.
END
University of Technology
Control and System Engineering Department
Computer Engineering Branch
Lecture 3
Introduction to Data acquisition and Measurement
Systems
• Measurement System:
This term measurement system includes all components in a chain of
hardware and software that leads from the measured variable to processed
data.
-Here the measuring device is being used to keep track of some quantity or
event as the case of monitoring the vital signals of a patient.
-Certain applications of measuring instruments may be characterized as having
essentially a monitoring function, e.g., thermometers, barometers, and water,
gas, and electric meters, automotive speedometer and fuel gage, and compass.
•Often gives results that apply only to the specific system being tested. However,
techniques such as dimensional analysis may allow some generalization.
•No simplifying assumptions necessary if tests are run on an actual system. The
true behavior of the system is revealed.
•Accurate measurements necessary to give a true picture. This may require
expensive and complicated equipment. The characteristics of all the measuring and
recording equipment must be thoroughly understood.
•Actual system or a scale model required. If a scale model is used, similarity of all
significant features must be preserved.
•Considerable time required for design, construction, debugging of apparatus.
Generalized Configurations and Functional
Descriptions of Measuring Instruments
•Variable-Conversion Element:
It may be necessary to convert the output signal of the primary sensing element to
another more suitable variable while preserving the information content of the
original signal. This element performs this function.
•Variable-Manipulation Element:
An instrument may require that a signal represented by some physical variable be
manipulated in some way. By manipulation we mean specifically a change in
numerical value according to some definite rule but a preservation of the physical
nature of the variable. This element performs such a function.
•Data-Transmission Element:
When functional elements of an instrument are actually physically separated, it
becomes necessary to transmit the data from one to another. This element
performs this function.
•Data-Presentation Element:
If the information about the measured quantity is to be communicated to a
human being for monitoring, control, or analysis purposes, it must be put into a
form recognizable by one of the human senses. This element performs this
“translation” function.
..Note:
A given instrument may involve the basic functions in any number,
combination, or order. A given physical component may serve several of the
basic functions as can be seen in the pressure gauge example on next slide.
Active vs. Passive Transducers
• Passive Transducer:
It is a component whose output energy is supplied entirely or almost entirely by
its input signal. The output and input signals may involve energy of the same form
or there may be an energy conversion from one form to another. As an example,
thermocouples, piezoelectric accelerometers, and photovoltaic cells are considered
passive transducers.
• Active Transducer:
This type of transducers has an auxiliary source of power which supplies a major
part of the output power while the input signal supplies only an insignificant
portion. Again, there may or may not be a conversion of energy from one form to
another. strain gauges, thermistores, and potentiometers are considered active
transducers
Analog vs. Digital Modes of Operation
• For analog signals, the precise value of the quantity (voltage, rotation angle, etc.)
carrying the information is significant; the specific waveform of input and output
signals is of vital importance.
Digital signals are basically of a binary (on/off) nature, and variations in numerical
value are associated with changes in the logical state (true/false) of some
combination of switches.
• Digital devices are very tolerant of noise voltages and need not be individually
very accurate, even though the overall system can be extremely accurate.
• When combined analog/digital systems are used (often the case in measurement
systems), the digital portions need not limit system accuracy as there is no limit to the
number of digits which can be carried accurately; these limitations generally are
associated with analog portions and/or the analog/digital conversion devices.
-Deflection method presents measured value much faster than the null method.
Lecture 4
Introducing Microcontrollers
as a choice for Embedded
System Realization
Computer Essentials
Computer Essentials
• Instruction Sets
– CISC: Complex Instruction Set Computer
– RISC: Reduced Instruction Set Computer
• Memory Types
– Volatile: Random Access Memory (RAM)
– Non-volatile: Read Only Memory (ROM)
Von Neumann and Harvard Computers
Advantages of Harvard model
• Ports
• RAM
• Interrupt Controller
• Timer * Figure from Atmel AT89C51RD2 Datasheet
• SPI Controller
PIC Microcontrollers
• Peripheral Integrated Controller (PIC) was
originally designed by General Instruments
• In the late 1970s, GI introduced PIC®
1650 and 1655 – RISC with 30
instructions.
• PIC was sold to Microchip
• Features: low-cost, self-contained, 8-bit,
Harvard structure, pipelined, RISC, single
accumulator, with fixed reset and interrupt
vectors.
PIC Families
PIC Family Stack Size Instruction No of Interrupt
Word Size Instructions Vectors
12CX/12FX 2 12- or 14-bit 33 None
16C5X/16F5X 2 12-bit 33 None
16CX/16FX 8 14-bit 35 1
17CX 16 16-bit 58 4
18CX/18FX 32 16-bit 75 2
Example: 16C84 was the first of its kind. It was later reissued as the 16F84,
incorporating Flash memory technology. It was then reissued as 16F84A.
PIC 12F508/509 pin connection
diagram
The 12F508 Architecture
ARM series
•Peripheral Features
–4 x 25 Segment LCD Driver
–Two 8-bit Timer/Counters with Separate Prescaler and Compare
Mode
–One 16-bit Timer/Counter with Separate Prescaler, Compare
Mode, and Capture Mode
–Real Time Counter with Separate Oscillator
–Four PWM Channels
–8-channel, 10-bit ADC
–Programmable Serial USART
–Master/Slave SPI Serial Interface
–Universal Serial Interface with Start Condition Detector
–Programmable Watchdog Timer with Separate On-chip
Oscillator
–On-chip Analog Comparator
–Interrupt and Wake-up on Pin Change
•Special Microcontroller Features
–Power-on Reset and Programmable Brown-out Detection
–Internal Calibrated Oscillator
–External and Internal Interrupt Sources
–Five Sleep Modes: Idle, ADC Noise Reduction, Power-save,
Power-down, and Standby
Features (….3)