5 - Embedded Systems
5 - Embedded Systems
5 - Embedded Systems
5. Embedded Systems
By:
Dr. Mohammed Abdul-Muttaleb 1
Embedded Systems
❖ Definition 1) Any device that includes a programmable computer but is not itself a
general-purpose computer.
or 2) Embedded systems are computing systems with tightly coupled hardware and
software integration, that are designed to perform a dedicated function.
❖ Take advantage of application characteristics to optimize the design:
• Does not need all the general-purpose elements. Automobile
Avionics
Household
Appliances
Communication
Consumer
Office Equipments
Electronics
Example: Automotive Embedded Systems
• Modern embedded systems are often based on microcontrollers (i.e.
CPUs with integrated memory or peripheral interfaces)
• For example, today’s high-end automobile have > 80
microprocessors:
• 3-bit microcontroller checks seat belt;
• microcontrollers run dashboard devices;
• 16/32-bit microprocessor controls engine.
• Thousands lines of code
Embedded Systems
❖Characteristics of Embedded Systems:
•Real-time operation.
•Low manufacturing cost.
•Low power.
•Portable
❖Functional complexity:
• Often have to run sophisticated algorithms or multiple algorithms.
• Example: A DVD player: DVD, video CD, audio CD, JPEG image CD, MP3 CD….
• Often provide sophisticated user interfaces.
• Multiple levels of user menus
• Support for multiple languages
• Graphics
• Speech, handwriting
A Typical Embedded System
Real-Time Algorithms for Engineering
Interface
Clock Digital Control System
Database
Data Retrieval
Display
and Display
Devices
Photons of the UV light cause ionization within the silicon oxide, which
allow the stored charge on the floating gate to dissipate. Since the whole
memory array is exposed, all the memory is erased at the same time.
Embedded System Memory: EEPROM
• Electrically Erasable Programmable ROM (EEPROM or E2PROM):
modern EPROM devices are erased electrically and are thus called
EEPROM. One important difference between an EPROM and an
EEPROM device is that with the EEPROM device, memory content of
a single byte can be selectively erased and reprogrammed. Therefore,
with an EEPROM device, incremental changes can be made. Another
difference is the EEPROM can be reprogrammed without a special
programmer and can stay in the device while being reprogrammed.
• EEPROM is rather slow because you can program 1 byte at a time
• Flash memory works much faster than traditional EEPROMs
because it erases a block or the entire chip at a time.
Embedded System Memory: RAM
B.Random Access Memory (RAM): Also called Read/Write Memory, requires
external power to maintain memory content. The term random access refers
to the ability to access any memory cell directly. Types of RAM that are of
interest:
• Dynamic RAM (DRAM): DRAM is a RAM device that requires periodic
refreshing to retain its content.
• Static RAM (SRAM): SRAM is a RAM device that retains its content as long as
power is supplied by an external power source. SRAM does not require
periodic refreshing and it is faster than DRAM.
• Non-Volatile RAM (NVRAM): NVRAM is a special type of SRAM that has
backup battery power so it can retain its content after the main system
power is shut off.
DRAM Memory Technology
• Dynamic random-access memory
• Capacitor charge state indicates stored value
• Whether the capacitor is charged or discharged indicates storage of 1 or 0
• 1 capacitor
• 1 access transistor
• Capacitor leaks
• DRAM cell loses charge over time
• DRAM cell needs to be refreshed
• Needs Recherche after each read (destructive read)
DRAM 23
DRAM Implementation*
Dynamic RAM
• DRAM stores the binary information in the form of electric charges on
capacitors.
• The capacitors are provided inside the chip by MOS transistors.
• The capacitors tends to discharge with time and must be periodically
recharged by refreshing the dynamic memory.
• DRAM offers reduced power consumption and larger storage capacity
in a single memory chip.
• High capacity, low cost, low speed, low power consumption.
SRAM Memory Technology
• Static random access memory
• Two cross coupled inverters store a single bit
• 6 Transistors in total
• 4 transistors for storage (each invertor has 2 transistor)
• 2 transistors for access
bitline bitline
wordline
SRAM
26
Static RAM
• SRAM consists essentially of internal latches that store the binary
information.
• The stored information remains valid as long as power is applied to
the unit.
• SRAM is easier to use and has shorter read and write cycles.
• Low capacity, high cost, high speed, high power consumption.
Hard Disk Drives (HDDs)
Platters
Read/Write Head
Side View
• HDD is an electromechanical data storage device that uses magnetic storage to store
and retrieve digital information using one or more rigid rapidly rotating disks (platters)
coated with magnetic material.
• Speed is dependent on rotation speed (5400, 7200…10000)
Solid State Disks (SSDs)
• Cons
• More expensive (~5-10x disk)
• Limited drive lifetime
• life expectancy is 9–11 years
Break
Memory Hierarchy
Registers
Flash/Disk
34
Types of Memories
SSD: $0.75 /GB, HDD: $0.1-0.2/GB
DRAM: $20-25/GB
Type Size Latency Cost/bit
36
Floating Gate MOSFET (FGMOS)
• The fundamental build block of flash memory is FGMOS
FGMOS states
• NAND high memory not needing fast reading time such as camera
and flash memory
49
https://www.youtube.com/watch?v=r2KaVfSH884&t=392s