SlideShare a Scribd company logo
1 of 43
Download to read offline
Embedded for Mechatronic systems
Unit 2-Processor and Memory Organization
Baskaran s
Dr.Mahalingam College of Engg & Tech
2019
Baskaran s Embedded for Mechatronic systems
Bus Organization
Bus
Bus is a group of conducting wires which carries information, all
the peripherals are connected to microprocessor through Bus.
Types:
Address bus
Data bus
Control bus
Baskaran s Embedded for Mechatronic systems
Bus Organization
Functions of Buses in Computers
1. Data sharing - All types of buses found in a computer transfer
data between the computer peripherals connected to it. The
buses transfer or send data either in the serial or parallel method
of data transfer. This allows for the exchange of 1, 2, 4 or even
8 bytes of data at a time. (A byte is a group of 8 bits). Buses
are classified depending on how many bits they can move at
the same time, which means that we have 8-bit, 16-bit, 32-bit or
even 64-bit buses.
2. Addressing - A bus has address lines, which match those of
the processor. This allows data to be sent to or from specific
memory locations.
Baskaran s Embedded for Mechatronic systems
Bus Organization
Functions of Buses in Computers
3. Power - A bus supplies power to various peripherals con-
nected to it.
4. Timing - The bus provides a system clock signal to synchro-
nize the peripherals attached to it with the rest of the system.
Baskaran s Embedded for Mechatronic systems
Bus Organization
Figure: Types of Buses
Baskaran s Embedded for Mechatronic systems
Types of buses
Address bus
It is a group of conducting wires which carries address
only.Address bus is unidirectional because data flow in one di-
rection, from microprocessor to memory or from microprocessor
to Input/output devices
Baskaran s Embedded for Mechatronic systems
Types of buses
Data bus
It is a group of conducting wires which carries Data only.Data
bus is bidirectional because data flow in both directions, from
microprocessor to memory or Input/Output devices and from
memory or Input/Output devices to microprocessor
Baskaran s Embedded for Mechatronic systems
Types of buses
Control bus
It is a group of conducting wires, which is used to generate
timing and control signals to control all the associated
peripherals, microprocessor uses control bus to process data,
that is what to do with selected memory location. Some control
signals are:
1.Memory read
2.Memory write
3.I/O read
4.I/O Write
Baskaran s Embedded for Mechatronic systems
Embedded Memory Devices
Memory
A memory is just like a human brain. It is used to store
data and instruction
The memory is divided into large number of small parts.
Each part is called a cell. Each location or cell has a
unique address which varies from zero to memory size
minus one.
For example if computer has 64k words, then this memory
unit has 64 * 1024 = 65536 memory location. The address
of these locations varies from 0 to 65535.
Baskaran s Embedded for Mechatronic systems
Memory Types
Memory is primarily of two types;
Internal Memory cache memory and primary/main
memory
External Memory magnetic disk / optical disk etc.
Apart from that
Figure: Common memory types in embedded systems
Baskaran s Embedded for Mechatronic systems
Types of RAM
SRAM Vs DRAM
The RAM family includes two important memory devices:
static RAM (SRAM) and dynamic RAM (DRAM). The pri-
mary difference between them is the lifetime of the data
they store. SRAM retains its contents as long as electrical
power is applied to the chip. If the power is turned off or lost
temporarily, its contents will be lost forever. DRAM, on the
other hand, has an extremely short data lifetime-typically
about four milliseconds. This is true even when power is
applied constantly.
Generally, SRAM is used only where access speed is ex-
tremely important. A lower cost-per-byte makes DRAM at-
tractive whenever large amounts of RAM are required. For
smaller data SRAM (a few kilobytes) is good choice and for
handling larger data DRAM(Megabytes) is preferred.
Baskaran s Embedded for Mechatronic systems
Types of ROM
PROM
PROM is read-only memory that can be modified only once
by a user.
The user buys a blank PROM and enters the desired con-
tents using a PROM program.
Inside the PROM chip, there are small fuses which are burnt
open during programming. It can be programmed only once
and is not erasable
Baskaran s Embedded for Mechatronic systems
Types of ROM
EPROM
EPROM can be erased by exposing it to ultra-violet light for
a duration of up to 40 minutes. Usually, an EPROM eraser
achieves this function.
During programming, an electrical charge is trapped in an
insulated gate region.
The charge is retained for more than 10 years because the
charge has no leakage path.
For erasing this charge, ultra-violet light is passed through
a quartz crystal window (lid).
Baskaran s Embedded for Mechatronic systems
Types of ROM
MROM
The very first ROMs were hard-wired devices that contained a
pre-programmed set of data or instructions. These kind of ROMs
are known as masked ROMs, which are inexpensive
Baskaran s Embedded for Mechatronic systems
Types of ROM
EEPROM
EEPROM (pronounce as ”E-E-PROM”) stands for Electri-
cally Erasable Programmable Read-Only Memory.
It is a non-volatile ROM chip which used for storing a small
amount of data in computers or some other electronic de-
vices.
Through EEPROM, an individual byte of data can erase and
reprogrammed entirety, not selectively by the electrical volt-
age.
Baskaran s Embedded for Mechatronic systems
Types of ROM
Flash
Flash memory, also known as flash storage, is a type of
nonvolatile memory.
Flash memory is widely used for storage and data trans-
fer in consumer devices, enterprise systems and industrial
applications.
Flash memory retains data for an extended period of time,
regardless of whether a flash-equipped device is powered
on or off.
Flash memory is a type of electrically erasable pro-
grammable read-only memory (EEPROM)
Baskaran s Embedded for Mechatronic systems
Types of ROM
NVRAM
NVRAM is an acronym for Non-Volatile Random Access
Memory.
NVRAM is a type of Random Access Memory (RAM) that
retains its information when power is turned off.
The NVRAM is a small 24 pin DIP (Dual Inline Package)
integrated circuit chip and is thus able to obtain the power
needed to keep it running from the CMOS battery installed
in your motherboard.
It keeps track of various system parameters such as serial
number, Ethernet MAC (Media Access Control) address,
HOSTID, date of manufacture, etc.
NVRAM is therefore a type of non-volatile memory that of-
fers random access.
Baskaran s Embedded for Mechatronic systems
RISC Vs CISC
RISC
RISC: Reduce the cycles per instruction at the cost of the
number of instructions per program
Simpler instruction, hence simple instruction decoding.
Instruction come under size of one word.
Instruction take single clock cycle to get executed. More
number of general purpose register.
Simple Addressing Modes.
Less Data types.
Pipeling can be achieved
Baskaran s Embedded for Mechatronic systems
CISC
CISC
Complex instruction, hence complex instruction decoding.
Instruction are larger than one word size.
Instruction may take more than single clock cycle to get
executed.
Less number of general purpose register as operation get
performed in memory itself.
Complex Addressing Modes.
More Data types.
Baskaran s Embedded for Mechatronic systems
RISC Vs CISC
Baskaran s Embedded for Mechatronic systems
8051 Architecture
Baskaran s Embedded for Mechatronic systems
8051
8051 microcontroller is 8 bit microcontroller designed by In-
tel in 1981
It is built with 40 pins DIP (dual inline package).
It has 4kb of ROM storage and 128 bytes of RAM storage,
2 16 bit timers
It consists of are four parallel 8 bit ports, which are pro-
grammable as well as addressable as per the requirement
An on-chip crystal oscillator is integrated in the microcon-
troller having crystal frequency of 12 MHz
Baskaran s Embedded for Mechatronic systems
Interrupts
As its name suggests, Interrupt is a subroutine call that
interrupts of the microcontrollers main operations or work
and causes it to execute any other program
The feature of Interrupt is very useful as it helps in case of
emergency operations
An Interrupts gives us a mechanism to put on hold the
ongoing operations, execute a subroutine and then again
resumes to another type of operations
Baskaran s Embedded for Mechatronic systems
Oscillator
Oscillator
Microcontroller requires Clock pulses for its operation. An elec-
tronic circuit that is used to generate an electrical signal of pre-
cise frequency by utilizing the vibrating crystal’s mechanical res-
onance made of piezoelectric material. There are different types
of piezoelectric resonators, but typically, quartz crystal is used in
these types of oscillators. Hence, these oscillator electronic cir-
cuits are named as crystal oscillators.
Baskaran s Embedded for Mechatronic systems
Oscillator
Baskaran s Embedded for Mechatronic systems
Timer
Timer
The timer is an important application in Embedded sys-
tems,it maintains the timing of an operation in sync with a
system clock or an external clock.
The timer has so many applications such as measure time
generating delays, they can also be used for generating
baud rates
TIMER/COUNTER is a software designed to count the time
interval between events
Timer register is incremented for every machine cycle,
whereas counter register gets incremented by measuring
pulses
Baskaran s Embedded for Mechatronic systems
Cycles
Baskaran s Embedded for Mechatronic systems
Clock cycle
Clock cycle
The speed of a computer processor, or CPU, is determined
by the clock cycle,
It is the amount of time between two pulses of an oscillator
The higher number of pulses per second, the faster the
computer processor will be able to process information
The clock speed is measured in Hz, typically either
megahertz (MHz) or gigahertz (GHz). For example, a
4GHz processor performs 4,000,000,000 clock cycles per
second.
Baskaran s Embedded for Mechatronic systems
Machine cycle
Machine cycle
The steps performed by the computer processor for each ma-
chine language instruction received. The machine cycle is a 4
process cycle that includes reading and interpreting the machine
language, executing the code and then storing that code.
Baskaran s Embedded for Mechatronic systems
Instruction cycle
Instruction cycle
1.Read an Instruction
2.Decode the instruction
3.Find the address of operand
4.retrieve an operand
5.Perform desired operation
6.find the address of destination
7.store the result into the destination
Baskaran s Embedded for Mechatronic systems
Opcode and operand
Baskaran s Embedded for Mechatronic systems
Opcode and operand
Opcode
Opcode is the first part of an instruction which tells the
computer what function to perform. Every computer has an
operation code or opcode for each of its functions.
Operand
Operand is the second part of the instruction, which tells the
computer where to find or store the data or instructions
Baskaran s Embedded for Mechatronic systems
ARM Microcontroller Architecture
Baskaran s Embedded for Mechatronic systems
PIC Microcontroller Architecture
Baskaran s Embedded for Mechatronic systems
Memory organization
Baskaran s Embedded for Mechatronic systems
Memory organization
Baskaran s Embedded for Mechatronic systems
DMA
Direct memory access
DMA stands for ”Direct Memory Access” and is a method of
transferring data from the computer’s RAM to another part
of the computer without processing it using the CPU.
In order for devices to use direct memory access, they must
be assigned to a DMA channel. Each type of port on a
computer has a set of DMA channels that can be assigned
to each connected device.
For example, a sound card may need to access data stored
in the computer’s RAM, but since it can process the data
itself, it may use DMA to bypass the CPU. Video cards that
support DMA can also access the system memory and pro-
cess graphics without needing the CPU.
Baskaran s Embedded for Mechatronic systems
DMA
Baskaran s Embedded for Mechatronic systems
Co processor
Co processor
A coprocessor is a computer processor used to supplement
the functions of the primary processor (the CPU). Operations
performed by the coprocessor may be floating point arithmetic,
graphics, signal processing, string processing, cryptography or
I/O interfacing with peripheral devices. By offloading processor-
intensive tasks from the main processor, coprocessors can ac-
celerate system performance. Coprocessors allow a line of com-
puters to be customized, so that customers who do not need the
extra performance do not need to pay for it.
Baskaran s Embedded for Mechatronic systems
Hardware acceleration
Hardware acceleration
Hardware acceleration is a technique in which a computer’s
hardware is forced to perform faster than the standard
computing architecture of a normal central processing unit
(CPU). It is used with heavy computing tasks and opera-
tions, like graphics or video processing.
Hardware acceleration is forced and controlled by the pro-
gram or software that requests extra computing power. For
example, Mozilla Firefox supports and can initiate hardware
acceleration for websites that are media-rich or have high
definition (HD) graphics.
A hardware accelerator is a device that implements hard-
ware acceleration and includes modern graphic and video
cards.
Baskaran s Embedded for Mechatronic systems
Pipe lining
Pipe lining
pipeline is a set of data processing elements connected in
series, where the output of one element is the input of the
next one. The elements of a pipeline are often executed in
parallel or in time-sliced fashion. Some amount of buffer
storage is often inserted between elements.
Types Instruction pipe-lining, Arithmetic pipe-lining
Baskaran s Embedded for Mechatronic systems
Positioning figure demo
Baskaran s Embedded for Mechatronic systems
minipage
pipeline is a set of data process-
ing elements connected in se-
ries, where the output of one el-
ement is the input of the next
one. The elements of a pipeline
are often executed in parallel or
in time-sliced fashion. Some
amount of buffer storage is of-
ten inserted between elements
Baskaran s Embedded for Mechatronic systems

More Related Content

What's hot

Embedded system notes
Embedded system notesEmbedded system notes
Embedded system notes
TARUN KUMAR
 
Embedded systems in brief
Embedded systems   in briefEmbedded systems   in brief
Embedded systems in brief
krnathan
 
Processor architecture
Processor architectureProcessor architecture
Processor architecture
Muuluu
 

What's hot (20)

Embedded system notes
Embedded system notesEmbedded system notes
Embedded system notes
 
E.s (2)
E.s (2)E.s (2)
E.s (2)
 
Introduction to Embedded Systems
Introduction to Embedded SystemsIntroduction to Embedded Systems
Introduction to Embedded Systems
 
EMBEDDED SYSTEMS overview
EMBEDDED SYSTEMS overviewEMBEDDED SYSTEMS overview
EMBEDDED SYSTEMS overview
 
Embedded Platform Architecture - I
Embedded Platform Architecture - IEmbedded Platform Architecture - I
Embedded Platform Architecture - I
 
Input-Output Modules
Input-Output ModulesInput-Output Modules
Input-Output Modules
 
Embedded systems basics
Embedded systems basicsEmbedded systems basics
Embedded systems basics
 
Embedded systems in brief
Embedded systems   in briefEmbedded systems   in brief
Embedded systems in brief
 
Processor architecture
Processor architectureProcessor architecture
Processor architecture
 
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
 
Basics of Embedded System
Basics of Embedded System Basics of Embedded System
Basics of Embedded System
 
Embedded systems
Embedded systemsEmbedded systems
Embedded systems
 
Embedded systems
Embedded systems Embedded systems
Embedded systems
 
Computer organization-and-architecture-questions-and-answers
Computer organization-and-architecture-questions-and-answersComputer organization-and-architecture-questions-and-answers
Computer organization-and-architecture-questions-and-answers
 
Embedded Systems : introduction
Embedded Systems : introductionEmbedded Systems : introduction
Embedded Systems : introduction
 
Introduction to embedded systems
Introduction  to embedded systemsIntroduction  to embedded systems
Introduction to embedded systems
 
Embedded System
Embedded System Embedded System
Embedded System
 
UNIT-I-RTOS and Concepts
UNIT-I-RTOS and ConceptsUNIT-I-RTOS and Concepts
UNIT-I-RTOS and Concepts
 
2. block diagram and components of embedded system
2. block diagram and components of embedded system2. block diagram and components of embedded system
2. block diagram and components of embedded system
 
Introduction to Embedded System I : Chapter 2 (3rd portion)
Introduction to Embedded System I : Chapter 2 (3rd portion)Introduction to Embedded System I : Chapter 2 (3rd portion)
Introduction to Embedded System I : Chapter 2 (3rd portion)
 

Similar to Embedded systems unit2

I. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.pptI. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.ppt
HAriesOa1
 
11. Computer Systems Hardware 1
11. Computer Systems   Hardware 111. Computer Systems   Hardware 1
11. Computer Systems Hardware 1
New Era University
 
Project report on embedded system using 8051 microcontroller
Project  report on embedded system using 8051 microcontrollerProject  report on embedded system using 8051 microcontroller
Project report on embedded system using 8051 microcontroller
Vandna Sambyal
 
301378156 design-of-sram-in-verilog
301378156 design-of-sram-in-verilog301378156 design-of-sram-in-verilog
301378156 design-of-sram-in-verilog
Srinivas Naidu
 

Similar to Embedded systems unit2 (20)

I. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.pptI. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.ppt
 
4CS3-MPI-Unit-1.pptx
4CS3-MPI-Unit-1.pptx4CS3-MPI-Unit-1.pptx
4CS3-MPI-Unit-1.pptx
 
Co notes
Co notesCo notes
Co notes
 
MICROPROCESSOR,BASICS AND MEMORY CONCEPT
MICROPROCESSOR,BASICS AND MEMORY CONCEPTMICROPROCESSOR,BASICS AND MEMORY CONCEPT
MICROPROCESSOR,BASICS AND MEMORY CONCEPT
 
Electro -Mechanical components/devices
Electro -Mechanical components/devices Electro -Mechanical components/devices
Electro -Mechanical components/devices
 
Microprocessor note
Microprocessor noteMicroprocessor note
Microprocessor note
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentation
 
Introduction to embedded System.pptx
Introduction to embedded System.pptxIntroduction to embedded System.pptx
Introduction to embedded System.pptx
 
11. Computer Systems Hardware 1
11. Computer Systems   Hardware 111. Computer Systems   Hardware 1
11. Computer Systems Hardware 1
 
Benefits of Micro Controller.pdf
Benefits of Micro Controller.pdfBenefits of Micro Controller.pdf
Benefits of Micro Controller.pdf
 
ARM Processor architecture
ARM Processor  architectureARM Processor  architecture
ARM Processor architecture
 
LECT 2.pptx
LECT 2.pptxLECT 2.pptx
LECT 2.pptx
 
The 8051 microcontroler based embedded systems
The 8051 microcontroler based embedded systemsThe 8051 microcontroler based embedded systems
The 8051 microcontroler based embedded systems
 
Project report on embedded system using 8051 microcontroller
Project  report on embedded system using 8051 microcontrollerProject  report on embedded system using 8051 microcontroller
Project report on embedded system using 8051 microcontroller
 
Mechatronics ME8791
Mechatronics ME8791 Mechatronics ME8791
Mechatronics ME8791
 
3.TechieNest microcontrollers
3.TechieNest  microcontrollers3.TechieNest  microcontrollers
3.TechieNest microcontrollers
 
Wireless energy meter monitoring with automated tariff calculation
Wireless energy meter monitoring with automated tariff calculationWireless energy meter monitoring with automated tariff calculation
Wireless energy meter monitoring with automated tariff calculation
 
Memories in digital electronics
Memories in digital electronicsMemories in digital electronics
Memories in digital electronics
 
Module-2 Instruction Set Cpus.pdf
Module-2 Instruction Set Cpus.pdfModule-2 Instruction Set Cpus.pdf
Module-2 Instruction Set Cpus.pdf
 
301378156 design-of-sram-in-verilog
301378156 design-of-sram-in-verilog301378156 design-of-sram-in-verilog
301378156 design-of-sram-in-verilog
 

More from baskaransece (8)

Design of Machine Elements 2 mark Question and Answers
Design of Machine Elements 2  mark Question and AnswersDesign of Machine Elements 2  mark Question and Answers
Design of Machine Elements 2 mark Question and Answers
 
Projection of Lines Engineering drawing
Projection of Lines Engineering drawingProjection of Lines Engineering drawing
Projection of Lines Engineering drawing
 
Mechanical objective questions
Mechanical objective questionsMechanical objective questions
Mechanical objective questions
 
GLOBAL ISSUES
GLOBAL ISSUESGLOBAL ISSUES
GLOBAL ISSUES
 
Engineering ethics
Engineering ethicsEngineering ethics
Engineering ethics
 
Basics of robotics
Basics of roboticsBasics of robotics
Basics of robotics
 
Staircase (3)
Staircase (3)Staircase (3)
Staircase (3)
 
Production cost Estimation
Production cost EstimationProduction cost Estimation
Production cost Estimation
 

Recently uploaded

Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
Kamal Acharya
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 

Recently uploaded (20)

A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
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
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 

Embedded systems unit2

  • 1. Embedded for Mechatronic systems Unit 2-Processor and Memory Organization Baskaran s Dr.Mahalingam College of Engg & Tech 2019 Baskaran s Embedded for Mechatronic systems
  • 2. Bus Organization Bus Bus is a group of conducting wires which carries information, all the peripherals are connected to microprocessor through Bus. Types: Address bus Data bus Control bus Baskaran s Embedded for Mechatronic systems
  • 3. Bus Organization Functions of Buses in Computers 1. Data sharing - All types of buses found in a computer transfer data between the computer peripherals connected to it. The buses transfer or send data either in the serial or parallel method of data transfer. This allows for the exchange of 1, 2, 4 or even 8 bytes of data at a time. (A byte is a group of 8 bits). Buses are classified depending on how many bits they can move at the same time, which means that we have 8-bit, 16-bit, 32-bit or even 64-bit buses. 2. Addressing - A bus has address lines, which match those of the processor. This allows data to be sent to or from specific memory locations. Baskaran s Embedded for Mechatronic systems
  • 4. Bus Organization Functions of Buses in Computers 3. Power - A bus supplies power to various peripherals con- nected to it. 4. Timing - The bus provides a system clock signal to synchro- nize the peripherals attached to it with the rest of the system. Baskaran s Embedded for Mechatronic systems
  • 5. Bus Organization Figure: Types of Buses Baskaran s Embedded for Mechatronic systems
  • 6. Types of buses Address bus It is a group of conducting wires which carries address only.Address bus is unidirectional because data flow in one di- rection, from microprocessor to memory or from microprocessor to Input/output devices Baskaran s Embedded for Mechatronic systems
  • 7. Types of buses Data bus It is a group of conducting wires which carries Data only.Data bus is bidirectional because data flow in both directions, from microprocessor to memory or Input/Output devices and from memory or Input/Output devices to microprocessor Baskaran s Embedded for Mechatronic systems
  • 8. Types of buses Control bus It is a group of conducting wires, which is used to generate timing and control signals to control all the associated peripherals, microprocessor uses control bus to process data, that is what to do with selected memory location. Some control signals are: 1.Memory read 2.Memory write 3.I/O read 4.I/O Write Baskaran s Embedded for Mechatronic systems
  • 9. Embedded Memory Devices Memory A memory is just like a human brain. It is used to store data and instruction The memory is divided into large number of small parts. Each part is called a cell. Each location or cell has a unique address which varies from zero to memory size minus one. For example if computer has 64k words, then this memory unit has 64 * 1024 = 65536 memory location. The address of these locations varies from 0 to 65535. Baskaran s Embedded for Mechatronic systems
  • 10. Memory Types Memory is primarily of two types; Internal Memory cache memory and primary/main memory External Memory magnetic disk / optical disk etc. Apart from that Figure: Common memory types in embedded systems Baskaran s Embedded for Mechatronic systems
  • 11. Types of RAM SRAM Vs DRAM The RAM family includes two important memory devices: static RAM (SRAM) and dynamic RAM (DRAM). The pri- mary difference between them is the lifetime of the data they store. SRAM retains its contents as long as electrical power is applied to the chip. If the power is turned off or lost temporarily, its contents will be lost forever. DRAM, on the other hand, has an extremely short data lifetime-typically about four milliseconds. This is true even when power is applied constantly. Generally, SRAM is used only where access speed is ex- tremely important. A lower cost-per-byte makes DRAM at- tractive whenever large amounts of RAM are required. For smaller data SRAM (a few kilobytes) is good choice and for handling larger data DRAM(Megabytes) is preferred. Baskaran s Embedded for Mechatronic systems
  • 12. Types of ROM PROM PROM is read-only memory that can be modified only once by a user. The user buys a blank PROM and enters the desired con- tents using a PROM program. Inside the PROM chip, there are small fuses which are burnt open during programming. It can be programmed only once and is not erasable Baskaran s Embedded for Mechatronic systems
  • 13. Types of ROM EPROM EPROM can be erased by exposing it to ultra-violet light for a duration of up to 40 minutes. Usually, an EPROM eraser achieves this function. During programming, an electrical charge is trapped in an insulated gate region. The charge is retained for more than 10 years because the charge has no leakage path. For erasing this charge, ultra-violet light is passed through a quartz crystal window (lid). Baskaran s Embedded for Mechatronic systems
  • 14. Types of ROM MROM The very first ROMs were hard-wired devices that contained a pre-programmed set of data or instructions. These kind of ROMs are known as masked ROMs, which are inexpensive Baskaran s Embedded for Mechatronic systems
  • 15. Types of ROM EEPROM EEPROM (pronounce as ”E-E-PROM”) stands for Electri- cally Erasable Programmable Read-Only Memory. It is a non-volatile ROM chip which used for storing a small amount of data in computers or some other electronic de- vices. Through EEPROM, an individual byte of data can erase and reprogrammed entirety, not selectively by the electrical volt- age. Baskaran s Embedded for Mechatronic systems
  • 16. Types of ROM Flash Flash memory, also known as flash storage, is a type of nonvolatile memory. Flash memory is widely used for storage and data trans- fer in consumer devices, enterprise systems and industrial applications. Flash memory retains data for an extended period of time, regardless of whether a flash-equipped device is powered on or off. Flash memory is a type of electrically erasable pro- grammable read-only memory (EEPROM) Baskaran s Embedded for Mechatronic systems
  • 17. Types of ROM NVRAM NVRAM is an acronym for Non-Volatile Random Access Memory. NVRAM is a type of Random Access Memory (RAM) that retains its information when power is turned off. The NVRAM is a small 24 pin DIP (Dual Inline Package) integrated circuit chip and is thus able to obtain the power needed to keep it running from the CMOS battery installed in your motherboard. It keeps track of various system parameters such as serial number, Ethernet MAC (Media Access Control) address, HOSTID, date of manufacture, etc. NVRAM is therefore a type of non-volatile memory that of- fers random access. Baskaran s Embedded for Mechatronic systems
  • 18. RISC Vs CISC RISC RISC: Reduce the cycles per instruction at the cost of the number of instructions per program Simpler instruction, hence simple instruction decoding. Instruction come under size of one word. Instruction take single clock cycle to get executed. More number of general purpose register. Simple Addressing Modes. Less Data types. Pipeling can be achieved Baskaran s Embedded for Mechatronic systems
  • 19. CISC CISC Complex instruction, hence complex instruction decoding. Instruction are larger than one word size. Instruction may take more than single clock cycle to get executed. Less number of general purpose register as operation get performed in memory itself. Complex Addressing Modes. More Data types. Baskaran s Embedded for Mechatronic systems
  • 20. RISC Vs CISC Baskaran s Embedded for Mechatronic systems
  • 21. 8051 Architecture Baskaran s Embedded for Mechatronic systems
  • 22. 8051 8051 microcontroller is 8 bit microcontroller designed by In- tel in 1981 It is built with 40 pins DIP (dual inline package). It has 4kb of ROM storage and 128 bytes of RAM storage, 2 16 bit timers It consists of are four parallel 8 bit ports, which are pro- grammable as well as addressable as per the requirement An on-chip crystal oscillator is integrated in the microcon- troller having crystal frequency of 12 MHz Baskaran s Embedded for Mechatronic systems
  • 23. Interrupts As its name suggests, Interrupt is a subroutine call that interrupts of the microcontrollers main operations or work and causes it to execute any other program The feature of Interrupt is very useful as it helps in case of emergency operations An Interrupts gives us a mechanism to put on hold the ongoing operations, execute a subroutine and then again resumes to another type of operations Baskaran s Embedded for Mechatronic systems
  • 24. Oscillator Oscillator Microcontroller requires Clock pulses for its operation. An elec- tronic circuit that is used to generate an electrical signal of pre- cise frequency by utilizing the vibrating crystal’s mechanical res- onance made of piezoelectric material. There are different types of piezoelectric resonators, but typically, quartz crystal is used in these types of oscillators. Hence, these oscillator electronic cir- cuits are named as crystal oscillators. Baskaran s Embedded for Mechatronic systems
  • 25. Oscillator Baskaran s Embedded for Mechatronic systems
  • 26. Timer Timer The timer is an important application in Embedded sys- tems,it maintains the timing of an operation in sync with a system clock or an external clock. The timer has so many applications such as measure time generating delays, they can also be used for generating baud rates TIMER/COUNTER is a software designed to count the time interval between events Timer register is incremented for every machine cycle, whereas counter register gets incremented by measuring pulses Baskaran s Embedded for Mechatronic systems
  • 27. Cycles Baskaran s Embedded for Mechatronic systems
  • 28. Clock cycle Clock cycle The speed of a computer processor, or CPU, is determined by the clock cycle, It is the amount of time between two pulses of an oscillator The higher number of pulses per second, the faster the computer processor will be able to process information The clock speed is measured in Hz, typically either megahertz (MHz) or gigahertz (GHz). For example, a 4GHz processor performs 4,000,000,000 clock cycles per second. Baskaran s Embedded for Mechatronic systems
  • 29. Machine cycle Machine cycle The steps performed by the computer processor for each ma- chine language instruction received. The machine cycle is a 4 process cycle that includes reading and interpreting the machine language, executing the code and then storing that code. Baskaran s Embedded for Mechatronic systems
  • 30. Instruction cycle Instruction cycle 1.Read an Instruction 2.Decode the instruction 3.Find the address of operand 4.retrieve an operand 5.Perform desired operation 6.find the address of destination 7.store the result into the destination Baskaran s Embedded for Mechatronic systems
  • 31. Opcode and operand Baskaran s Embedded for Mechatronic systems
  • 32. Opcode and operand Opcode Opcode is the first part of an instruction which tells the computer what function to perform. Every computer has an operation code or opcode for each of its functions. Operand Operand is the second part of the instruction, which tells the computer where to find or store the data or instructions Baskaran s Embedded for Mechatronic systems
  • 33. ARM Microcontroller Architecture Baskaran s Embedded for Mechatronic systems
  • 34. PIC Microcontroller Architecture Baskaran s Embedded for Mechatronic systems
  • 35. Memory organization Baskaran s Embedded for Mechatronic systems
  • 36. Memory organization Baskaran s Embedded for Mechatronic systems
  • 37. DMA Direct memory access DMA stands for ”Direct Memory Access” and is a method of transferring data from the computer’s RAM to another part of the computer without processing it using the CPU. In order for devices to use direct memory access, they must be assigned to a DMA channel. Each type of port on a computer has a set of DMA channels that can be assigned to each connected device. For example, a sound card may need to access data stored in the computer’s RAM, but since it can process the data itself, it may use DMA to bypass the CPU. Video cards that support DMA can also access the system memory and pro- cess graphics without needing the CPU. Baskaran s Embedded for Mechatronic systems
  • 38. DMA Baskaran s Embedded for Mechatronic systems
  • 39. Co processor Co processor A coprocessor is a computer processor used to supplement the functions of the primary processor (the CPU). Operations performed by the coprocessor may be floating point arithmetic, graphics, signal processing, string processing, cryptography or I/O interfacing with peripheral devices. By offloading processor- intensive tasks from the main processor, coprocessors can ac- celerate system performance. Coprocessors allow a line of com- puters to be customized, so that customers who do not need the extra performance do not need to pay for it. Baskaran s Embedded for Mechatronic systems
  • 40. Hardware acceleration Hardware acceleration Hardware acceleration is a technique in which a computer’s hardware is forced to perform faster than the standard computing architecture of a normal central processing unit (CPU). It is used with heavy computing tasks and opera- tions, like graphics or video processing. Hardware acceleration is forced and controlled by the pro- gram or software that requests extra computing power. For example, Mozilla Firefox supports and can initiate hardware acceleration for websites that are media-rich or have high definition (HD) graphics. A hardware accelerator is a device that implements hard- ware acceleration and includes modern graphic and video cards. Baskaran s Embedded for Mechatronic systems
  • 41. Pipe lining Pipe lining pipeline is a set of data processing elements connected in series, where the output of one element is the input of the next one. The elements of a pipeline are often executed in parallel or in time-sliced fashion. Some amount of buffer storage is often inserted between elements. Types Instruction pipe-lining, Arithmetic pipe-lining Baskaran s Embedded for Mechatronic systems
  • 42. Positioning figure demo Baskaran s Embedded for Mechatronic systems
  • 43. minipage pipeline is a set of data process- ing elements connected in se- ries, where the output of one el- ement is the input of the next one. The elements of a pipeline are often executed in parallel or in time-sliced fashion. Some amount of buffer storage is of- ten inserted between elements Baskaran s Embedded for Mechatronic systems