Embedded 1 - Inroduction
Embedded 1 - Inroduction
Systems
Uday Alhamdany
History
A transistor is a semiconductor device used to amplify or switch electronic signals and
electrical power.
John Bardeen, William Shockley and Walter Brattain at Mohamed Atalla (left) and Dawon Kahng (right)
Bell Labs in 1948. They invented the point-contact invented the MOSFET (MOS transistor) at Bell Labs
transistor in 1947 and bipolar junction transistor in 1948. in 1959.
Between 1960 and 2018, an estimated total of 13 sextillion (1021 ) MOS transistors have been manufactured,
accounting for at least 99.9% of all transistors.
What is RISC and CISC
Reduced Instruction Set RISC advantages
Computer 1. Smaller die size
Fewer Addressing modes. Simple instructions - simple processor
Fewer Instructions available. require less transistors.
For example, ARM, NEC VR series. 2. Shorter development time
Complex Instruction Set Simple processor take less effort to
Computer design.
More Instructions available 3. Higher performance?
Many addressing modes.
For example, Intel x86. RISC Disadvantages
Complex compiler
poor code density
Computer architecture
Von-Neumann architecture
In a Von-Neumann architecture, the same memory and bus are used to
store both data and instructions that run the program.
Harvard Architecture
The Harvard architecture stores machine instructions and data in separate
memory units that are connected by different busses.
Parallel Processing | SISD,SIMD,MIMD,MISD
SISD (Single Instruction, SIMD (Single Instruction, MISD (Multiple Instruction, MIMD(Multiple Instruction,
Single Data stream) Multiple Data streams) Single Data stream) Multiple Data streams)
Flynn’s Taxonomy
Data
(SISD) (MISD)
Instructions
Single Multiple
• Lower power
Sophisticated functionality.
Real-time operation.
Throughput.
Low power.
Reliability.
Low manufacturing cost.
From a Processor to an Embedded System
• Microprocessor (central processing unit, CPU)
• Typically defined as a single processor core that supports at least instruction fetching, decoding, and
executing
• Normally can be used for general-purpose computing, but needs to be supported with memory and
Input/Outputs (IOs)
Register banks
ALU
Microprocessor
A Computer Made by General Purpose
Microprocessor
Microcontroller (microcontroller unit, MCU)
• Typically has a single processor core
• Has memory blocks, digital IOs, analog IOs, and other basic peripherals
• Typically used for basic control purpose, such as embedded applications
System Bus
Microcontroller
Simplified View of the Internal Parts of Microcontrollers
(SOC)
Attributes of Embedded Systems
• Interfacing with larger systems and environments
• Analog signals for reading sensors
• Typically use a voltage to represent a physical value
• Power electronics for driving motors, solenoids
• Digital interfaces for communicating with other digital devices
• Simple – switches
• Complex – displays
• Diagnostics
• Help service personnel determine problems quickly
Some Application Domains
CONSUMER PRODUCTS Appliances, Games, A/V, Intelligent home devices …
PLANT CONTROL
NETWORKS
Telecommunication, Defense
Field Applications of Embedded Systems
• Closed-loop control system
• Monitor and (pre)process a system state, adjust an output to maintain a desired set point (temperature, speed,
direction, etc.)
• Remove noise, select desired signal features
• Sequencing
• Step through different stages based on environment and system
Output:
Constraints: - Liquid crystal display
- Size
- Cost Use low-performance
- Power and energy microcontroller: Output:
- 9-bit, 10 MIPS Display speed and
- Weight distance
A “Short List” of Embedded Systems
• Anti-lock brakes • Cordless phones • Teleconferencing Televisions
• Auto-focus cameras • Cruise control • Temperature controllers
• Automatic teller machines • Digital cameras • Theft tracking systems
• MPEG decoders • Disk drives • TV set-top boxes
• Network cards • Electronic card readers • VCR’s, DVD players
• Network switches/routers • Electronic instruments • Video game consoles
• Automatic toll systems • Printers • And the Medical testing systems
• Automatic transmission • Satellite phones • Modems
• Avionic systems • Scanners • Video phones
• Battery chargers • Smart ovens/dishwashers • Washers and dryers
• Camcorders • Speech recognizers
• Cell phones • Stereo systems
• On-board navigation • systems
• Pagers • Electronic toys/games
• Photocopiers • Factory control
• Plant control • Fax machines
• Point-of-sale systems • Fingerprint identifiers
• Portable video games • Home security systems
• Cell-phone base stations • Life-support systems
Example: Gasoline Automobile Engine Control Unit
Functions:
- Fuel injection Many inputs and outputs:
- Air intake setting - Discrete sensors and
- Spark timing actuators
- Exhaust gas circulation - Network interface to
- Electronic throttle control rest of car
- Knock control
Constraints:
Use high-performance
- Reliability in harsh microcontroller:
environment - E.g. 32-bit, 3 MB flash
- Cost memory, 50-300 MHz
- Size
ARM Powered Products
Introduction to the Internet of Things (IoT)
• IoT generally refers to a world in which a large range of objects are
addressable via a network
• Cheaper
• Smaller
• Lower power
• Energy harvesting
• Programming language
• Programmed in the C language rather than Java (resulting in smaller and faster code – less expensive
MCU)
• Some performance-critical code may be in assembly language
• Operating system
• Typically no OS, but instead a simple scheduler
• If OS is used, it is likely to be a lean RTOS
Options for Building Embedded Systems
Implementation Design Unit Upgrades Size Weight Power System
Cost Cost & Bug Fixes Speed
ASIC high ($500K/ very low hard tiny – 1 die very low low extremely fast
mask set)
Programmable logic – low to mid mid easy small low medium to high very fast
FPGA, PLD
Microprocessor + memory low to mid mid easy small to medium low to moderate medium moderate
+ peripherals
Software Running on
Generic Hardware
Microcontroller (int. low mid to low easy small low medium slow to moderate
memory & peripherals)
Embedded PC low high easy medium moderate to high medium to high fast