SlideShare a Scribd company logo
INTRODUCTION OF MICROPROCESSOR
CHAPTER OUTLINE
๏‚ข Block diagram of a computer system
๏‚— Basic components of a computer system using block
diagrams:
๏‚ข Cpu
๏‚ข Memory
๏‚ข Input and output unit
๏‚ข Evolution of microprocessor : 4,8,16,32 dan 64 byte
๏‚ข Nibble, byte, word dan longword
๏‚ข Fecthing and execution cycles.
๏‚ข Internal structure and basic operation of a microprocessor
(arithmetic and logic unit, control unit, register sets,
accumulator, condition code register, program counter, stack
pointer)
๏‚ข Bus system: data bus, address bus and control bus.
๏‚ข Microprocessor clock system
๏‚ข Examples of microprocessor: 8085,8086. 2
DIAGRAM OF A COMPUTER SYSTEM
A computer is a programmable machine that receives input, stores and
manipulates data//information, and provides output in a useful format.
3
Diagram Of A Computer System
BLOCK DIAGRAM OF A BASIC
COMPUTER SYSTEM
ROM RAM I/O
interface
I/O
devices
CPU
4
Basic computer system consist of a Central processing unit (CPU),
memory (RAM and ROM), input/output (I/O) unit.
Block diagram of a basic computer system
Address bus
Data bus Control
bus
BASIC COMPONENT OF MICROCOMPUTER
1. CPU - Central Processing Unit
๏‚— the portion of a computer system that carries out the
instructions of a computer program
๏‚— the primary element carrying out the computer's functions. It is
the unit that reads and executes program instructions.
๏‚— The data in the instruction tells the processor what to do.
5
Pentium D dual core processors
2. Memory
๏‚— physical devices used to store data or programs.
๏‚— Computer main memory comes in two principal varieties:
random-access memory (RAM) and read-only memory (ROM).
๏‚— RAM can be read and written to anytime the CPU commands it,
but ROM is pre-loaded with data and software that never
changes, so the CPU can only read from it.
๏‚— ROM is typically used to store the computer's initial start-up
instructions.
๏‚— In general, the contents of RAM are erased when the power to
the computer is turned off, but ROM retains its data indefinitely.
๏‚— In a PC, the ROM contains a specialized program called the
BIOS that orchestrates loading the computer's operating system
from the hard disk drive into RAM whenever the computer is
turned on or reset.
6
3. I/O Unit
๏‚— Input/output (I/O), refers to the communication between an
information processing system (such as a computer), and the
outside world possibly a human, or another information
processing system.
๏‚— Inputs are the signals or data received by the system, and
outputs are the signals or data sent from it
๏‚— Devices that provide input or output to the computer are called
peripherals
๏‚— On a typical personal computer, peripherals include input devices
like the keyboard and mouse, and output devices such as the
display and printer. Hard disk drives, floppy disk drives and
optical disc drives serve as both input and output devices.
Computer networking is another form of I/O.
7
DATA SIZE
Nibble 4 bit
Byte 8 bit
Word 16 bit
Long word 32 bit
8
INTERNAL STRUCTURE AND BASIC OPERATION
OF MICROPROCESSOR
ALU Register
Section
Control and timing
section
Address bus
Data bus
Control bus
9
Block diagram of a microprocessor
ARITHMETIC AND LOGIC UNIT (ALU)
๏‚ข The component that performs the arithmetic and
logical operations
๏‚ข the most important components in a microprocessor,
and is typically the part of the processor that is
designed first.
๏‚ข able to perform the basic logical operations (AND,
OR), including the addition operation.
10
INTERNAL STRUCTURE OF ALU
2 bits of ALU 4 bits of ALU 11
CONTROL UNIT
๏‚ข The circuitry that controls the flow of information
through the processor, and coordinates the
activities of the other units within it.
๏‚ข In a way, it is the "brain within the brain", as it
controls what happens inside the processor, which
in turn controls the rest of the PC.
๏‚ข On a regular processor, the control unit performs
the tasks of fetching, decoding, managing
execution and then storing results.
12
REGISTER SETS
๏‚ข The register section/array consists completely of
circuitry used to temporarily store data or program
codes until they are sent to the ALU or to the
control section or to memory.
๏‚ข The number of registers are different for any
particular CPU and the more register a CPU have
will result in easier programming tasks.
๏‚ข Registers are normally measured by the number of
bits they can hold, for example, an "8-bit register" or
a "32-bit register". 13
REGISTER IN MOTOROLA 68000
MICROPROCESSOR
SUPERVISOR STACK POINTER
USER STACK POINTER
USER VYTE
SYSTEM BYTE
D0
D1
D2
D3
D4
D5
D6
D7
A0
A1
A2
A3
A4
A5
A6
A7
A7
PC
SR
31 16 15 8 7 0
31 16 15 8 7 0
15 8 7 0
DATA REGISTERS
ADDRESS REGISTERS
STACK POINTER
PROGRAM CONTER
STATUS REGISTER
14
ACCUMULATOR
๏‚ข a register in which intermediate arithmetic and logic
results are stored.
๏‚ข example for accumulator use is summing a list of
numbers.
๏‚— The accumulator is initially set to zero, then each
number in turn is added to the value in the accumulator.
๏‚— Only when all numbers have been added is the result
held in the accumulator written to main memory or to
another, non-accumulator, CPU register.
15
CONDITION CODE REGISTER (CCR) = FLAGS
๏‚ข an 8 bit register used to store the status of CPU,
such as carry, zero, overflow and half carry.
16
Flag Name Description
Z Zero flag Indicates that the result of a mathematical or logical operation was zero.
C Carry flag
Indicates that the result of an operation produced an answer greater
than the number of available bits. (This flag may also be set before a
mathematical operation as an extra operand to certain instructions, e.g.
"add with carry".)
X Extend flag
Masks the XIRQ request when set. It is set by the hardware and
cleared by the software as well is set by unmaskable XIRQ.
N Negative/ Sign flag
Indicates that the result of a mathematical operation is negative. In
some processors, the N and S flags have different meanings: the S flag
indicates whether a subtraction or addition has taken place, whereas
the N flag indicates whether the last operation result is positive or
negative.
V Overflow Flag
Indicates that the result of an operation has overflowed according to the
CPU's word representation, similar to the carry flag but for signed
operations.
I interrupts
Interrupts can be enabled or disabled by respectively setting or clearing
this flag. Modifying this flag may be restricted to programs executing in
supervisor mode
17
PROGRAM COUNTER (PC)
๏‚ข a 16 bit register, used to store the next
address of the operation code to be fetched
by the CPU.
๏‚ข Not much use in programming, but as an
indicator to user only.
๏‚ข Purpose of PC in a Microprocessor
๏‚— to store address of tos (top of stack)
๏‚— to store address of next instruction to be
executed.
๏‚— count the number of instructions.
18
STACK POINTER (SP)
๏‚ข The stack is configured as a data structure
that grows downward from high memory to
low memory.
๏‚ข At any given time, the SP holds the 16-bit
address of the next free location in the
stack.
๏‚ข The stack acts like any other stack when
there is a subroutine call or on an interrupt.
ie. pushing the return address on a jump,
and retrieving it after the operation is
complete to come back to its original
location.
19
DATA BUS
๏‚ข The data bus is 'bi-directional'
๏‚— data or instruction codes from memory or
input/output.are transferred into the
microprocessor
๏‚— the result of an operation or computation is sent
out from the microprocessor to the memory or
input/output.
๏‚ข Depending on the particular microprocessor,
the data bus can handle 8 bit or 16 bit data.
20
ADDRESS BUS
๏‚ข The address bus is 'unidirectional', over which the
microprocessor sends an address code to the
memory or input/output.
๏‚ข The size (width) of the address bus is specified by
the number of bits it can handle.
๏‚ข The more bits there are in the address bus, the
more memory locations a microprocessor can
access.
๏‚ข A 16 bit address bus is capable of addressing
65,536 (64K) addresses.
21
CONTROL BUS
๏‚ข The control bus is used by the microprocessor to
send out or receive timing and control signals in
order to coordinate and regulate its operation and
to communicate with other devices, i.e. memory or
input/output.
22
MICRO PROCESSOR CLOCK
๏‚ขAlso called clock rate, the speed at
which a microprocessor executes
instructions. Every computer contains
an internal clock that regulates the rate
at which instructions are executed and
synchronizes all the various computer
components.
23
EXAMPLES OF MICRO PROCESSOR
๏‚ข Intel 8086
๏‚ข Motorola 6800
๏‚ข Zilog Z80
24

More Related Content

Similar to Lec 1 Intro to mp.ppt

Architecture OF 8085
Architecture OF 8085Architecture OF 8085
Architecture OF 8085
muneer.k
ย 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
gohanraw
ย 
8085
80858085
8085
Mohammed Khan
ย 
8085
80858085
Microprocessor 8085 Chapter 3
Microprocessor 8085 Chapter 3Microprocessor 8085 Chapter 3
Microprocessor 8085 Chapter 3
Rishikesh Bhavsar
ย 
8085 archi
8085 archi8085 archi
8085 archi
HarshitParkar6677
ย 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
Adarsh Barnwal
ย 
Microprocessor and microcontroller
Microprocessor and microcontrollerMicroprocessor and microcontroller
Microprocessor and microcontroller
Ravinder Singla
ย 
MKLecture01eng.ppt
MKLecture01eng.pptMKLecture01eng.ppt
MKLecture01eng.ppt
ssuser7a33ea
ย 
MICROPROCESSOR 8085 WITH PROGRAMS
MICROPROCESSOR 8085 WITH PROGRAMSMICROPROCESSOR 8085 WITH PROGRAMS
MICROPROCESSOR 8085 WITH PROGRAMS
Sabin Gautam
ย 
Computer engineering - overview of microprocessors
Computer engineering - overview of microprocessorsComputer engineering - overview of microprocessors
Computer engineering - overview of microprocessors
EkeedaPvtLtd
ย 
Introduction to 8085 Microprocessor.pptx
Introduction to 8085 Microprocessor.pptxIntroduction to 8085 Microprocessor.pptx
Introduction to 8085 Microprocessor.pptx
VishalGaur54
ย 
Microprocessor
MicroprocessorMicroprocessor
The primary purpose of memory interfacing is to facilitate the transfer of da...
The primary purpose of memory interfacing is to facilitate the transfer of da...The primary purpose of memory interfacing is to facilitate the transfer of da...
The primary purpose of memory interfacing is to facilitate the transfer of da...
Sindhu Mani
ย 
8086_architecture MMC PPT.ppt
8086_architecture MMC PPT.ppt8086_architecture MMC PPT.ppt
8086_architecture MMC PPT.ppt
JamesAlpha3
ย 
Mpmc unit 1 notes
Mpmc unit 1 notesMpmc unit 1 notes
Mpmc unit 1 notes
pavihari
ย 
Overview of microcontroller and microprocessor
Overview of microcontroller and microprocessor Overview of microcontroller and microprocessor
Overview of microcontroller and microprocessor
Mrunal Deshkar
ย 
U proc ovw
U proc ovwU proc ovw
U proc ovw
Brit4
ย 
EE8551 MPMC
EE8551  MPMCEE8551  MPMC
EE8551 MPMC
rmkceteee
ย 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1
Neelam Kapoor
ย 

Similar to Lec 1 Intro to mp.ppt (20)

Architecture OF 8085
Architecture OF 8085Architecture OF 8085
Architecture OF 8085
ย 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
ย 
8085
80858085
8085
ย 
8085
80858085
8085
ย 
Microprocessor 8085 Chapter 3
Microprocessor 8085 Chapter 3Microprocessor 8085 Chapter 3
Microprocessor 8085 Chapter 3
ย 
8085 archi
8085 archi8085 archi
8085 archi
ย 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
ย 
Microprocessor and microcontroller
Microprocessor and microcontrollerMicroprocessor and microcontroller
Microprocessor and microcontroller
ย 
MKLecture01eng.ppt
MKLecture01eng.pptMKLecture01eng.ppt
MKLecture01eng.ppt
ย 
MICROPROCESSOR 8085 WITH PROGRAMS
MICROPROCESSOR 8085 WITH PROGRAMSMICROPROCESSOR 8085 WITH PROGRAMS
MICROPROCESSOR 8085 WITH PROGRAMS
ย 
Computer engineering - overview of microprocessors
Computer engineering - overview of microprocessorsComputer engineering - overview of microprocessors
Computer engineering - overview of microprocessors
ย 
Introduction to 8085 Microprocessor.pptx
Introduction to 8085 Microprocessor.pptxIntroduction to 8085 Microprocessor.pptx
Introduction to 8085 Microprocessor.pptx
ย 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
ย 
The primary purpose of memory interfacing is to facilitate the transfer of da...
The primary purpose of memory interfacing is to facilitate the transfer of da...The primary purpose of memory interfacing is to facilitate the transfer of da...
The primary purpose of memory interfacing is to facilitate the transfer of da...
ย 
8086_architecture MMC PPT.ppt
8086_architecture MMC PPT.ppt8086_architecture MMC PPT.ppt
8086_architecture MMC PPT.ppt
ย 
Mpmc unit 1 notes
Mpmc unit 1 notesMpmc unit 1 notes
Mpmc unit 1 notes
ย 
Overview of microcontroller and microprocessor
Overview of microcontroller and microprocessor Overview of microcontroller and microprocessor
Overview of microcontroller and microprocessor
ย 
U proc ovw
U proc ovwU proc ovw
U proc ovw
ย 
EE8551 MPMC
EE8551  MPMCEE8551  MPMC
EE8551 MPMC
ย 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1
ย 

Recently uploaded

Pharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brubPharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brub
danielkiash986
ย 
Information and Communication Technology in Education
Information and Communication Technology in EducationInformation and Communication Technology in Education
Information and Communication Technology in Education
MJDuyan
ย 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
deepaannamalai16
ย 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
nitinpv4ai
ย 
Contiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptxContiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptx
Kalna College
ย 
Data Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsxData Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsx
Prof. Dr. K. Adisesha
ย 
adjectives.ppt for class 1 to 6, grammar
adjectives.ppt for class 1 to 6, grammaradjectives.ppt for class 1 to 6, grammar
adjectives.ppt for class 1 to 6, grammar
7DFarhanaMohammed
ย 
The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
heathfieldcps1
ย 
Educational Technology in the Health Sciences
Educational Technology in the Health SciencesEducational Technology in the Health Sciences
Educational Technology in the Health Sciences
Iris Thiele Isip-Tan
ย 
Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
TechSoup
ย 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
nitinpv4ai
ย 
How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17
Celine George
ย 
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGHKHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
shreyassri1208
ย 
Bร€I TแบฌP Bแป” TRแปข TIแบพNG ANH LแปšP 8 - Cแบข Nฤ‚M - FRIENDS PLUS - Nฤ‚M HแปŒC 2023-2024 (B...
Bร€I TแบฌP Bแป” TRแปข TIแบพNG ANH LแปšP 8 - Cแบข Nฤ‚M - FRIENDS PLUS - Nฤ‚M HแปŒC 2023-2024 (B...Bร€I TแบฌP Bแป” TRแปข TIแบพNG ANH LแปšP 8 - Cแบข Nฤ‚M - FRIENDS PLUS - Nฤ‚M HแปŒC 2023-2024 (B...
Bร€I TแบฌP Bแป” TRแปข TIแบพNG ANH LแปšP 8 - Cแบข Nฤ‚M - FRIENDS PLUS - Nฤ‚M HแปŒC 2023-2024 (B...
Nguyen Thanh Tu Collection
ย 
Observational Learning
Observational Learning Observational Learning
Observational Learning
sanamushtaq922
ย 
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
220711130100 udita Chakraborty  Aims and objectives of national policy on inf...220711130100 udita Chakraborty  Aims and objectives of national policy on inf...
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
Kalna College
ย 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
zuzanka
ย 
Ch-4 Forest Society and colonialism 2.pdf
Ch-4 Forest Society and colonialism 2.pdfCh-4 Forest Society and colonialism 2.pdf
Ch-4 Forest Society and colonialism 2.pdf
lakshayrojroj
ย 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
indexPub
ย 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Henry Hollis
ย 

Recently uploaded (20)

Pharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brubPharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brub
ย 
Information and Communication Technology in Education
Information and Communication Technology in EducationInformation and Communication Technology in Education
Information and Communication Technology in Education
ย 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
ย 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
ย 
Contiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptxContiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptx
ย 
Data Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsxData Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsx
ย 
adjectives.ppt for class 1 to 6, grammar
adjectives.ppt for class 1 to 6, grammaradjectives.ppt for class 1 to 6, grammar
adjectives.ppt for class 1 to 6, grammar
ย 
The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
ย 
Educational Technology in the Health Sciences
Educational Technology in the Health SciencesEducational Technology in the Health Sciences
Educational Technology in the Health Sciences
ย 
Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
ย 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
ย 
How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17
ย 
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGHKHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
ย 
Bร€I TแบฌP Bแป” TRแปข TIแบพNG ANH LแปšP 8 - Cแบข Nฤ‚M - FRIENDS PLUS - Nฤ‚M HแปŒC 2023-2024 (B...
Bร€I TแบฌP Bแป” TRแปข TIแบพNG ANH LแปšP 8 - Cแบข Nฤ‚M - FRIENDS PLUS - Nฤ‚M HแปŒC 2023-2024 (B...Bร€I TแบฌP Bแป” TRแปข TIแบพNG ANH LแปšP 8 - Cแบข Nฤ‚M - FRIENDS PLUS - Nฤ‚M HแปŒC 2023-2024 (B...
Bร€I TแบฌP Bแป” TRแปข TIแบพNG ANH LแปšP 8 - Cแบข Nฤ‚M - FRIENDS PLUS - Nฤ‚M HแปŒC 2023-2024 (B...
ย 
Observational Learning
Observational Learning Observational Learning
Observational Learning
ย 
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
220711130100 udita Chakraborty  Aims and objectives of national policy on inf...220711130100 udita Chakraborty  Aims and objectives of national policy on inf...
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
ย 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
ย 
Ch-4 Forest Society and colonialism 2.pdf
Ch-4 Forest Society and colonialism 2.pdfCh-4 Forest Society and colonialism 2.pdf
Ch-4 Forest Society and colonialism 2.pdf
ย 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
ย 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
ย 

Lec 1 Intro to mp.ppt

  • 2. CHAPTER OUTLINE ๏‚ข Block diagram of a computer system ๏‚— Basic components of a computer system using block diagrams: ๏‚ข Cpu ๏‚ข Memory ๏‚ข Input and output unit ๏‚ข Evolution of microprocessor : 4,8,16,32 dan 64 byte ๏‚ข Nibble, byte, word dan longword ๏‚ข Fecthing and execution cycles. ๏‚ข Internal structure and basic operation of a microprocessor (arithmetic and logic unit, control unit, register sets, accumulator, condition code register, program counter, stack pointer) ๏‚ข Bus system: data bus, address bus and control bus. ๏‚ข Microprocessor clock system ๏‚ข Examples of microprocessor: 8085,8086. 2
  • 3. DIAGRAM OF A COMPUTER SYSTEM A computer is a programmable machine that receives input, stores and manipulates data//information, and provides output in a useful format. 3 Diagram Of A Computer System
  • 4. BLOCK DIAGRAM OF A BASIC COMPUTER SYSTEM ROM RAM I/O interface I/O devices CPU 4 Basic computer system consist of a Central processing unit (CPU), memory (RAM and ROM), input/output (I/O) unit. Block diagram of a basic computer system Address bus Data bus Control bus
  • 5. BASIC COMPONENT OF MICROCOMPUTER 1. CPU - Central Processing Unit ๏‚— the portion of a computer system that carries out the instructions of a computer program ๏‚— the primary element carrying out the computer's functions. It is the unit that reads and executes program instructions. ๏‚— The data in the instruction tells the processor what to do. 5 Pentium D dual core processors
  • 6. 2. Memory ๏‚— physical devices used to store data or programs. ๏‚— Computer main memory comes in two principal varieties: random-access memory (RAM) and read-only memory (ROM). ๏‚— RAM can be read and written to anytime the CPU commands it, but ROM is pre-loaded with data and software that never changes, so the CPU can only read from it. ๏‚— ROM is typically used to store the computer's initial start-up instructions. ๏‚— In general, the contents of RAM are erased when the power to the computer is turned off, but ROM retains its data indefinitely. ๏‚— In a PC, the ROM contains a specialized program called the BIOS that orchestrates loading the computer's operating system from the hard disk drive into RAM whenever the computer is turned on or reset. 6
  • 7. 3. I/O Unit ๏‚— Input/output (I/O), refers to the communication between an information processing system (such as a computer), and the outside world possibly a human, or another information processing system. ๏‚— Inputs are the signals or data received by the system, and outputs are the signals or data sent from it ๏‚— Devices that provide input or output to the computer are called peripherals ๏‚— On a typical personal computer, peripherals include input devices like the keyboard and mouse, and output devices such as the display and printer. Hard disk drives, floppy disk drives and optical disc drives serve as both input and output devices. Computer networking is another form of I/O. 7
  • 8. DATA SIZE Nibble 4 bit Byte 8 bit Word 16 bit Long word 32 bit 8
  • 9. INTERNAL STRUCTURE AND BASIC OPERATION OF MICROPROCESSOR ALU Register Section Control and timing section Address bus Data bus Control bus 9 Block diagram of a microprocessor
  • 10. ARITHMETIC AND LOGIC UNIT (ALU) ๏‚ข The component that performs the arithmetic and logical operations ๏‚ข the most important components in a microprocessor, and is typically the part of the processor that is designed first. ๏‚ข able to perform the basic logical operations (AND, OR), including the addition operation. 10
  • 11. INTERNAL STRUCTURE OF ALU 2 bits of ALU 4 bits of ALU 11
  • 12. CONTROL UNIT ๏‚ข The circuitry that controls the flow of information through the processor, and coordinates the activities of the other units within it. ๏‚ข In a way, it is the "brain within the brain", as it controls what happens inside the processor, which in turn controls the rest of the PC. ๏‚ข On a regular processor, the control unit performs the tasks of fetching, decoding, managing execution and then storing results. 12
  • 13. REGISTER SETS ๏‚ข The register section/array consists completely of circuitry used to temporarily store data or program codes until they are sent to the ALU or to the control section or to memory. ๏‚ข The number of registers are different for any particular CPU and the more register a CPU have will result in easier programming tasks. ๏‚ข Registers are normally measured by the number of bits they can hold, for example, an "8-bit register" or a "32-bit register". 13
  • 14. REGISTER IN MOTOROLA 68000 MICROPROCESSOR SUPERVISOR STACK POINTER USER STACK POINTER USER VYTE SYSTEM BYTE D0 D1 D2 D3 D4 D5 D6 D7 A0 A1 A2 A3 A4 A5 A6 A7 A7 PC SR 31 16 15 8 7 0 31 16 15 8 7 0 15 8 7 0 DATA REGISTERS ADDRESS REGISTERS STACK POINTER PROGRAM CONTER STATUS REGISTER 14
  • 15. ACCUMULATOR ๏‚ข a register in which intermediate arithmetic and logic results are stored. ๏‚ข example for accumulator use is summing a list of numbers. ๏‚— The accumulator is initially set to zero, then each number in turn is added to the value in the accumulator. ๏‚— Only when all numbers have been added is the result held in the accumulator written to main memory or to another, non-accumulator, CPU register. 15
  • 16. CONDITION CODE REGISTER (CCR) = FLAGS ๏‚ข an 8 bit register used to store the status of CPU, such as carry, zero, overflow and half carry. 16
  • 17. Flag Name Description Z Zero flag Indicates that the result of a mathematical or logical operation was zero. C Carry flag Indicates that the result of an operation produced an answer greater than the number of available bits. (This flag may also be set before a mathematical operation as an extra operand to certain instructions, e.g. "add with carry".) X Extend flag Masks the XIRQ request when set. It is set by the hardware and cleared by the software as well is set by unmaskable XIRQ. N Negative/ Sign flag Indicates that the result of a mathematical operation is negative. In some processors, the N and S flags have different meanings: the S flag indicates whether a subtraction or addition has taken place, whereas the N flag indicates whether the last operation result is positive or negative. V Overflow Flag Indicates that the result of an operation has overflowed according to the CPU's word representation, similar to the carry flag but for signed operations. I interrupts Interrupts can be enabled or disabled by respectively setting or clearing this flag. Modifying this flag may be restricted to programs executing in supervisor mode 17
  • 18. PROGRAM COUNTER (PC) ๏‚ข a 16 bit register, used to store the next address of the operation code to be fetched by the CPU. ๏‚ข Not much use in programming, but as an indicator to user only. ๏‚ข Purpose of PC in a Microprocessor ๏‚— to store address of tos (top of stack) ๏‚— to store address of next instruction to be executed. ๏‚— count the number of instructions. 18
  • 19. STACK POINTER (SP) ๏‚ข The stack is configured as a data structure that grows downward from high memory to low memory. ๏‚ข At any given time, the SP holds the 16-bit address of the next free location in the stack. ๏‚ข The stack acts like any other stack when there is a subroutine call or on an interrupt. ie. pushing the return address on a jump, and retrieving it after the operation is complete to come back to its original location. 19
  • 20. DATA BUS ๏‚ข The data bus is 'bi-directional' ๏‚— data or instruction codes from memory or input/output.are transferred into the microprocessor ๏‚— the result of an operation or computation is sent out from the microprocessor to the memory or input/output. ๏‚ข Depending on the particular microprocessor, the data bus can handle 8 bit or 16 bit data. 20
  • 21. ADDRESS BUS ๏‚ข The address bus is 'unidirectional', over which the microprocessor sends an address code to the memory or input/output. ๏‚ข The size (width) of the address bus is specified by the number of bits it can handle. ๏‚ข The more bits there are in the address bus, the more memory locations a microprocessor can access. ๏‚ข A 16 bit address bus is capable of addressing 65,536 (64K) addresses. 21
  • 22. CONTROL BUS ๏‚ข The control bus is used by the microprocessor to send out or receive timing and control signals in order to coordinate and regulate its operation and to communicate with other devices, i.e. memory or input/output. 22
  • 23. MICRO PROCESSOR CLOCK ๏‚ขAlso called clock rate, the speed at which a microprocessor executes instructions. Every computer contains an internal clock that regulates the rate at which instructions are executed and synchronizes all the various computer components. 23
  • 24. EXAMPLES OF MICRO PROCESSOR ๏‚ข Intel 8086 ๏‚ข Motorola 6800 ๏‚ข Zilog Z80 24