SlideShare a Scribd company logo
Microprocessor
CSIT_Nepal
Unit 1
Contents
• Introduction to Microprocessor
• Components of a Microprocessor: Registers, ALU and control & timing
• System bus (data, address and control bus)
• Microprocessor systems with bus organization
Introduction
• A microprocessor is a general purpose programmable logic device.
• A thorough understanding of the microprocessor demands concept and
skills from two different disciplines: -
• Hardware concept from electronics
• Programming skills from computer science
• Microprocessor systems are discussed in terms of four components: -
• Microprocessor
• Memory
• Input
• Output
and their communications
Background:
Bit- a binary digit, 0 or 1.
Byte- A group of 8-bits.
Nibble- a group of 4 bits.
Word – A group of bits used for special purpose, foe e.g. a 4-bit computer may have word of 4-bits.
Instruction – A command in binary that is recognized and executed by a computer to accomplish a task.
Program – A set of instruction in a sequential order to accomplish a given task.
Machine language - Binary medium of communication.
Low level language – A medium of communication that is machine dependent or specific to the computer. The machine
and assembly language are low level language. Programs written in those languages are not transferable.
High level language – it is independent to the given computer. Programs are written in English like words that can be
executed on a machine using a translator.
Compiler – A program that translates the high level language into low level/machine language. A compiler reads source
code, translates it into the machine language, called object code.
Interpreter – It translates English like statement of high level language into machine language of computer. It translates
one line at a time from the source code to object code.
Process: a series of actions or steps taken to achieve an end result.
Processor: a machine that completes process.
IC: multi-function circuit are combined in a single chip.
Microprocessor:
Arithmetic and logic unit(ALU), Control Unit(CU), and registers integrated
into a single chip using LSI and VLSI technique, then the resulting processor
is known as Microprocessor unit(MU) or simply Microprocessor.
 It is a multipurpose, programmable, clock-driven, register-based electronic
device that reads binary instruction from a storage device (called
memory), accepts binary as input and processes data according to those
instructions and provides result as output.
 Each MP communicates and operates in the binary number 0 and 1, called
bits.
 Each MP has fixed sets of instructions in the form of binary pattern called a
machine language.
 Generally, one or more microprocessor serves typically as a CPU.
Applications
• Test instruments
• Communications
• Computer
• Industries
• Aerospace
Basic characteristics
• Instruction set: total no of instructions that a Microprocessor can
handle.
• Bandwidth: the total no of bits processed in a single system. E.g.: 32
bit (x86), 64 bit (x64).
• Clock speed: No of instructions that processor can execute per
second. Unit of clock speed is MIPS (Millions Of Instructions per
seconds).
Evolution of Microprocessor (Intel Series)
Unit 1. introduction
Microcomputer
• It is a computer with a CPU as a MP designed for personal use.
• It contains MP, memory and I/O unit.
• It is smaller than mainframe and minicomputer.
Microcontroller
• Microprocessor that is embedded into a larger system for controlling purpose.
• It is a small single chip computer or single IC containing MP, memory and
programmable I/O peripherals.
• E.g. 89c51 microcontroller
• 8051 processor
• 128X8 bit RAM
• 4 KB flash memory.
Q. Distinguish between microprocessor and microcontroller.
Basic Block Diagram of a computer:
• Traditional
• with four components such as
• memory,
• input,
• output and
• central processing unit (CPU)
which consists of arithmetic logic unit
(ALU) and control unit (CU).
Input
Arithmetic/Logic
Unit (ALU)
Control Unit
Memory
Output
CPU
Fig: Traditional block diagram of a computer
• Around late 1960s,
traditional block diagram
was replaced with computers
having microprocessor as CPU
which is known as microcomputers.
• CPU was designed using
integrated circuits (IC) technology
which provides the possibility to build the CPU on a single chip.
Input
Microprocessor
as CPU
Memory
Output
Fig: Block Diagram of a computer
with the microprocessor as CPU
Organization of Microprocessor Based System
1. Microprocessor (MP):
The microprocessor unit can be divided into three segments:
i. ALU
• This unit performs all arithmetic and logical operations
as specified by instruction set; and produces output.
• The results of addition, subtraction, and logical
operations (AND, OR, XOR etc.) are stored in the registers
or in memory unit or sent to output unit.
ii. Register unit
• Consists of various registers.
• Used for temporary storage of data during execution of program and are accessible to user with the help of
instruction.
iii. CU
• Controls the operations of different instructions.
• Provides necessary timing and control signals to all the operations in the MP and peripherals including memory.
input output
System bus
ALU Register
Array
Control unit
ROM RAM
Microprocessor
Memory
2. Memory
• Stores binary information such as instruction and data, and provide this information to MP when
required.
• To execute programs, the MP reads data and instructions from memory and performs the computing
operations.
• ROM is used to store the program and data which need not to be modified.
• RAM is used to store the program and data that can be rewrite and modified frequently as per the
requirement.
3. System bus
• The system bus is a communication path between MP and peripherals.
• It is used to carry data, address and control signals.
• It consists:
• Data bus: carries data
• Address bus: carries address
• Control bus: carries control signals
4. I/O bus
• Input unit is used to input instruction or data to the MP externally.
• Output unit is used to carry out the information from the MP unit.
Bus Organization
Memory Input Unit Out-Put unit
Control Bus
MPU
(Micro Processor
Unit)
Address Bus
Data Bus
Fig: Typical Block diagram of Bus Organization of 8085 Microprocessor
Address Bus:
 It is a unidirectional bus (single ended), consists of 16, 20, 24, 32, 64 parallel lines.
 MPU sends address of memory or I/O to operate.
 Number of bits in address bus determines maximum memory size that a MP can address.
 No. of memory location =2^ no of bits of address bus
 For 16 bit = 2^16 =65536
Data Bus:
 It is a bidirectional bus, consists of 8, 16 or 32 parallel lines.
 Used to carry data to and from the memory and peripheral devices.
 The bits in a data bus determine the speed and maximum data flow of a processor at
given constant clock speed.
 Many devices are connected to the data bus but only one operates at a time.
 Devices connected to the data bus through Tri-State Buffer can be disabled if not in use.
 E.g.: 8-bit data bus, 16-bit data is to be carries, should be done in two cycle.
Control Bus:
 Consist of 4 to 10 parallel lines.
 Use to control the access to and the use of data and address bus.
 Transmit both command and timing signals.
 Command specifies the operation to be done.
 Timing indicates the validity of data and address information.
 Control bus is connected to each and every component of the system.
 E.g.: memory read/ write, I/O read/write, Bus request, Bus grant etc.
Von Neumann machine and Harvard architecture
Main
memory
ALU
PCU
I/o
equipment
Fig: Von Neumann Architecture
Q. What is stored program concept? How this lead to the evolution of modern computers?
Program Memory CPU
Data Memory
Program Memory Data bus
Program memory Address bus
Data Memory data bus
Data Memory Address bus
Fig: Harvard Architecture

More Related Content

PPTX
Microprocessor
PDF
Chapter 1-Microprocessors, Microcomputers, and Assembly Language
PDF
Microprocessors & Microcomputers Lecture Notes
PPTX
Microprocessor Presentation
PPT
Introduction to-microprocessors
PPTX
Microprocessor
PPT
microprocessor architecture
Microprocessor
Chapter 1-Microprocessors, Microcomputers, and Assembly Language
Microprocessors & Microcomputers Lecture Notes
Microprocessor Presentation
Introduction to-microprocessors
Microprocessor
microprocessor architecture

What's hot (20)

PPTX
Data Manipulation
PDF
Microprocessor note
PPT
Microprocessor
PPTX
introduction to microprocessor and microcomputer
PDF
Assembly Language and Structures of Microcomputer | Chap-1
PPT
Micro 2
PPTX
Microprocessor
PPT
Microprocessor
PPT
microprocessor Lec 01 mic
PPTX
microprocessor
PDF
01 introduction to microcomputers
PDF
Overview of microcontroller and microprocessor
PPT
introduction to microprocessors
PPTX
introduction to microprocessors
PDF
Chapter 2-8085 Microprocessor Architecture and Microcomputer Systems
PPTX
Input Output - Computer Architecture
PPTX
Microprocessor & Micro-controller
PPTX
Hardware I/O organization
PPTX
Computer Evolution
Data Manipulation
Microprocessor note
Microprocessor
introduction to microprocessor and microcomputer
Assembly Language and Structures of Microcomputer | Chap-1
Micro 2
Microprocessor
Microprocessor
microprocessor Lec 01 mic
microprocessor
01 introduction to microcomputers
Overview of microcontroller and microprocessor
introduction to microprocessors
introduction to microprocessors
Chapter 2-8085 Microprocessor Architecture and Microcomputer Systems
Input Output - Computer Architecture
Microprocessor & Micro-controller
Hardware I/O organization
Computer Evolution
Ad

Similar to Unit 1. introduction (20)

PPT
Microprocessor fundamentals
PDF
Microprocessor System qwefqwgqwgqwgqwgqegew
PPT
I. Introduction to Microprocessor System.ppt
PPTX
Alisksdjdhdhhdhdhdhdhhdhdheheksjsjs.pptx
PPTX
Micro controller
PPTX
Module -4_microprocessor (1).pptx
PPT
POLITEKNIK MALAYSIA
PPT
micro controllers 1.ppt
DOC
PPTX
ch1.pptx
PPT
Microprocessor based sys presntation.ppt
PPTX
Computer Architecture and Organization.pptx
PPTX
1. Introduction to Microprocessor.pptx
DOCX
Bindura university of science education
PPT
Microprocessor Based Systems.ppt
PDF
chapter 1 of computers organization .pdf
PPTX
Week4&5 Lecture1&29745384259741551331463
PPT
Computer Architecture and Organization ppt
PPTX
MICRO-PROCESSORS and MICRO -CONTROLLER topic
PDF
Chapter_2_Embedded Systems Design_introduction_ARM.pdf
Microprocessor fundamentals
Microprocessor System qwefqwgqwgqwgqwgqegew
I. Introduction to Microprocessor System.ppt
Alisksdjdhdhhdhdhdhdhhdhdheheksjsjs.pptx
Micro controller
Module -4_microprocessor (1).pptx
POLITEKNIK MALAYSIA
micro controllers 1.ppt
ch1.pptx
Microprocessor based sys presntation.ppt
Computer Architecture and Organization.pptx
1. Introduction to Microprocessor.pptx
Bindura university of science education
Microprocessor Based Systems.ppt
chapter 1 of computers organization .pdf
Week4&5 Lecture1&29745384259741551331463
Computer Architecture and Organization ppt
MICRO-PROCESSORS and MICRO -CONTROLLER topic
Chapter_2_Embedded Systems Design_introduction_ARM.pdf
Ad

Recently uploaded (20)

PPTX
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
PPTX
Safety Seminar civil to be ensured for safe working.
PDF
86236642-Electric-Loco-Shed.pdf jfkduklg
PPT
Total quality management ppt for engineering students
PDF
737-MAX_SRG.pdf student reference guides
PPTX
UNIT 4 Total Quality Management .pptx
PDF
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPT
A5_DistSysCh1.ppt_INTRODUCTION TO DISTRIBUTED SYSTEMS
PPTX
Information Storage and Retrieval Techniques Unit III
PDF
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
PDF
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PPTX
Nature of X-rays, X- Ray Equipment, Fluoroscopy
PDF
Visual Aids for Exploratory Data Analysis.pdf
PDF
Abrasive, erosive and cavitation wear.pdf
PDF
PPT on Performance Review to get promotions
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
Safety Seminar civil to be ensured for safe working.
86236642-Electric-Loco-Shed.pdf jfkduklg
Total quality management ppt for engineering students
737-MAX_SRG.pdf student reference guides
UNIT 4 Total Quality Management .pptx
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
A5_DistSysCh1.ppt_INTRODUCTION TO DISTRIBUTED SYSTEMS
Information Storage and Retrieval Techniques Unit III
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
Nature of X-rays, X- Ray Equipment, Fluoroscopy
Visual Aids for Exploratory Data Analysis.pdf
Abrasive, erosive and cavitation wear.pdf
PPT on Performance Review to get promotions

Unit 1. introduction

  • 2. Unit 1 Contents • Introduction to Microprocessor • Components of a Microprocessor: Registers, ALU and control & timing • System bus (data, address and control bus) • Microprocessor systems with bus organization
  • 3. Introduction • A microprocessor is a general purpose programmable logic device. • A thorough understanding of the microprocessor demands concept and skills from two different disciplines: - • Hardware concept from electronics • Programming skills from computer science • Microprocessor systems are discussed in terms of four components: - • Microprocessor • Memory • Input • Output and their communications
  • 4. Background: Bit- a binary digit, 0 or 1. Byte- A group of 8-bits. Nibble- a group of 4 bits. Word – A group of bits used for special purpose, foe e.g. a 4-bit computer may have word of 4-bits. Instruction – A command in binary that is recognized and executed by a computer to accomplish a task. Program – A set of instruction in a sequential order to accomplish a given task. Machine language - Binary medium of communication. Low level language – A medium of communication that is machine dependent or specific to the computer. The machine and assembly language are low level language. Programs written in those languages are not transferable. High level language – it is independent to the given computer. Programs are written in English like words that can be executed on a machine using a translator. Compiler – A program that translates the high level language into low level/machine language. A compiler reads source code, translates it into the machine language, called object code. Interpreter – It translates English like statement of high level language into machine language of computer. It translates one line at a time from the source code to object code. Process: a series of actions or steps taken to achieve an end result. Processor: a machine that completes process. IC: multi-function circuit are combined in a single chip.
  • 5. Microprocessor: Arithmetic and logic unit(ALU), Control Unit(CU), and registers integrated into a single chip using LSI and VLSI technique, then the resulting processor is known as Microprocessor unit(MU) or simply Microprocessor.  It is a multipurpose, programmable, clock-driven, register-based electronic device that reads binary instruction from a storage device (called memory), accepts binary as input and processes data according to those instructions and provides result as output.  Each MP communicates and operates in the binary number 0 and 1, called bits.  Each MP has fixed sets of instructions in the form of binary pattern called a machine language.  Generally, one or more microprocessor serves typically as a CPU.
  • 6. Applications • Test instruments • Communications • Computer • Industries • Aerospace
  • 7. Basic characteristics • Instruction set: total no of instructions that a Microprocessor can handle. • Bandwidth: the total no of bits processed in a single system. E.g.: 32 bit (x86), 64 bit (x64). • Clock speed: No of instructions that processor can execute per second. Unit of clock speed is MIPS (Millions Of Instructions per seconds).
  • 10. Microcomputer • It is a computer with a CPU as a MP designed for personal use. • It contains MP, memory and I/O unit. • It is smaller than mainframe and minicomputer. Microcontroller • Microprocessor that is embedded into a larger system for controlling purpose. • It is a small single chip computer or single IC containing MP, memory and programmable I/O peripherals. • E.g. 89c51 microcontroller • 8051 processor • 128X8 bit RAM • 4 KB flash memory. Q. Distinguish between microprocessor and microcontroller.
  • 11. Basic Block Diagram of a computer: • Traditional • with four components such as • memory, • input, • output and • central processing unit (CPU) which consists of arithmetic logic unit (ALU) and control unit (CU). Input Arithmetic/Logic Unit (ALU) Control Unit Memory Output CPU Fig: Traditional block diagram of a computer
  • 12. • Around late 1960s, traditional block diagram was replaced with computers having microprocessor as CPU which is known as microcomputers. • CPU was designed using integrated circuits (IC) technology which provides the possibility to build the CPU on a single chip. Input Microprocessor as CPU Memory Output Fig: Block Diagram of a computer with the microprocessor as CPU
  • 13. Organization of Microprocessor Based System 1. Microprocessor (MP): The microprocessor unit can be divided into three segments: i. ALU • This unit performs all arithmetic and logical operations as specified by instruction set; and produces output. • The results of addition, subtraction, and logical operations (AND, OR, XOR etc.) are stored in the registers or in memory unit or sent to output unit. ii. Register unit • Consists of various registers. • Used for temporary storage of data during execution of program and are accessible to user with the help of instruction. iii. CU • Controls the operations of different instructions. • Provides necessary timing and control signals to all the operations in the MP and peripherals including memory. input output System bus ALU Register Array Control unit ROM RAM Microprocessor Memory
  • 14. 2. Memory • Stores binary information such as instruction and data, and provide this information to MP when required. • To execute programs, the MP reads data and instructions from memory and performs the computing operations. • ROM is used to store the program and data which need not to be modified. • RAM is used to store the program and data that can be rewrite and modified frequently as per the requirement. 3. System bus • The system bus is a communication path between MP and peripherals. • It is used to carry data, address and control signals. • It consists: • Data bus: carries data • Address bus: carries address • Control bus: carries control signals 4. I/O bus • Input unit is used to input instruction or data to the MP externally. • Output unit is used to carry out the information from the MP unit.
  • 15. Bus Organization Memory Input Unit Out-Put unit Control Bus MPU (Micro Processor Unit) Address Bus Data Bus Fig: Typical Block diagram of Bus Organization of 8085 Microprocessor
  • 16. Address Bus:  It is a unidirectional bus (single ended), consists of 16, 20, 24, 32, 64 parallel lines.  MPU sends address of memory or I/O to operate.  Number of bits in address bus determines maximum memory size that a MP can address.  No. of memory location =2^ no of bits of address bus  For 16 bit = 2^16 =65536 Data Bus:  It is a bidirectional bus, consists of 8, 16 or 32 parallel lines.  Used to carry data to and from the memory and peripheral devices.  The bits in a data bus determine the speed and maximum data flow of a processor at given constant clock speed.  Many devices are connected to the data bus but only one operates at a time.  Devices connected to the data bus through Tri-State Buffer can be disabled if not in use.  E.g.: 8-bit data bus, 16-bit data is to be carries, should be done in two cycle.
  • 17. Control Bus:  Consist of 4 to 10 parallel lines.  Use to control the access to and the use of data and address bus.  Transmit both command and timing signals.  Command specifies the operation to be done.  Timing indicates the validity of data and address information.  Control bus is connected to each and every component of the system.  E.g.: memory read/ write, I/O read/write, Bus request, Bus grant etc.
  • 18. Von Neumann machine and Harvard architecture Main memory ALU PCU I/o equipment Fig: Von Neumann Architecture Q. What is stored program concept? How this lead to the evolution of modern computers?
  • 19. Program Memory CPU Data Memory Program Memory Data bus Program memory Address bus Data Memory data bus Data Memory Address bus Fig: Harvard Architecture