0% found this document useful (0 votes)
10 views

Embedded System Lectures

Uploaded by

RaunaqSingh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Embedded System Lectures

Uploaded by

RaunaqSingh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 69

Embedded System

Dr. Raja Rout


Assistant Professor
Mechanical Engineering Department

1
CONTENT

✔ Generation of Computer
✔ Definition of Micro-processor
✔ Definition of Micro-controller
✔ Definition of Embedded System

2
GENERAL PURPOSE COMPUTER (GPC)

✔ The basic blocks of a general


purpose computer are given below
▪ Input Device
▪ Output Device
▪ Central Processing Unit (CPU)
▪ Memory

Introduction to Microprocessors and Microcontrollers 3


COMPLETE BLOCK DIAGRAM OF COMPUTER

CPU

Memory Block

Introduction to Microprocessors and Microcontrollers 4


GENERATION OF COMPUTERS

✔ First Generation (1946 – 1954)


✔ Second Generation (1955 – 1964)
✔ Third Generation (1965 – 1974)
✔ Fourth Generation (1975 – 1990)
✔ Fifth Generation (1991 – Present)

Introduction to Microprocessors and Microcontrollers 5


FIRST GENERATION (1946 – 1954)

✔ Vacuum Tubes as CPU components


✔ High cost of vacuum tubes were used for main memory
✔ Magnetic Tapes or Magnetic drum were used as secondary Memory
✔ Used for designing Numerical Integrator and calculator
✔ Examples

▪ Electronic Numerical Integrator and calculator (ENIAC) (1946)


▪ Electronic Delay Storage Automatic Calculator (EDSAC) (1949)
▪ Electronic Discrete Variable Automatic Computer (EDVAC) (1950)
▪ UNIVersal Automatic Computer (UNIVAC-1) (1951)

Introduction to Microprocessors and Microcontrollers 6


COMPLETE BLOCK DIAGRAM OF COMPUTER

CPU Vacuum Tubes

Vacuum Tubes

Magnetic Tapes &


magnetic drums

Introduction to Microprocessors and Microcontrollers 7


FIRST GENERATION (1946 – 1954)

Advantages:
✔ Easily available
✔ Used machine language only
Disadvantages:
✔ Very large in size
✔ Consumed a large amount of energy
✔ Heated very soon due to thousands of vacuum
tubes
✔ Very slow speed
✔ Very less data storage
✔ Costly commercial production

Introduction to Microprocessors and Microcontrollers 8


SECOND GENERATION (1955 – 1964)

✔ Transistor were used in place of vacuum tubes.


✔ Magnetic ferrite-core memory was used as main memory.
✔ Magnetic disks and magnetic tapes were used as secondary
memory.
✔ Examples

▪ Honeywell 400
▪ IBM 7094
▪ CDC 1604
▪ CDC 3600
▪ UNIVAC 1108
▪ IBM 7030

Introduction to Microprocessors and Microcontrollers 9


COMPLETE BLOCK DIAGRAM OF COMPUTER

CPU Transistors

Magnetic Fe - core

Magnetic Disks &


magnetic Tapes

Introduction to Microprocessors and Microcontrollers 10


SECOND GENERATION (1955 – 1964)

Advantages w.r.t. First Generation:


✔ Smaller in size
✔ more reliable
✔ Accuracy improved
✔ Better speed
✔ Used less energy and less heat generation
✔ Used assembly language as well
✔ Punch cards were used for input
Disadvantages :
✔ Only used for specific purposes
✔ Constant maintenance was required
✔ Costly commercial production

Introduction to Microprocessors and Microcontrollers 11


SEMICONDUCTOR TECHNOLOGIES

Introduction to Microprocessors and Microcontrollers 12


SEMICONDUCTOR TECHNOLOGIES

Integrated Circuits Semiconductor

Introduction to Microprocessors and Microcontrollers 13


THIRD GENERATION (1965 – 1974)

✔ ICs (SSI and MSI) were used to form CPU and other electronic components (Transistors).
✔ Semiconductor memories (RAMs and ROMs) replaced magnetic core type main memory.
✔ Examples

▪ IBM 360/370
▪ CDC 6600
▪ Honeywell-6000 series
▪ PDP (Personal Data Processor)
▪ TDC-316
▪ IBM-370/168

Introduction to Microprocessors and Microcontrollers 14


BLOCK DIAGRAM OF COMPUTER

CPU with SSI & MSI Technology

Semiconductor
Memory

Magnetic Disks &


magnetic Tapes

Introduction to Microprocessors and Microcontrollers 15


THIRD GENERATION (1965 – 1974)

Advantages w.r.t. Second Generation:


✔ Smaller in size
✔ More reliable
✔ Commercial production increased
✔ Maintenance cost was low
✔ Better speed
✔ Used less energy and less heat generation
✔ Used mouse and keyboard for input
Disadvantages :
✔ Highly sophisticated Technology required for the
manufacturing of IC chips

Introduction to Microprocessors and Microcontrollers 16


FORTH GENERATION (1975 – 1990)

✔ Computers were made using very LSI Technology.


✔ Development of microprocessor took place because of tens of
thousands of components were packed on a single chip.
✔ Personal computer operating systems were developed during
this period.
✔ Graphic User Interface (GUI) technology was exploited to
offer more comfort to users
✔ Examples: IBM PC, Apple II, VAX 9000, DEC 10, STAR 1000

Introduction to Microprocessors and Microcontrollers 17


BLOCK DIAGRAM OF COMPUTER

Microprocessor as CPU using LSI Technology

Semiconductor
Memory

Magnetic Disks &


magnetic Tapes

Introduction to Microprocessors and Microcontrollers 18


DEFINITION OF MICRO-PROCESSOR

“Microprocessor is semiconductor device


which contains ALU, Control Unit, Registers
on a single chip, fabricated using LSI

technology”

Introduction to Microprocessors and Microcontrollers 19


FIFTH GENERATION (1991 – Till Date)

✔ Used VLSI and ULSI technologies for the development of microprocessors.


✔ Usage of large number of components lead to the
development of micro-controllers which includes
microprocessors, memory, timers, etc. in a single
Chip
✔ Development of more user-friendly operating
systems like MS Windows and Linux, and Linux
based software products are the other developments
during this period.

Introduction to Microprocessors and Microcontrollers 20


BLOCK DIAGRAM OF COMPUTER

Single chip IC contains


Microprocessor, memory,
Timers, IO Ports, etc. using VLSI
Technology

Magnetic Disks &


Magnetic Tapes

Introduction to Microprocessors and Microcontrollers 21


DEFINITION OF MICRO-CONTROLLER

“Microcontroller is semiconductor device which


contains all components of Microprocessor, Memory,
timers etc. are present in single chip,

fabricated using VLSI technology”

Introduction to Microprocessors and Microcontrollers 22


EMBEDDED SYSTEM

✔ An embedded system is some combination of


computer hardware and software, either fixed in
capability or programmable, that is designed for a
specific function or for specific functions within a
larger system.

Introduction to Microprocessors and Microcontrollers 23


EMBEDDED SYSTEM

Embedded System
which includes
Microcontroller,
Input and output
devices

Introduction to Microprocessors and Microcontrollers 24


EMBEDDED SYSTEM

✔ Embedded system is normally developed for a specific


application to perform dedicated task(s).

Introduction to Microprocessors and Microcontrollers 25


EMBEDDED SYSTEM APPLICATIONS

✔ Applications in communication: Radios, telephones, cellular phones, answering machines, fax machines,
wireless routers.
✔ Consumer electronics: Washing machine, clocks and watches, games and toys, remote controls, audio/video
electronics.
✔ Automotive systems: Braking system, electronic ignition, locks, power windows and seats, collision avoidance.
✔ Commercial usage: ATM machines, bar code readers, elevator controllers.
✔ Medical treatments: Cancer treatments, dialysis machines, blood pressure measuring equipment,
electrocardiography (ECG), etc.
✔ Industrial: Process automation, oil refineries, food processing plants, paper and board mills, etc.
✔ Military use: Missile guidance systems, global positioning systems, surveillance systems.

Introduction to Microprocessors and Microcontrollers 26


DESIGN PARAMETERS OF EMBEDDED SYSTEM

✔ While designing an embedded system, the factors that are of utmost importance are listed below.
1. Power consumption
2. Speed of execution
3. System size and weight
4. Performance accuracy

✔ Parameters for the selection of Microcontroller and are listed below:


1. Processing rate and processor size

2. Different types of I/O devices that can be interfaced

3. Memory size (RAM and ROM)

Introduction to Microprocessors and Microcontrollers 27


CONTENT

✔ Basics of Microprocessor
✔ Basics of Microcontroller
✔ Memory

Introduction to Microprocessors and Microcontrollers 28


MICROPROCESSOR

✔ The Central Processing Unit (CPU) of a computer which built on a single Integrated Circuit (IC) is called
a microprocessor.
✔ It is usually called as the brain of a computer which is having the capability with 8, 16, 32, 64 bits, etc.
✔ It has a capability of executing instructions at an extremely high speed.
✔ The basic building blocks of an Micro-processor are as follows

▪ Arithmetic logic unit (ALU)


▪ Control unit
▪ Bank of registers
▪ Interconnection buses
▪ Timing unit
✔ In general, the interconnecting busses are
data bus, address bus and control bus.

Introduction to Microprocessors and Microcontrollers 29


HISTORY OF MICROPROCESSOR (INTEL)

Introduction to Microprocessors and Microcontrollers 30


BLOCK DIAGRAM OF MICROPROCESSOR

Interconnecting
Buses

Introduction to Microprocessors and Microcontrollers 31


MICROPROCESSOR OPERATION

✔ The purpose of the arithmetic logic unit (ALU) is to perform arithmetic and logical operations such as
addition, subtraction, etc. and logic operations such as AND, OR operations, etc.
✔ Each operation is encoded by a unique binary combination, which is termed the operational code or
op-code.
✔ Control unit will generate suitable control signals such read, write signal, etc. for executing a particular
operation.
✔ The operations and operands (data) are initially stored in the memory which will be brought inside the
microprocessor using buses and are stored temporarily in microprocessor registers.
✔ The data transfer between each block is operated with help of interconnected buses such data bus,
address bus and control bus.
✔ The timing unit will provide timing signal or clock signal to the processor to carry out various activities
and to synchronize its tasks.

Introduction to Microprocessors and Microcontrollers 32


MICROPROCESSOR OPERATION

✔ In general, the work of a microprocessor is to execute user programs.


✔ The program counter (PC) stores the address of the next instruction during the execution of an user
program.
✔ There are three phase to execute an instruction in an user program
1. Fetch
2. Decode
3. Execute

Introduction to Microprocessors and Microcontrollers 33


MICROPROCESSOR OPERATION

✔ In general, the steps are involved in execution of an instruction by CPU. However, not all of them are
required for all instructions.
Memory
▪ Load the address into the Program Counter (PC)
1000 10111101
in which the instruction is stored
Data 1001 10000011
▪ Fetch the opcode of the instruction from memory
1002 …
▪ Decode the opcode
1003 …
▪ Perform ALU operation (Optional)
Addresses 1004 …
▪ Access memory . …
▪ Update register file . …
▪ Update the Program Counter (PC) . …
. …

Introduction to Microprocessors and Microcontrollers 34


WORKING OF MICROPROCESSOR

Example: Execute the R = X + Y addition instruction.

Step -1: The microprocessor fetches the instruction by applying


PC contents on the address bus, a read signal on the control
bus
Step-2: The control unit decodes the opcode of addition
instruction
Step-3: Processor executes R = X + Y by
▪ fetching the current value of X from the memory
▪ fetching the current value of Y from the memory
▪ instructing the ALU to add these two numbers
▪ writing the sum back to the memory address of R

Introduction to Microprocessors and Microcontrollers 35


MICROCONTROLLER

✔ A microcontroller combines a
microprocessor, read only memory (ROM),
random access memory (RAM), and
input/output (I/O) peripheral devices on a
single chip.
✔ The microprocessor sends signals to control
as well as to exchange information with
various subsystems inside the
microcontroller.
✔ The data, address, and control buses will be
used to communicate among these
subsystems.

Introduction to Microprocessors and Microcontrollers 36


MICROCONTROLLER

✔ During the execution of a program, the address will be fetched from the memory i.e. RAM or ROM by placing
the address in the address bus generated by the processor.
✔ The data bus carries the data stored in a particular address.
✔ Increasing the size of the data bus allows more number of bits to be communicated between two subsystems.
✔ The control bus is used to generate control signals such as read/write inform whether the CPU is interested in
reading some information or wants to write some information to the location whose address was generated
over the address bus.
✔ The capability of a microprocessor to process simultaneously a certain number of bits defines the type of
microcontroller in terms of processing bits such as 8, 16, 32 bits, etc.
✔ Another feature of microcontroller is Input/Output (I/O) ports in which data can be processed through serial
(single line) and parallel (multiple lines) ports.

Introduction to Microprocessors and Microcontrollers 37


FAMILY OF MICROCONTROLLERs

Introduction to Microprocessors and Microcontrollers 38


MICROCONTROLLER VS MICROCOMPUTER

✔ The major differences between microcontrollers, employed by


embedded systems and microcomputers (or personal computers) is
that

▪ RAM, ROM, CPU, and I/O interfaces in a personal computer are


MICROCONTROLLER
typically integrated in the form of multiple different chips on a
motherboard, while all of these components in the case of a
microcontroller are embedded inside a single chip.

▪ Speed also increased in case of microcontroller compared to


microcomputer because of reduced size of memory and
peripherals.
MICROCOMPUTER

Introduction to Microprocessors and Microcontrollers 39


MEMORY

✔ To store binary information, digital electronic circuits such as complementary metal oxide semiconductor
(CMOS) can be built and a collection of a large number of such circuits is named memory.

✔ Memory is the portion of a computer or other system that stores binary data. In a computer, memory is
accessed millions of times per second.

✔ A memory unit is a device to which binary information is transferred for storage and from which
information is retrieved when needed for processing.

✔ Binary information received from an input device is stored in memory, and information transferred to an
output device is taken from memory.

✔ A memory unit is a collection of cells capable of storing a large quantity of binary information.

Introduction to Microprocessors and Microcontrollers 40


TYPES OF MEMORY

✔ There are two types of memories

▪ Random Access Memory (RAM)


▪ Read Only Memory (ROM)

✔ RAM can perform both write and read operations.

✔ ROM can perform only the read operation.

✔ In general, two operations can be performed by memory

▪ Memory Write: The process of storing new information into memory.

▪ Memory Read: The process of transferring the stored information out of memory.

Introduction to Microprocessors and Microcontrollers 41


CONTENT

✔ Memory
✔ Types of Memory
▪ RAM
▪ ROM

Introduction to Microprocessors and Microcontrollers 42


MEMORY

✔ Memory stores the information like a human being stores information


in brain.

✔ To store binary information, digital electronic circuits such as


complementary metal oxide semiconductor (CMOS) can be built and a
collection of a large number of such circuits is named memory.

✔ Memory is the portion of a computer or other system that stores


binary data either in the form of 0 or 1 which will be accessed millions
of times per second.

✔ A memory unit is a device to which binary information is transferred


for storage and from which information is retrieved when needed.

Introduction to Microprocessors and Microcontrollers 43


MEMORY

✔ Binary information received from an input device is


stored in memory, and information transferred to an
output device is taken from memory.

✔ A memory unit is a collection of cells capable of storing a


large quantity of binary information.

✔ Figure shows in the right where each byte is uniquely


addressable, such memories are called byte addressable
memories.

✔ Other possibilities are bit addressable as well as word


(32-bit) and half word (16-bit) addressable memories.

Introduction to Microprocessors and Microcontrollers 44


TYPES OF MEMORY

✔ There are two types of memories

▪ Random Access Memory (RAM)


▪ Read Only Memory (ROM)
✔ RAM can perform both write and read operations.

✔ ROM can perform only the read operation.

✔ In general, two operations can be performed by memory

▪ Memory Write: The process of storing new information into memory.

▪ Memory Read: The process of transferring the stored information out of memory.

Introduction to Microprocessors and Microcontrollers 45


RANDOM ACCESS MEMORY (RAM)

✔ A memory unit that consists of a collection of storage


cells used for both transfer of information into and
out of a device is called a RAM.

✔ The architecture of memory is such that information


can be randomly retrieved from any of its internal
locations.

✔ The time required to retrieve and store a binary


information from and to a particular location
respectively, is always same.

✔ A memory unit stores binary information in groups of


bits called words (may be 8, 16, 32 or 64 bits).

Introduction to Microprocessors and Microcontrollers 46


RANDOM ACCESS MEMORY (RAM)

✔ It is customary to refer to the number of words (or


bytes) in memory with one of the letters K (kilo), M
(mega), and G (giga). K is equal to 210, M is equal to
220, and G is equal to 230.

✔ A memory word is a group of 1’s and 0’s and may


represent a number, an instruction, one or more
alphanumeric characters, or any other
binary-coded information.

✔ One limitation of RAM is that information stored in


it is lost as soon as the power applied to it is
removed. Hence volatile in nature. RAM

Introduction to Microprocessors and Microcontrollers 47


RANDOM ACCESS MEMORY (RAM)

Static RAM: Dynamic RAM:


▪ Uses flip-flops to store the binary ▪ Uses a capacitor and 2 transistors to design
information and require 4 to 6 transistors to the memory cell for storing the binary
design the memory cell information
▪ Stored information remains valid as long as ▪ Needs refreshing circuit for periodically
power is on. So, does not require refreshing refreshment to hold the stored info
circuit
▪ Shorter read and write cycles, hence faster. ▪ Longer read and write cycles, hence less
Hence used in cache memory. speed than SRAM. Used in main memory.
▪ Larger cell area and more power ▪ Smaller cell area and less power consumption
consumption

Introduction to Microprocessors and Microcontrollers 48


RANDOM ACCESS MEMORY (RAM)

Static RAM: Dynamic RAM:

Introduction to Microprocessors and Microcontrollers 49


READ ONLY MEMORY (ROM)

✔ A memory device that can permanently keep binary data even when power is turned off or on. Hence
nonvolatile in nature.

✔ ROM does not have data inputs, because it does not have a write operation.

✔ Instructions or a program code are the information that is normally stored in a ROM.

✔ Based on how a ROM is programmed, ROMs can be of different types.

✔ Example: used in Desktops and laptops for running the operating system.

Introduction to Microprocessors and Microcontrollers 50


TYPES OF ROM

Introduction to Microprocessors and Microcontrollers 51


TYPES OF ROM

Mask programming ROM:

✔ In this type of ROM, the specification of the ROM (its


contents and their location), is taken by the manufacturer
from the customer in tabular form in a specified format and
then makes corresponding masks for the paths to produce
the desired output.

✔ Economic for large quantity of the same ROM.

✔ They are used in network operating systems, server


operating systems, storing of fonts for laser printers, sound
data in electronic musical instruments.

Introduction to Microprocessors and Microcontrollers 52


TYPES OF ROM

Programmable ROM (PROM)

✔ It is first prepared as blank memory, and then it is programmed to store


the information.

✔ PROM is manufactured as blank memory and programmed after


manufacturing, whereas a Mask ROM is programmed during the
manufacturing process. Also, the data stored in it cannot be modified, so it
is called as one – time programmable device.

✔ They have several different applications, including cell phones, video


game consoles, RFID tags, medical devices.

Introduction to Microprocessors and Microcontrollers 53


TYPES OF ROM

Erasable PROM (EPROM)

✔ It overcomes the disadvantage of PROM that once programmed,


the fixed pattern is permanent and cannot be altered.

✔ Unlike an ordinary PROM, an EPROM can be reprogrammed if an


existing program in the memory array is erased first.

✔ The EPROM can be reprogrammed to the initial state under a


special ultraviolet light (UV) for a given period of time.

✔ Used in compact flash, microcontrollers, etc.

Introduction to Microprocessors and Microcontrollers 54


TYPES OF ROM

Electrically Erasable PROM (EEPROM or E2PROM)

✔ The EEPROM is returned to its initial state by application of an


electrical signal, in place of ultraviolet light.

✔ Only allow single byte read and write operations that makes them
slow speed device.

Flash Memory

✔ Flash memory is a type of EEPROM that allows read and write operations to be carried out in large
multi-byte blocks.
✔ In addition, the cost of flash memory is also low compared to byte-programmable EEPROM.
✔ Many modern PCs have their BIOS stored on a flash memory chip, called as flash BIOS and they are also
used in modems as well.

Introduction to Microprocessors and Microcontrollers 55


CONTENT

✔ Classification of Microprocessor
Architecture

Introduction to Microprocessors and Microcontrollers 56


MICROPROCESSOR ARCHITECTURE CLASSIFICATION

Introduction to Microprocessors and Microcontrollers 57


INSTRUCTION SET ARCHITECTURE (ISA)

Complexity - based ISA Classification

✔ Using the complexity of instructions, it can be again categorised into two types
▪ Complex Instruction Set Computer (CISC)
▪ Reduced Instruction Set Computer (RISC)

Introduction to Microprocessors and Microcontrollers 58


COMPLEXITY-BASED ISA CLASSIFICATION

Introduction to Microprocessors and Microcontrollers 59


COMPLEXITY-BASED ISA CLASSIFICATION

Reduced Instruction Set Computer (RISC) Complex Instruction Set Computer (CISC)
▪ RISC processors have simple instructions taking ▪ CSIC processor has complex instructions that
about one clock cycle. The average clock cycle per take up multiple clocks for execution. The
instruction (CPI) is 1.5. average clock cycle per instruction (CPI) is in the
range of 2 and 15.
▪ Performance is optimized with more focus on ▪ Performance is optimized with more focus on
software hardware
▪ It has no memory unit and uses separate ▪ It has a memory unit to implement complex
hardware to implement instructions instructions
▪ It has a hard-wired unit of programming ▪ It has a microprogramming unit
▪ The instruction set is reduced i.e. it has only a few ▪ The instruction set has a variety of different
instructions in the instruction set. Many of these instructions that can be used for complex
instructions are very primitive. operations.

Introduction to Microprocessors and Microcontrollers 60


COMPLEXITY-BASED ISA CLASSIFICATION

Reduced Instruction Set Computer (RISC) Complex Instruction Set Computer (CISC)
▪ The instruction set has simple addressing modes. ▪ CISC has many different addressing modes and
can thus be used to represent higher-level
programming language statements more
▪ Complex addressing modes are synthesized using efficiently.
the software. ▪ CISC already supports complex addressing modes
▪ Multiple register sets are present ▪ Only has a single register set
▪ RISC processors are highly pipelined ▪ They are normally not pipelined or less pipelined
▪ The complexity lies in the microprogram
▪ The complexity of RISC lies with the compiler that
executes the program
▪ Execution time is very high
▪ Execution time is very less

Introduction to Microprocessors and Microcontrollers 61


COMPLEXITY-BASED ISA CLASSIFICATION

Reduced Instruction Set Computer (RISC) Complex Instruction Set Computer (CISC)
▪ Code expansion can be a problem ▪ Code expansion is not a problem
▪ The decoding of instructions is simple ▪ Decoding of instructions is complex
▪ It does not require external memory for ▪ It requires external memory for calculations
calculations
▪ The most common RISC microprocessors are ▪ Examples of CISC processors are the
Alpha, ARC, ARM, AVR, MIPS, PA-RISC, PIC, System/360, VAX, PDP-11, Motorola 68000
Power Architecture, and SPARC. family, AMD, and Intel x86 CPUs.
▪ RISC architecture is used in high-end applications ▪ CISC architecture is used in low-end
such as video processing, telecommunications, applications such as security systems, home
and image processing. automation, etc.

Introduction to Microprocessors and Microcontrollers 62


INSTRUCTION SET ARCHITECTURE (ISA)

Instruction Operand-Based ISA Classification

✔ Instructions in an assembly language program in general have multiple operands.


✔ The operands for an instruction can be specified either using memory or registers or combination of
both.
✔ The ISA classification based on how the instruction operands are specified can be categorized in the
following groups
1. Memory-memory
2. Register-memory
3. Register-register

Introduction to Microprocessors and Microcontrollers 63


INSTRUCTION OPERAND-BASED ISA CLASSIFICATION

Memory-memory
✔ This type of ISA allows more than one operand of most instructions to be specified in memory.
✔ Examples: VAX and PDP series
Register-memory
✔ These architectures allow one operand of an instruction to be specified in memory, while the other operand
is in CPU register.
✔ Examples: x86 and Motorola 68k
Register-register
✔ This ISA classification is also called load-store architecture. Only load and store instruction can access the
memory.
✔ All instructions other than load and store instructions get their operands from and store their results to
registers.
✔ Examples: ARM and MIPS

Introduction to Microprocessors and Microcontrollers 64


INSTRUCTION OPERAND-BASED ISA CLASSIFICATION

Memory-memory
Slower
MOV [1000H], [3000H] Speed
ADD [R1], [2000H]
Register-memory
Medium
MOV R1, [1050H] Speed
SUB [2020H], R2
Register-register
MOV R1, R4 Faster Speed

ADD R2, R3, R1

Introduction to Microprocessors and Microcontrollers 65


MEMORY INTERFACE-BASED ARCHITECTURE CLASSICATION

✔ There are two widely used memory interface architectures


1. von Neumann architecture
2. Harvard architecture

Introduction to Microprocessors and Microcontrollers 66


MEMORY INTERFACE-BASED ARCHITECTURE CLASSICATION

✔ Mostly, microprocessors are implemented using von Neumann architecture, while


microcontrollers use Harvard architecture.

✔ ARM based microcontrollers use Harvard architecture.

Introduction to Microprocessors and Microcontrollers 67


VON-NEUMAN BUS ARCHITECTURE

✔ The von-Neumann architecture uses a common bus


for both data as well as code memory.
✔ As a result either an instruction can be fetched from
memory or data can be read/written from/to
memory during each memory access cycle.
✔ Instructions and data are stored in the same
memory subsystem and share a common bus to the
processor.

Introduction to Microprocessors and Microcontrollers 68


HARVARD BUS ARCHITECTURE

✔ The Harvard architecture utilizes separate buses for accessing code and data memories.
✔ This allows instructions and data to be accessed simultaneously.

✔ In addition, the next instruction may be


fetched from memory at the time when the
previous instruction is about to finish its
execution, allowing for a primitive form of
pipelining.
✔ Pipelining decreases the per instruction
execution time; however, main memory
access time is a major bottleneck in the
overall performance of the system.

Introduction to Microprocessors and Microcontrollers 69

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy