SlideShare ist ein Scribd-Unternehmen logo
1 von 29
Introduction to
EMBEDDED SYSTEM
(2nd Edition)
SHIBU K V
Dr Moe Moe Myint
Department of Computer Engineering & Information Technology
Mandalay Technological University
www.slideshare.net/MoeMoeMyint
moemoemyint@moemyanmar.ml
moe2myint.mdy@gmail.com
drmoemoemyint.blogspot.com
Agenda
2.1 Core of the Embedded System 17
2.2 Memory 28
2.3 Sensors and Actuators 35
2.4 Communication Interface 45
2.5 Embedded Firmware 59
2.6 Other System Components 60
2.7 PCB and Passive Components 64
2
Mandalay Technological University
Department of Computer Engineering and Information Technology
Learning Objectives
 Learn the building blocks of a typical Embedded System
 Learn about General Purpose Processors (GPPs), Application
Specific Instruction Set Processors (ASIPs), Microprocessors,
Microcontrollers, Digital Signal Processors, RISC & CISC
processors, Harvad and Von-Neumann Processor Architecture, Big-
endian v/s Little endian processors, Load Store operation and
Instruction pipelining
 Learn about different PLDs like Complex Programmable Logic
Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), etc.
3
Mandalay Technological University
Department of Computer Engineering and Information Technology
Cont’d
 Learn about the different memory technologies and memory types used in
embedded system development
 Learn about Masked ROM (MROM), PROM, OTP, EPROM, EEPROM, and
FLASH memory for embedded firmware storage
 Learn about Serial Access Memory (SAM), Static Random Access Memory
(SRAM), Dynamic Random Access Memory (DRAM) and Nonvolatile
SRAM (NVRAM)
 Understand the different factors to be considered in the selection of memory
for embedded systems
 Understand the role of sensors, actuators and their interfacing with the I/O
subsystems of an embedded system
4
Mandalay Technological University
Department of Computer Engineering and Information Technology
Cont’d
 Learn about the interfacing of LEDs, 7-segment LED Displays, Piezo Buzzer,
Stepper Motor, Relays, Optocouplers, Matrix keyboard, Push button switches,
Programmable Peripheral Interface Device (e.g. 8255 PPI), etc. with the I/O
subsystem of the embedded system
 Learn about the different communication interfaces of an embedded system
 Understand the various chip level communication interfaces like I2C, SPI,
UART, 1-wire, parallel bus, etc
 Understand the different wired and wireless external communication interfaces
like RS-232C, RS-485, Parallel Port, USB, IEEE1394, Infrared (IrDA),
Bluetooth, Wifi, ZigBee, GPRS, etc.
 Know what embedded firmware is and its role in embedded systems
5
Mandalay Technological University
Department of Computer Engineering and Information Technology
Cont’d
 Understand the different system components like Reset Circuit,
Brown-out protection circuit, Oscillator Unit, Real-Time Clock
(RTC) and Watchdog Timer unit
 Understand the role of PCB in embedded systems
6
Mandalay Technological University
Department of Computer Engineering and Information Technology
Typical Embedded System
 A typical embedded system contains a single chip controller, which acts as
the master brain of the system.
 The controller can be a Microprocessor or a microcontroller or a Field
Programmable Gate Array (FPGA) device or a Digital Signal Processor
(DSP) or an Application Specific Integrated Circuit (ASIC)/ Application
Specific Standard Product (ASSP).
 Embedded hardware/software systems are basically designed to regulate a
physical variable or to manipulate the state of some devices by sending
some control signals to the Actuators or devices connected to the o/p ports
of the system, in response to the input signals provided by the end users or
Sensors which are connected to the input ports.
7
Mandalay Technological University
Department of Computer Engineering and Information Technology
8
Mandalay Technological University
Department of Computer Engineering and Information Technology
Cont’d
 Keyboards, push button switches, etc. are examples for common
user interface input devices whereas LEDs, liquid crystal displays,
piezoelectric buzzers, etc. are examples for common user interface
output devices for a typical embedded system.
 For example, if the embedded system is designed for any handheld
application, such as a mobile handset application, then the system
should contain user interfaces like a keyboard for performing input
operations and display unit for providing users the status of various
activities in progress.
9
Mandalay Technological University
Department of Computer Engineering and Information Technology
Elements of an Embedded System10
Mandalay Technological University
Department of Computer Engineering and Information Technology
2.1 Core of Embedded Systems
 The core of the embedded system falls into any of the following
categories:
1. General Purpose and Domain Specific Processors
i. Microprocessors
ii. Microcontrollers
iii. Digital Signal Processors
11
Mandalay Technological University
Department of Computer Engineering and Information Technology
Cont’d
2. Application Specific Integrated Circuits (ASICs)
3. Programmable Logic Devices (PLDs)
4. Commercial off-the-shelf Components (COTS)
12
Mandalay Technological University
Department of Computer Engineering and Information Technology
13
 Microcontrollers are designed to perform specific tasks. However,
Microprocessors are designed to perform unspecific tasks like developing
software, games, website, photo editing, creating documents, etc.
 Depending on the input, some processing for microcontroller needs to be done
and output is defined. However, the relationship between input and output for
microprocessor is not defined.
 Since the applications of microcontroller are very specific, they need small
resources like RAM, ROM, I/O ports etc. and hence can be embedded on a
single chip. Microprocessors need high amount of resources like RAM,
ROM, I/O ports etc.
 The clock speed of Microprocessor is quite high as compared to the
microcontroller. Whereas the microcontrollers operate from a few MHz (from
30 to 50 MHz), today’s microprocessor operate above 1 GHz as they perform
complex tasks.
Merits, Drawbacks and Application Areas of
Microcontrollers and Microprocessors
Mandalay Technological University
Department of Computer Engineering and Information Technology
14
 Microprocessor cannot be used stand alone. They need other peripherals
like RAM, ROM, buffer, I/O ports etc and hence a system designed around a
microprocessor is quite costly.
 Application areas of microcontroller: Mobile phones, CD/DVD players,
Washing machines, Cameras, Security alarms, microwave oven, etc.
 Application areas of microprocessor: Calculators, Accounting Systems,
Games Machine, Complex Industrial Controllers, Data Acquisition Systems,
Military applications, Communication systems, etc.
Cont’d
Mandalay Technological University
Department of Computer Engineering and Information Technology
15
Digital Signal Processors
 DSPs are powerful special purpose 8/16/32 bit microprocessors designed specifically
to meet the computational demands and power constraints of today’s embedded audio,
video, and communications applications.
 Digital signal processors are 2 to 3 times faster than the general purpose
microprocessors in signal processing applications.
 A typical digital signal processor incorporates the following key units:
i. Program Memory : Memory for storing the program required by DSP to
process the data.
ii. Data Memory : Working memory for storing temporary variables/information
and data/signal to be processed.
iii. Computational Engine : Performs the signal/math processing , accessing the
program from the Program Memory and the data from the Data Memory.
iv. I/O Unit : Acts as an interface
between the outside world and DSP.
It is responsible for capturing signals
to be processed and delivering
the processed signals.
16
Mandalay Technological University
Department of Computer Engineering and Information Technology
Cont’d
 Application areas : Audio video signal processing, telecommunication and
multimedia applications.
 DSP employs a large amount of real-time calculations, Sum of products (SOP)
calculation, convolution, fast Fourier transform (FFT), discrete Fourier
transform (DFT), etc. are some of the operations performed by digital signal
processors.
17
Mandalay Technological University
Department of Computer Engineering and Information Technology
RISC vs CISC Processors/Controllers
RISC CISC
Lesser number of instructions Greater number of Instructions
Instruction pipelining and increased
execution speed
Generally no instruction pipelining
feature
Orthogonal instruction set Non-orthogonal instruction set
Operations are performed on registers only,
the only memory operations are load and
store.
Operations are performed on registers or
memory depending on the instruction.
A large number of registers are available. Limited number of general purpose
registers.
Programmer needs to write more code to
execute a task since the instructions are
simpler ones.
Instructions are like macros in C language.
A programmer can achieve the desired
functionality with a single instruction which
in turn provides the effect of using more
simpler single instructions in RISC.
18
Mandalay Technological University
Department of Computer Engineering and Information Technology
Cont’d19
RISC CISC
Single, fixed length instructions Variable length instructions
Less silicon usage and pin count More silicon usage since more additional
decoder logic is required to implement the
complex instruction decoding.
With Harvard Architecture Can be Harvard or Von-Neumann
Architecture
Mandalay Technological University
Department of Computer Engineering and Information Technology
Big-Endian vs. Little-Endian Processors/Controllers
 Endianness specifies the order in which a sequence of bytes are stored
in computer memory.
 Little-endian is an order in which the “little end”/ the lower-order byte
of the data (least significant value in the sequence) is stored in memory
at the lowest address. (The little end comes first.)
 For example, a 4 byte long integer Byte3, Byte2, Byte1, Byte0 will be
stored in the memory as shown below:
20
Mandalay Technological University
Department of Computer Engineering and Information Technology
Cont’d21
Byte 0
Byte 1
Byte 2
Byte 3
Base Address+0
Base Address+1
Base Address+3
Base Address+2
Byte 0
Byte 1
Byte 2
Byte 3
0x20000 (Base Address)
0x20001 (Base Address+1)
0x20002 (Base Address+2)
0x20003 (Base Address+3)
Mandalay Technological University
Department of Computer Engineering and Information Technology
Example : 90AB12CD (Hexadecimal)
Cont’d
 Big-endian is an order in which the “big end” / the higher-order byte of
the data (most significant value in sequence) is stored in memory at the
lowest address. (The big end comes first.)
 For example, a 4 byte long integer Byte3, Byte2, Byte1, Byte0 will be
stored in the memory as shown below:
22
Mandalay Technological University
Department of Computer Engineering and Information Technology
Cont’d23
Byte 3
Byte 2
Byte 1
Byte 0
Base Address+0
Base Address+1
Base Address+3
Base Address+2
Byte 3
Byte 2
Byte 1
Byte 0
0x20000 (Base Address)
0x20001 (Base Address+1)
0x20002 (Base Address+2)
0x20003 (Base Address+3)
Mandalay Technological University
Department of Computer Engineering and Information Technology
Example : 90AB12CD (Hexadecimal)
Understanding Test Questions II
1. Embedded hardware/software systems are basically designed to
(a) Regulate a physical variable (b) Change the state of some devices
(c) Measure/Read the state of a variable/device (d) Any/All of these
2. Little Endian processors
(a) Store the lower-order byte of the data at the lowest address and the
higher-order byte of the data at the highest address of memory
(b) Store the higher-order byte of the data at the lowest address and the
lower-order byte of the data at the highest address of memory
(c) Store both higher order and lower order byte of the data at the same
address of memory
(d) None of these
3. The instruction set of RISC processor is
(a) Simple and lesser in number (b) Complex and lesser in number
(c) Simple and larger in number (d) Complex and larger in number
24
Mandalay Technological University
Department of Computer Engineering and Information Technology
Cont’d
4. Which of the following is true about CISC processors?
(a) The instruction set is non-orthogonal
(b) The number of general purpose registers is limited.
(c) Instructions are like macros in C language
(d) Variable length instructions
(e) All of these (f) None of these
5. Which of the following processor architecture supports easier instruction
pipelining?
(a) Harvard (b) Von Neumann (c ) Both of them (d) None of these
6. An integer variable with value 255 is stored in memory location at 0x8000.
The processor word length is 8 bits and the processor is a big endian processor.
The size of integer is considered as 4 bytes in the system. What is the value
held by the memory location 0x8000?
(a) 0 x FF (b) 0 x 00 (c ) 0 x 01 (d) None of these
25
Mandalay Technological University
Department of Computer Engineering and Information Technology
Reviewed Questions II
1. Explain the components of a typical embedded system in detail.
2. Which are the components used as the core of an embedded system?
Explain the merits, drawbacks, if any, and the applications/domains
where they are commonly used.
3. What is the difference between microprocessor and microcontroller?
Explain the role of microprocessors and controllers in embedded
system design?
4. What is Digital Signal Processor (DSP)? Explain the role of DSP in
embedded system design?
5. What is the difference between RISC and CISC processors? Give an
example for each.
6. What is the difference between big-endian and little-endian processors?
Give an example of each.
26
Mandalay Technological University
Department of Computer Engineering and Information Technology
Assignment II
What are the components used as the core of an embedded
system? Among them, explain the merits, drawbacks, if
any, and the applications/ domains of Application Specific
Integrated Circuits (ASICs), Programmable Logic Devices
and Commercial Off-the-Shelf Components (COTS) where
they are commonly used.
Remark: for all groups
Deadline : 26.12.17 (Coming Tuesday)
27
Mandalay Technological University
Department of Computer Engineering and Information Technology
 Only Original Owner has full rights reserved for copied images.
 This PPT is only for fair academic use.
 Coming soon for chapter 2 (2nd portion)
28
Mandalay Technological University
Department of Computer Engineering and Information Technology
29

Weitere ähnliche Inhalte

Was ist angesagt?

Hardware Software Codesign
Hardware Software CodesignHardware Software Codesign
Hardware Software Codesign
destruck
 

Was ist angesagt? (20)

Communication Interface of The Embedded Systems
Communication Interface of The Embedded Systems Communication Interface of The Embedded Systems
Communication Interface of The Embedded Systems
 
Hardware Software Codesign
Hardware Software CodesignHardware Software Codesign
Hardware Software Codesign
 
Typical Embedded System
Typical Embedded SystemTypical Embedded System
Typical Embedded System
 
Chapter 8 Embedded Hardware Design and Development (second portion)
Chapter 8 Embedded Hardware Design and Development (second portion)Chapter 8 Embedded Hardware Design and Development (second portion)
Chapter 8 Embedded Hardware Design and Development (second portion)
 
Chapter 3 Charateristics and Quality Attributes of Embedded System
Chapter 3 Charateristics and Quality Attributes of Embedded SystemChapter 3 Charateristics and Quality Attributes of Embedded System
Chapter 3 Charateristics and Quality Attributes of Embedded System
 
Embedded System
Embedded SystemEmbedded System
Embedded System
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT I Core of Embedded Systems
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT I   Core of Embedded SystemsSYBSC IT SEM IV EMBEDDED SYSTEMS UNIT I   Core of Embedded Systems
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT I Core of Embedded Systems
 
Complex Programmable Logic Device (CPLD) Architecture and Its Applications
Complex Programmable Logic Device (CPLD) Architecture and Its ApplicationsComplex Programmable Logic Device (CPLD) Architecture and Its Applications
Complex Programmable Logic Device (CPLD) Architecture and Its Applications
 
Classification of embedded systems
Classification of embedded systemsClassification of embedded systems
Classification of embedded systems
 
Chapter 4 Embedded System: Application and Domain Specific
Chapter 4 Embedded System: Application and Domain SpecificChapter 4 Embedded System: Application and Domain Specific
Chapter 4 Embedded System: Application and Domain Specific
 
Chapter 8 Embedded Hardware Design and Development (third portion)
Chapter 8 Embedded Hardware Design and Development (third portion)Chapter 8 Embedded Hardware Design and Development (third portion)
Chapter 8 Embedded Hardware Design and Development (third portion)
 
Embedded Systems - Training ppt
Embedded Systems - Training pptEmbedded Systems - Training ppt
Embedded Systems - Training ppt
 
Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 MicrocontrollerInterfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
 
Quality attributes of Embedded Systems
Quality attributes of Embedded Systems Quality attributes of Embedded Systems
Quality attributes of Embedded Systems
 
Embedded Systems (18EC62) – Embedded System Components (Module 3)
Embedded Systems (18EC62) – Embedded System Components (Module 3)Embedded Systems (18EC62) – Embedded System Components (Module 3)
Embedded Systems (18EC62) – Embedded System Components (Module 3)
 
Embedded system introduction
Embedded system introductionEmbedded system introduction
Embedded system introduction
 
Project Report on Embedded Systems
Project Report on Embedded Systems Project Report on Embedded Systems
Project Report on Embedded Systems
 
Embedded systems - UNIT-1 - Mtech
Embedded systems - UNIT-1 - MtechEmbedded systems - UNIT-1 - Mtech
Embedded systems - UNIT-1 - Mtech
 
Introduction to Microcontroller
Introduction to MicrocontrollerIntroduction to Microcontroller
Introduction to Microcontroller
 

Ähnlich wie Introduction to Embedded Systems I: Chapter 2 (1st portion)

Lecture 1 PPT - Introduction to Embedded Systems.pptx
Lecture 1 PPT - Introduction to Embedded Systems.pptxLecture 1 PPT - Introduction to Embedded Systems.pptx
Lecture 1 PPT - Introduction to Embedded Systems.pptx
cronydeva
 
Gesture control robot using accelerometer documentation
Gesture control robot using accelerometer documentationGesture control robot using accelerometer documentation
Gesture control robot using accelerometer documentation
Rajendra Prasad
 
chapter1-171214041210 (1).pdf
chapter1-171214041210 (1).pdfchapter1-171214041210 (1).pdf
chapter1-171214041210 (1).pdf
HardikH1
 
microprocessor
microprocessormicroprocessor
microprocessor
illpa
 
Introduction to Embedded Systems and Microcontrollers
Introduction to Embedded Systems and MicrocontrollersIntroduction to Embedded Systems and Microcontrollers
Introduction to Embedded Systems and Microcontrollers
Islam Samir
 
Rfid based system for healthcare service
Rfid based system for healthcare serviceRfid based system for healthcare service
Rfid based system for healthcare service
Mohammed Irshad S K
 

Ähnlich wie Introduction to Embedded Systems I: Chapter 2 (1st portion) (20)

Lecture 1 PPT - Introduction to Embedded Systems.pptx
Lecture 1 PPT - Introduction to Embedded Systems.pptxLecture 1 PPT - Introduction to Embedded Systems.pptx
Lecture 1 PPT - Introduction to Embedded Systems.pptx
 
Embeddedsystem
EmbeddedsystemEmbeddedsystem
Embeddedsystem
 
Embedded systems الانظمة المدمجة
Embedded systems  الانظمة المدمجة Embedded systems  الانظمة المدمجة
Embedded systems الانظمة المدمجة
 
Gesture control robot using accelerometer documentation
Gesture control robot using accelerometer documentationGesture control robot using accelerometer documentation
Gesture control robot using accelerometer documentation
 
btech embedded systems ppt ES UNIT-1.pptx
btech embedded systems ppt ES UNIT-1.pptxbtech embedded systems ppt ES UNIT-1.pptx
btech embedded systems ppt ES UNIT-1.pptx
 
chapter1-171214041210 (1).pdf
chapter1-171214041210 (1).pdfchapter1-171214041210 (1).pdf
chapter1-171214041210 (1).pdf
 
R20 REGULATION JNTUK EMBEDDED SYSTEMS UNIT-1
R20 REGULATION JNTUK EMBEDDED SYSTEMS UNIT-1R20 REGULATION JNTUK EMBEDDED SYSTEMS UNIT-1
R20 REGULATION JNTUK EMBEDDED SYSTEMS UNIT-1
 
microprocessor
microprocessormicroprocessor
microprocessor
 
Embedded Systems & Robotics
Embedded Systems  & RoboticsEmbedded Systems  & Robotics
Embedded Systems & Robotics
 
Introduction to Embedded Systems and Microcontrollers
Introduction to Embedded Systems and MicrocontrollersIntroduction to Embedded Systems and Microcontrollers
Introduction to Embedded Systems and Microcontrollers
 
Language for embedded system
Language for embedded systemLanguage for embedded system
Language for embedded system
 
Language for Embedded System
Language for Embedded System Language for Embedded System
Language for Embedded System
 
IRJET- BSIOTR IT SMART LAB using IOT
IRJET- BSIOTR IT SMART LAB using IOTIRJET- BSIOTR IT SMART LAB using IOT
IRJET- BSIOTR IT SMART LAB using IOT
 
IRJET - Automatic Toll E-Tickting System for Transportation and Finding o...
IRJET -  	  Automatic Toll E-Tickting System for Transportation and Finding o...IRJET -  	  Automatic Toll E-Tickting System for Transportation and Finding o...
IRJET - Automatic Toll E-Tickting System for Transportation and Finding o...
 
Rfid based system for healthcare service
Rfid based system for healthcare serviceRfid based system for healthcare service
Rfid based system for healthcare service
 
Design and implementation of microcontroller in fpga for io t
Design and implementation of microcontroller in fpga for io tDesign and implementation of microcontroller in fpga for io t
Design and implementation of microcontroller in fpga for io t
 
Introduction to EMBEDDED SYSTEM.pdf
Introduction to EMBEDDED SYSTEM.pdfIntroduction to EMBEDDED SYSTEM.pdf
Introduction to EMBEDDED SYSTEM.pdf
 
Chapter-2 Internet of Things.pptx
Chapter-2 Internet of Things.pptxChapter-2 Internet of Things.pptx
Chapter-2 Internet of Things.pptx
 
Casp report
Casp reportCasp report
Casp report
 
Unit-1.pptx
Unit-1.pptxUnit-1.pptx
Unit-1.pptx
 

Mehr von Moe Moe Myint

Mehr von Moe Moe Myint (14)

Schematic and PCB Design Using Eagle
Schematic and PCB Design Using EagleSchematic and PCB Design Using Eagle
Schematic and PCB Design Using Eagle
 
Lect 06
Lect 06 Lect 06
Lect 06
 
Lect 03 - first portion
Lect 03 - first portionLect 03 - first portion
Lect 03 - first portion
 
Lect 02 second portion
Lect 02  second portionLect 02  second portion
Lect 02 second portion
 
Lect 02 first portion
Lect 02   first portionLect 02   first portion
Lect 02 first portion
 
Lect 02 first portion
Lect 02   first portionLect 02   first portion
Lect 02 first portion
 
Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)
 
Digital Image Processing (Lab 09 and 10)
Digital Image Processing (Lab 09 and 10)Digital Image Processing (Lab 09 and 10)
Digital Image Processing (Lab 09 and 10)
 
Digital Image Processing (Lab 08)
Digital Image Processing (Lab 08)Digital Image Processing (Lab 08)
Digital Image Processing (Lab 08)
 
Digital Image Processing (Lab 07)
Digital Image Processing (Lab 07)Digital Image Processing (Lab 07)
Digital Image Processing (Lab 07)
 
Digital Image Processing (Lab 06)
Digital Image Processing (Lab 06)Digital Image Processing (Lab 06)
Digital Image Processing (Lab 06)
 
Digital Image Processing (Lab 05)
Digital Image Processing (Lab 05)Digital Image Processing (Lab 05)
Digital Image Processing (Lab 05)
 
Dital Image Processing (Lab 2+3+4)
Dital Image Processing (Lab 2+3+4)Dital Image Processing (Lab 2+3+4)
Dital Image Processing (Lab 2+3+4)
 
Digital image processing lab 1
Digital image processing lab 1Digital image processing lab 1
Digital image processing lab 1
 

Kürzlich hochgeladen

notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Kürzlich hochgeladen (20)

notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 

Introduction to Embedded Systems I: Chapter 2 (1st portion)

  • 1. Introduction to EMBEDDED SYSTEM (2nd Edition) SHIBU K V Dr Moe Moe Myint Department of Computer Engineering & Information Technology Mandalay Technological University www.slideshare.net/MoeMoeMyint moemoemyint@moemyanmar.ml moe2myint.mdy@gmail.com drmoemoemyint.blogspot.com
  • 2. Agenda 2.1 Core of the Embedded System 17 2.2 Memory 28 2.3 Sensors and Actuators 35 2.4 Communication Interface 45 2.5 Embedded Firmware 59 2.6 Other System Components 60 2.7 PCB and Passive Components 64 2 Mandalay Technological University Department of Computer Engineering and Information Technology
  • 3. Learning Objectives  Learn the building blocks of a typical Embedded System  Learn about General Purpose Processors (GPPs), Application Specific Instruction Set Processors (ASIPs), Microprocessors, Microcontrollers, Digital Signal Processors, RISC & CISC processors, Harvad and Von-Neumann Processor Architecture, Big- endian v/s Little endian processors, Load Store operation and Instruction pipelining  Learn about different PLDs like Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), etc. 3 Mandalay Technological University Department of Computer Engineering and Information Technology
  • 4. Cont’d  Learn about the different memory technologies and memory types used in embedded system development  Learn about Masked ROM (MROM), PROM, OTP, EPROM, EEPROM, and FLASH memory for embedded firmware storage  Learn about Serial Access Memory (SAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM) and Nonvolatile SRAM (NVRAM)  Understand the different factors to be considered in the selection of memory for embedded systems  Understand the role of sensors, actuators and their interfacing with the I/O subsystems of an embedded system 4 Mandalay Technological University Department of Computer Engineering and Information Technology
  • 5. Cont’d  Learn about the interfacing of LEDs, 7-segment LED Displays, Piezo Buzzer, Stepper Motor, Relays, Optocouplers, Matrix keyboard, Push button switches, Programmable Peripheral Interface Device (e.g. 8255 PPI), etc. with the I/O subsystem of the embedded system  Learn about the different communication interfaces of an embedded system  Understand the various chip level communication interfaces like I2C, SPI, UART, 1-wire, parallel bus, etc  Understand the different wired and wireless external communication interfaces like RS-232C, RS-485, Parallel Port, USB, IEEE1394, Infrared (IrDA), Bluetooth, Wifi, ZigBee, GPRS, etc.  Know what embedded firmware is and its role in embedded systems 5 Mandalay Technological University Department of Computer Engineering and Information Technology
  • 6. Cont’d  Understand the different system components like Reset Circuit, Brown-out protection circuit, Oscillator Unit, Real-Time Clock (RTC) and Watchdog Timer unit  Understand the role of PCB in embedded systems 6 Mandalay Technological University Department of Computer Engineering and Information Technology
  • 7. Typical Embedded System  A typical embedded system contains a single chip controller, which acts as the master brain of the system.  The controller can be a Microprocessor or a microcontroller or a Field Programmable Gate Array (FPGA) device or a Digital Signal Processor (DSP) or an Application Specific Integrated Circuit (ASIC)/ Application Specific Standard Product (ASSP).  Embedded hardware/software systems are basically designed to regulate a physical variable or to manipulate the state of some devices by sending some control signals to the Actuators or devices connected to the o/p ports of the system, in response to the input signals provided by the end users or Sensors which are connected to the input ports. 7 Mandalay Technological University Department of Computer Engineering and Information Technology
  • 8. 8 Mandalay Technological University Department of Computer Engineering and Information Technology
  • 9. Cont’d  Keyboards, push button switches, etc. are examples for common user interface input devices whereas LEDs, liquid crystal displays, piezoelectric buzzers, etc. are examples for common user interface output devices for a typical embedded system.  For example, if the embedded system is designed for any handheld application, such as a mobile handset application, then the system should contain user interfaces like a keyboard for performing input operations and display unit for providing users the status of various activities in progress. 9 Mandalay Technological University Department of Computer Engineering and Information Technology
  • 10. Elements of an Embedded System10 Mandalay Technological University Department of Computer Engineering and Information Technology
  • 11. 2.1 Core of Embedded Systems  The core of the embedded system falls into any of the following categories: 1. General Purpose and Domain Specific Processors i. Microprocessors ii. Microcontrollers iii. Digital Signal Processors 11 Mandalay Technological University Department of Computer Engineering and Information Technology
  • 12. Cont’d 2. Application Specific Integrated Circuits (ASICs) 3. Programmable Logic Devices (PLDs) 4. Commercial off-the-shelf Components (COTS) 12 Mandalay Technological University Department of Computer Engineering and Information Technology
  • 13. 13  Microcontrollers are designed to perform specific tasks. However, Microprocessors are designed to perform unspecific tasks like developing software, games, website, photo editing, creating documents, etc.  Depending on the input, some processing for microcontroller needs to be done and output is defined. However, the relationship between input and output for microprocessor is not defined.  Since the applications of microcontroller are very specific, they need small resources like RAM, ROM, I/O ports etc. and hence can be embedded on a single chip. Microprocessors need high amount of resources like RAM, ROM, I/O ports etc.  The clock speed of Microprocessor is quite high as compared to the microcontroller. Whereas the microcontrollers operate from a few MHz (from 30 to 50 MHz), today’s microprocessor operate above 1 GHz as they perform complex tasks. Merits, Drawbacks and Application Areas of Microcontrollers and Microprocessors Mandalay Technological University Department of Computer Engineering and Information Technology
  • 14. 14  Microprocessor cannot be used stand alone. They need other peripherals like RAM, ROM, buffer, I/O ports etc and hence a system designed around a microprocessor is quite costly.  Application areas of microcontroller: Mobile phones, CD/DVD players, Washing machines, Cameras, Security alarms, microwave oven, etc.  Application areas of microprocessor: Calculators, Accounting Systems, Games Machine, Complex Industrial Controllers, Data Acquisition Systems, Military applications, Communication systems, etc. Cont’d Mandalay Technological University Department of Computer Engineering and Information Technology
  • 15. 15
  • 16. Digital Signal Processors  DSPs are powerful special purpose 8/16/32 bit microprocessors designed specifically to meet the computational demands and power constraints of today’s embedded audio, video, and communications applications.  Digital signal processors are 2 to 3 times faster than the general purpose microprocessors in signal processing applications.  A typical digital signal processor incorporates the following key units: i. Program Memory : Memory for storing the program required by DSP to process the data. ii. Data Memory : Working memory for storing temporary variables/information and data/signal to be processed. iii. Computational Engine : Performs the signal/math processing , accessing the program from the Program Memory and the data from the Data Memory. iv. I/O Unit : Acts as an interface between the outside world and DSP. It is responsible for capturing signals to be processed and delivering the processed signals. 16 Mandalay Technological University Department of Computer Engineering and Information Technology
  • 17. Cont’d  Application areas : Audio video signal processing, telecommunication and multimedia applications.  DSP employs a large amount of real-time calculations, Sum of products (SOP) calculation, convolution, fast Fourier transform (FFT), discrete Fourier transform (DFT), etc. are some of the operations performed by digital signal processors. 17 Mandalay Technological University Department of Computer Engineering and Information Technology
  • 18. RISC vs CISC Processors/Controllers RISC CISC Lesser number of instructions Greater number of Instructions Instruction pipelining and increased execution speed Generally no instruction pipelining feature Orthogonal instruction set Non-orthogonal instruction set Operations are performed on registers only, the only memory operations are load and store. Operations are performed on registers or memory depending on the instruction. A large number of registers are available. Limited number of general purpose registers. Programmer needs to write more code to execute a task since the instructions are simpler ones. Instructions are like macros in C language. A programmer can achieve the desired functionality with a single instruction which in turn provides the effect of using more simpler single instructions in RISC. 18 Mandalay Technological University Department of Computer Engineering and Information Technology
  • 19. Cont’d19 RISC CISC Single, fixed length instructions Variable length instructions Less silicon usage and pin count More silicon usage since more additional decoder logic is required to implement the complex instruction decoding. With Harvard Architecture Can be Harvard or Von-Neumann Architecture Mandalay Technological University Department of Computer Engineering and Information Technology
  • 20. Big-Endian vs. Little-Endian Processors/Controllers  Endianness specifies the order in which a sequence of bytes are stored in computer memory.  Little-endian is an order in which the “little end”/ the lower-order byte of the data (least significant value in the sequence) is stored in memory at the lowest address. (The little end comes first.)  For example, a 4 byte long integer Byte3, Byte2, Byte1, Byte0 will be stored in the memory as shown below: 20 Mandalay Technological University Department of Computer Engineering and Information Technology
  • 21. Cont’d21 Byte 0 Byte 1 Byte 2 Byte 3 Base Address+0 Base Address+1 Base Address+3 Base Address+2 Byte 0 Byte 1 Byte 2 Byte 3 0x20000 (Base Address) 0x20001 (Base Address+1) 0x20002 (Base Address+2) 0x20003 (Base Address+3) Mandalay Technological University Department of Computer Engineering and Information Technology Example : 90AB12CD (Hexadecimal)
  • 22. Cont’d  Big-endian is an order in which the “big end” / the higher-order byte of the data (most significant value in sequence) is stored in memory at the lowest address. (The big end comes first.)  For example, a 4 byte long integer Byte3, Byte2, Byte1, Byte0 will be stored in the memory as shown below: 22 Mandalay Technological University Department of Computer Engineering and Information Technology
  • 23. Cont’d23 Byte 3 Byte 2 Byte 1 Byte 0 Base Address+0 Base Address+1 Base Address+3 Base Address+2 Byte 3 Byte 2 Byte 1 Byte 0 0x20000 (Base Address) 0x20001 (Base Address+1) 0x20002 (Base Address+2) 0x20003 (Base Address+3) Mandalay Technological University Department of Computer Engineering and Information Technology Example : 90AB12CD (Hexadecimal)
  • 24. Understanding Test Questions II 1. Embedded hardware/software systems are basically designed to (a) Regulate a physical variable (b) Change the state of some devices (c) Measure/Read the state of a variable/device (d) Any/All of these 2. Little Endian processors (a) Store the lower-order byte of the data at the lowest address and the higher-order byte of the data at the highest address of memory (b) Store the higher-order byte of the data at the lowest address and the lower-order byte of the data at the highest address of memory (c) Store both higher order and lower order byte of the data at the same address of memory (d) None of these 3. The instruction set of RISC processor is (a) Simple and lesser in number (b) Complex and lesser in number (c) Simple and larger in number (d) Complex and larger in number 24 Mandalay Technological University Department of Computer Engineering and Information Technology
  • 25. Cont’d 4. Which of the following is true about CISC processors? (a) The instruction set is non-orthogonal (b) The number of general purpose registers is limited. (c) Instructions are like macros in C language (d) Variable length instructions (e) All of these (f) None of these 5. Which of the following processor architecture supports easier instruction pipelining? (a) Harvard (b) Von Neumann (c ) Both of them (d) None of these 6. An integer variable with value 255 is stored in memory location at 0x8000. The processor word length is 8 bits and the processor is a big endian processor. The size of integer is considered as 4 bytes in the system. What is the value held by the memory location 0x8000? (a) 0 x FF (b) 0 x 00 (c ) 0 x 01 (d) None of these 25 Mandalay Technological University Department of Computer Engineering and Information Technology
  • 26. Reviewed Questions II 1. Explain the components of a typical embedded system in detail. 2. Which are the components used as the core of an embedded system? Explain the merits, drawbacks, if any, and the applications/domains where they are commonly used. 3. What is the difference between microprocessor and microcontroller? Explain the role of microprocessors and controllers in embedded system design? 4. What is Digital Signal Processor (DSP)? Explain the role of DSP in embedded system design? 5. What is the difference between RISC and CISC processors? Give an example for each. 6. What is the difference between big-endian and little-endian processors? Give an example of each. 26 Mandalay Technological University Department of Computer Engineering and Information Technology
  • 27. Assignment II What are the components used as the core of an embedded system? Among them, explain the merits, drawbacks, if any, and the applications/ domains of Application Specific Integrated Circuits (ASICs), Programmable Logic Devices and Commercial Off-the-Shelf Components (COTS) where they are commonly used. Remark: for all groups Deadline : 26.12.17 (Coming Tuesday) 27 Mandalay Technological University Department of Computer Engineering and Information Technology
  • 28.  Only Original Owner has full rights reserved for copied images.  This PPT is only for fair academic use.  Coming soon for chapter 2 (2nd portion) 28 Mandalay Technological University Department of Computer Engineering and Information Technology
  • 29. 29

Hinweis der Redaktion

  1. Understand the different types of core i.e. processor Understand the difference between microprocessor & microcontroller Understand the classification of processors based on Bus Architecture, Instruction set Architecture, and Endiannes. Have an overview of processors from most simple and cheap to most expensive and complex, powerful Understand what are sensors and actuators, communication interfaces
  2. * Microprocessor (e.g Intel 8085) * Microcontroller (e.g Atmega328) * Field Programmable Gate Array (FPGA) device (e.g. Xilinx Spartan) * Digital Signal Processor (DSP) (e.g. Blackfin Processors from Analog Devices) *Application Specific Integrated Circuit (ASIC)/ Application Specific Standard Product (ASSP) (e.g ADE7760 Single Phase Energy Metreing IC from) Analog Devices for energy metering applications)
  3. To know sensors and actuators ………
  4. No. 1 Explain the components of a typical embedded system in detail.
  5. SoC (a System on Chip) Memory ! I/p ports - (System Core ) --- o/p ports ! Other devices
  6. Which are the components used as the core of an embedded system? Explain the merits, drawbacks, if any, and the applications/domains where they are commonly used.
  7. Specific means applications where the relationship of input and output is defined. Almost 80% of the embedded systems are processor/ controller based.
  8. Specific means applications where the relationship of input and output is defined.
  9. Microprocessor is a silicon chip representing a central processing unit (CPU), which is capable of performing arithmetic as well as Logical operations according to a pre-defined set of instructions. A microcontroller is a highly integrated chip that contains a CPU, scratchpad RAM, special and general purpose register arrays, on chip ROM/ FLASH memory for program storage, timer and interrupt control units and dedicated I/O ports. 2. Microprocessor >>Limited power saving options compared to microcontrollers Microcontroller >> Includes lot of power saving features. _ Harvard vs. Von-Neumann refers to the processor architecture design
  10. (What’s inside a DSP?) The goal of DSPs is usually to measure, filter or compress continuous real-world analog signals. Most general-purpose microprocessors can also execute digital signal processing algorithms successfully, but dedicated DSPs usually have better power efficiency thus they are more suitable in portable devices such as mobile phones because of power consumption constraints. DSPs often use special memory architectures that are able to fetch multiple data or instructions at the same time. What is Digital Signal Processor (DSP)? Explain the role of DSP in embedded system design?
  11. - DSP take real-world signals like voice, audio, video, temperature, pressure, or position that have been digitized and then mathematically manipulate them.
  12. What is CISC? A complex instruction set computer (CISC) is a computer where single instructions can execute several low-level operations (such as a load from memory, an arithmetic operation, and a memory store) or are capable of multi-step operations or addressing modes within single instructions, as its name suggest “COMPLEX INSTUCTION SET”. What is RISC? A reduced instruction set computer (RISC) is a computer which only use simple instructions that can be divide into multiple instructions which perform low-level operation within single clock cycle, as its name suggest “REDUCED INSTRUCTION SET”. Orthogonal (statistically independent) RISC (Reduced Instruction Set Computing) CISC (Complex Instruction Set Computing) AVR is a family of microcontrollers developed by Atmel beginning in 1996. These are modified Harvard architecture 8-bit RISC single-chip microcontrollers. AVR was one of the first microcontroller families to use on0chip flash memory for program storage, as opposed to one-time programmable ROM, EPROM, or EEPROM used by other microcontrollers at the time. No. 3 Orthogonal ( Allows each instruction to operate on any register and use any addressing mode) Non-orthogonal (All instructions are not allowed to operate on any register and use any addressing mode. It is instruction-specific)
  13. What is the difference between RISC and CISC processors ? Give an example for each.
  14. Big endian and little endian are terms that describe the order in which a sequences of bytes are stored in computer memory. Big endian is an order in which the “big-end” (most significant value in the sequence) is stored first (at the lowest storage address). Little endian is an order in which the “little end” (least significant value in the sequence ) is stored first. For example, in a big endian computer, the two bytes required for the hexadecimal number 4F52 would be stored as 4F52 in storage (if 4F is stored at storage address 1000, for example, 52 will be at address 1001). In a little endian system, it would be stored as 524F (52 at address 1000, 4F at 1001).
  15. 90AB12CD (Hexadecimal) In little endian, you store the least significant byte in the smallest address. It would be stored as CD12AB90 (CD at address 1000, 12 at 1001)
  16. 90AB12CD (Hexadecimal) In big endian, you store the most significant byte in the smallest address.