Upload
ravitalawar-1
View
231
Download
0
Embed Size (px)
Citation preview
8/9/2019 Week1 Hacettepe
1/51
EMBEDDED SYSTEM BASICSAND APPLICATION
8/9/2019 Week1 Hacettepe
2/51
2
TOPICS TO BE DISCUSSED
• System• Embedded System• Components
• Classifications• Processors• Other Hardware• Software• Applications
8/9/2019 Week1 Hacettepe
3/51
3
INTRODUCTIONWhat is a system?
A system is a way of working,organizing or doing one or many tasks
according to a fixed plan, program orset of rules.
A system is also an arrangementin which all its units assemble andwork together according to the plan orprogram.
8/9/2019 Week1 Hacettepe
4/51
4
SYSTEM EXAMPLESWATCH
It is a time display SYSTEMParts: Hardware, Needles, Battery, Dial,
Chassis and Strap
Rules1.All needles move clockwise only2.A thin needle rotates every second3.A long needle rotates every minute
4.A short needle rotates every hour5.All needles return to the original position after 12 hours
8/9/2019 Week1 Hacettepe
5/51
5
SYSTEM EXAMPLES
WASHING MACHINEIt is an automatic clothes washing SYSTEMParts: Status display panel, Switches & Dials, Motor,Power supply & control unit, Inner water level sensor andsolenoid valve.
Rules1.Wash by spinning2.Rinse3.Drying
4.Wash over by blinking5.Each step display the process stage6.In case interruption, execute only the remaining
8/9/2019 Week1 Hacettepe
6/51
6
EMBEDDED SYSTEMDefinition: An Embedded System is one that hascomputer hardware with software embedded in it asone of its important components.
SOFTWARE PROGRAM
#include #use delay (clock=20000000)#byte PORTB=6main(){
set_tris_b(0);portb=255; //decimaldelay_ms(1000);portb=0x55; //hexadecimaldelay_ms(1000);portb=0b10101010; //binarydelay_ms(500);}
Its software embeds inROM (Read OnlyMemory). It does not needsecondary memories as ina computer
HARDWARE
8/9/2019 Week1 Hacettepe
7/51
7
COMPUTER HARDWARE
A Microprocessor
A Large Memory(Primary and Secondary)(RAM, ROM and caches)
Input Units(Keyboard, Mouse, Scanner, etc.)
Output Units(Monitor, printer, etc.)
Networking Units(Ethernet Card, Drivers, etc.)
I/O Units(Modem, Fax cum Modem, etc.)
8/9/2019 Week1 Hacettepe
8/51
8
COMPONENTS OF EMBEDDED SYSTEM
• It has HardwareProcessor, Timers, Interrupt controller, I/O Devices, Memories, Ports,etc.
• It has main Application SoftwareWhich may perform concurrently the series of tasks or multiple tasks.
• It has Real Time Operating System (RTOS)RTOS defines the way the system work. Which supervise the applicationsoftware. It sets the rules during the execution of the applicationprogram. A small scale embedded system may not need an RTOS.
8/9/2019 Week1 Hacettepe
9/51
9
EMBEDDED SYSTEM HARDWARE
8/9/2019 Week1 Hacettepe
10/51
10
8/9/2019 Week1 Hacettepe
11/51
11
EMBEDDED SYSTEM CONSTRAINTS
An embedded system is software designed to keepin view three constraints:
– Available system memory
– Available processor speed
– The need to limit the power dissipationWhen running the system continuously in cycles of wait forevents, run, stop and wakeup.
8/9/2019 Week1 Hacettepe
12/51
12
What makes embedded systems different?
• Real-time operation• size• cost
• time• reliability• safety• energy• security
8/9/2019 Week1 Hacettepe
13/51
13
CLASSIFICATIONS OF EMBEDDED SYSTEM
1. Small Scale Embedded System
2. Medium Scale Embedded System
3. Sophisticated Embedded System
8/9/2019 Week1 Hacettepe
14/51
14
SMALL SCALE EMBEDDED SYSTEM
• Single 8 bit or 16bit Microcontroller.
• Little hardware and software complexity.
• They May even be battery operated.
• Usually “C” is used for developing these system.
• The need to limit power dissipation when system is runningcontinuously.
Programming tools:Editor, Assembler and Cross Assembler
8/9/2019 Week1 Hacettepe
15/51
15
MEDIUM SCALE EMBEDDED SYSTEM
• Single or few 16 or 32 bit microcontrollers or DigitalSignal Processors (DSP) or Reduced InstructionsSet Computers (RISC).
• Both hardware and software complexity.
Programming tools:RTOS, Source code Engineering Tool,
Simulator, Debugger and Integrated DevelopmentEnvironment (IDE).
8/9/2019 Week1 Hacettepe
16/51
16
SOPHISTICATED EMBEDDED SYSTEM
• Enormous hardware and software complexity
• Which may need scalable processor or configurable processorand programming logic arrays.
• Constrained by the processing speed available in theirhardware units.
Programming Tools:For these systems may not be readily available at a
reasonable cost or may not be available at all. A compiler orretargetable compiler might have to be developed for this.
8/9/2019 Week1 Hacettepe
17/51
17
PROCESSOR• A Processor is the heart of the EmbeddedSystem.
• For an embedded system designer
knowledge of microprocessor andmicrocontroller is a must.
Two Essential Units: Operations
Control Unit (CU), FetchExecution Unit (EU) Execute
8/9/2019 Week1 Hacettepe
18/51
18
VARIOUS PROCESSOR1. General Purpose processor (GPP)
Microprocessor MicrocontrollerEmbedded Processor Digital signal Processor
2. Application Specific System Processor(ASSP)
3. Multi Processor System using GPPs
8/9/2019 Week1 Hacettepe
19/51
19
MICROPROCESSOR
• A microprocessor is a single chip semi conductordevice also which is a computer on chip, but not acomplete computer.
• Its CPU contains an ALU, a program counter, a stackpointer, some working register, a clock timing circuitand interrupt circuit on a single chip.
• To make complete micro computer, one must addmemory usually ROM and RAM, memory decoder, anoscillator and a number of serial and parallel ports.
8/9/2019 Week1 Hacettepe
20/51
20
Processor technology• The architecture of the computation engine used to implement a system’s
desired functionality• Processor does not have to be programmable
– “Processor” not equal to general-purpose processor
Application-specific
Registers
CustomALU
DatapathController
Program memory
Assembly code
for:
total = 0for i =1 to …
Control logicand Stateregister
Datamemory
IR PC
Single-purpose (“hardware”)
DatapathController
Controllogic
Stateregister
Datamemory
indextotal
+
IR PC
Register file
GeneralALU
DatapathController
Programmemory
Assembly codefor:
total = 0for i =1 to …
Controllogic and
State register
Datamemory
General-purpose (“software”)
8/9/2019 Week1 Hacettepe
21/51
21
Processor technology• Processors vary in their customization for the problem at
hand total = 0for i = 1 to N loop
total += M[i]end loop
General-purpose processor
Single-purpose processor
Application-specific processor
Desiredfunctionality
8/9/2019 Week1 Hacettepe
22/51
22
General-purpose processors• Programmable device used in a
variety of applications – Also known as “microprocessor”
• Features
– Program memory – General datapath with largeregister file and general ALU
• User benefits – Low time-to-market and NRE
costs – High flexibility
• “Pentium” the most well-known,but there are hundreds of others
IR PC
Register file
General
ALU
DatapathController
Programmemory
Assembly codefor:
total = 0for i =1 to …
Controllogic and
Stateregister
Datamemory
8/9/2019 Week1 Hacettepe
23/51
23
Single-purpose processors• Digital circuit designed to execute exactly one
program – a.k.a. coprocessor, accelerator or peripheral
• Features – Contains only the components needed to
execute a single program – No program memory
• Benefits – Fast – Low power – Small size
DatapathController
Controllogic
Stateregister
Datamemory
index
total
+
8/9/2019 Week1 Hacettepe
24/51
8/9/2019 Week1 Hacettepe
25/51
25
IC technology
• The manner in which a digital (gate-level)implementation is mapped onto an IC – IC: Integrated circuit, or “chip” – IC technologies differ in their customization to a
design – IC’s consist of numerous layers (perhaps 10 or more)
• IC technologies differ with respect to who builds each layerand when
source drainchanneloxidegate
Silicon substrate
IC package IC
8/9/2019 Week1 Hacettepe
26/51
26
IC technology
• Three types of IC technologies – Full-custom/VLSI – Semi-custom ASIC (gate array and standard
cell) – PLD (Programmable Logic Device)
8/9/2019 Week1 Hacettepe
27/51
27
Full-custom/VLSI
• All layers are optimized for an embeddedsystem’s particular digital implementation – Placing transistors
– Sizing transistors – Routing wires
• Benefits – Excellent performance, small size, low power
• Drawbacks – High NRE cost (e.g., $300k), long time-to-
market
8/9/2019 Week1 Hacettepe
28/51
28
Semi-custom
• Lower layers are fully or partially built – Designers are left with routing of wires and
maybe placing some blocks
• Benefits – Good performance, good size, less NRE cost
than a full-custom implementation (perhaps$10k to $100k)
• Drawbacks – Still require weeks to months to develop
8/9/2019 Week1 Hacettepe
29/51
29
PLD (Programmable LogicDevice)
• All layers already exist – Designers can purchase an IC – Connections on the IC are either created or destroyed
to implement desired functionality – Field-Programmable Gate Array (FPGA) very popular
• Benefits – Low NRE costs, almost instant IC availability
• Drawbacks – Bigger, expensive (perhaps $30 per unit), power
hungry, slower
8/9/2019 Week1 Hacettepe
30/51
30
MICROCONTROLLER
• A microcontroller is a functionalcomputer system-on-a-chip. It contains aprocessor, memory, and programmableinput/output peripherals.
• Microcontrollers include an integratedCPU, memory (a small amount of RAM,program memory, or both) and peripheralscapable of input and output.
8/9/2019 Week1 Hacettepe
31/51
31
VARIOUS MICROCONTROLLERS
INTEL8031,8032,8051,8052,8751,8752
PIC
8-bit PIC16, PIC18,16-bit DSPIC33 / PIC24,PIC16C7x
MotorolaMC68HC11
8/9/2019 Week1 Hacettepe
32/51
8/9/2019 Week1 Hacettepe
33/51
33
EMBEDDED PROCESSOR
• Special microprocessors & microcontrollersoften called, Embedded processors.
• An embedded processor is used when fastprocessing fast context-switching & atomicALU operations are needed.
Examples : ARM 7, INTEL i960, AMD 29050.
8/9/2019 Week1 Hacettepe
34/51
8/9/2019 Week1 Hacettepe
35/51
8/9/2019 Week1 Hacettepe
36/51
36
MULTI PROCESSOR SYSTEM USINGGPPs
• Multiple processors are used when asingle processor does not meet theneeds of different task.
• The operations of all the processorsare synchronized to obtain an optimumperformance.
8/9/2019 Week1 Hacettepe
37/51
37
Moore’s Law
• Moore's law describes a long-term trend in the history ofcomputing hardware.
• Since the invention of the integrated circuit in 1958, the numberof transistors that can be placed inexpensively on an integratedcircuit has increased exponentially, doubling approximatelyevery two years.
• The trend was first observed by Intel co-founder Gordon E.Moore in 1965.
• Almost every measure of the capabilities of digital electronicdevices is linked to Moore's law: processing speed, memory
capacity, etc.
8/9/2019 Week1 Hacettepe
38/51
38
Moore’s law
8/9/2019 Week1 Hacettepe
39/51
39
8/9/2019 Week1 Hacettepe
40/51
40
OTHER HARDWARE• Power Source
• Clock Oscillator
• Real Time Clock (RTC)
• Reset Circuit, Power-up Reset and watchdog timer Reset
• Memory
• I/O Ports, I/O Buses
• Interrupt Handler
• DAC and ADC
• LCD and LED Display
• Keypad/Keyboard
8/9/2019 Week1 Hacettepe
41/51
41
SOFTWARE
SIMULATOR
Masm
SOFTWARE
CC++Dot Net
COMPILER
RIDEKEIL
8/9/2019 Week1 Hacettepe
42/51
42
•Household appliances:Microwave ovens, Television, DVDPlayers & Recorders
•Audio players
•Integrated systems in aircrafts andmissiles
•Cellular telephones
•Electric and Electronic Motor controllers
•Engine controllers in automobiles
•Calculators
• Medical equipments
•Videogames
•Digital musical instruments, etc.
APPLICATIONS
8/9/2019 Week1 Hacettepe
43/51
43
8/9/2019 Week1 Hacettepe
44/51
44
8/9/2019 Week1 Hacettepe
45/51
45
• Automotive embedded• systems• Today’s high-end automobile may have 100
• microprocessors:• 4-bit microcontroller checks seat belt;• microcontrollers run dashboard devices;• 16/32-bit microprocessor controls engine.
• Source:
8/9/2019 Week1 Hacettepe
46/51
46
• Embedded Systems...• react on the environment at the speed of the• environment
• often real-time requirements• are designed for one single task• have often to be power-efficient• are mass products and have to be cheap
• must be reliable
8/9/2019 Week1 Hacettepe
47/51
47
8/9/2019 Week1 Hacettepe
48/51
8/9/2019 Week1 Hacettepe
49/51
8/9/2019 Week1 Hacettepe
50/51
8/9/2019 Week1 Hacettepe
51/51
51
Learn by Doing
Excel Thru Experimentation
Lead by Example
Acquire skills and get employed
Update skills and stay employed
THANK YOU