lect 2 micro
lect 2 micro
LECT 2
INTERNAL STRUCTURE AND BASIC
OPERATION OF MICROPROCESSOR
Address bus
ALU Register
Section
Data bus
3
INTERNAL STRUCTURE OF ALU
4
CONTROL UNIT
• The circuitry that controls the flow of information through the
processor, and coordinates the activities of the other units within it.
5
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.
PC PROGRAM CONTER
15 8 7 0
SYSTEM BYTE USER VYTE SR STATUS REGISTER 7
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.
8
CONDITION CODE REGISTER (CCR) = FLAGS
• an 8 bit register used to store the status of CPU, such as carry, zero,
overflow and half carry.
9
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.
10
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.
11
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.
12
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.
13
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.
14
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.
15
EXAMPLES OF MICRO PROCESSOR
• Intel 8086
• Motorola 6800
• Zilog Z80
16
8085 Microprocessor
• Introduction
• Overview of 8085 microprocessor
➢ 8085 Architecture
➢ Pin Diagram
➢ Functional Block Diagram
Introduction
• The technological revolution brought the invention of micro-
programmable computer on microprocessor chip
➢First four bit microprocessor chip
➢INTEL-4004 was developed by Intel Corporation of America in 1971.