Microprocessor 8085 Microprocessor
Microprocessor 8085 Microprocessor
The important features of 8085 microprocessor. least 3 clocking cycles, it forces the
microprocessor to reset itself.
8085 MICROPROCESSOR Resetting the microprocessor means:
The important features of 8085 μp are : Clearing the PC and IR.
1. It is a 8 bit microprocessor. Disabling all interrupts
2. It has 16 bit address bus and hence can (except TRAP).
address up to 216 = 65536 bytes (64KB) Disabling the SOD pin.
memory locations through A0-A15. All the buses (data, address, control) are
3. The first 8 lines of address bus and 8 lines tri- stated.
of data bus are multiplexed AD0 – AD7. Gives HIGH output to RESET OUT pin.
4. Data bus is a group of 8 lines D0 – D7. RESET OUT:
5. It supports 5 hardware interrupt and 8 It is used to reset the peripheral devices
software interrupt. and other ICs on the circuit.
6. A 16 bit program counter (PC) It is an output signal.
7. A 16 bit stack pointer (SP) It is an active high signal.
8. Six 8-bit general purpose register arranged The output on this pin goes high
in pairs: BC,DE, HL. whenever RESET IN is given low signal.
9. It requires a signal +5V power supply The output remains high as long as RESET
10. Maximum Clock Frequency is 3MHz and IN is kept low.
Minimum Clock Frequency is 500kHz
SID AND SOD
PIN DIAGRAM OF 8085 Pin 4 (Input) and Pin 5 (Output)
SID (Serial Input Data):
It takes 1 bit input from serial port of 8085.
Stores the bit at the 8th position (MSB) of
the Accumulator.
RIM (Read Interrupt Mask) instruction is
used to transfer the bit.
SOD (Serial Output Data):
It takes 1 bit from Accumulator to serial
port of 8085.
Takes the bit from the 8th position (MSB)
of the Accumulator.
SIM (Set Interrupt Mask) instruction is
used to transfer the bit.
INTERRUPT PINS
Interrupt:
It means interrupting the normal execution
X1 & X2
of the microprocessor.
Pin 1 and Pin 2 (Input)
When microprocessor receives interrupt
These are also called
signal, it discontinues whatever it was
Crystal Input Pins.
executing.
Crystal input pins have only one function.
It starts executing new program indicated
That is to provide stable clock pulses to
by the interrupt signal.
the digital circuit.
Interrupt signals are generated by external
8085 can generate clock signals internally.
peripheral devices.
To generate clock signals internally, 8085
After execution of the new program,
requires external inputs from X1 and X2.
microprocessor goes back to the previous
program.
RESET IN AND RESET OUT
Pin 36 (Input) and Pin 3 (Output)
SEQUENCE OF STEPS WHENEVER THERE
RESET IN:
IS AN INTERRUPT
It is used to reset the microprocessor.
Microprocessor completes execution of
It is active low signal.
current instruction of the program.
PC contents are stored in stack.
PC is loaded with address of the new digits in a single instance of calculation,
program. but as many as eight digits in two instances
After executing the new program, the and 16 in four instances.
microprocessor returns back to the The microprocessor is also known as a
previous program. "MPU (microprocessing unit)",
It goes to the previous program by reading "microprocessor", or simply "processor."
the top value of stack.
INPUT DEVICE (INPUT)
ARCHITECTURE OF MICROPROCESSOR A data input device. The keyboard and
mouse of a PC, for example, are data input
devices. With a built-in controller,
switches and sensors are input devices.
These input devices cannot be directly
connected to a CPU, but they must be
attached to the CPU by way of a
"peripheral IC," containing connection
The microprocessor is a single IC package in circuitry. Depending on the kind of input
which several useful functions are integrated device to be connected to the CPU, an
and fabricated on a single silicon semiconductor appropriate peripheral IC is used.
chip. Its architecture consists of a central
processing unit, memory modules, a system bus, OUTPUT DEVICE (OUTPUT)
and an input/output unit. A data output device. The display and
printer of a PC, for example, are data
MICROPROCESSOR CONFIGURATION output devices. With a built-in controller,
display LEDs, motors, heaters and so on
are output devices. Like input devices,
output devices are attached to a CPU by
way of a "peripheral IC." Depending on
the kind of output device to be connected
to the CPU, an appropriate peripheral IC is
used.
Input devices and output devices are
collectively called "peripherals."
I/O INTERFACE
Input-Output Interface is used as an
method which helps in transferring of
information between the internal storage
devices i.e. memory and the external
peripheral device .
REGISTERS
Registers are small amounts of high-speed
COMMON CPU COMPONENTS
memory contained within the CPU. They are
The central processing unit (CPU) consists of six
used by the processor to store small amounts of
main components:
data that are needed during processing, such as:
control unit (CU)
the address of the next instruction to be
arithmetic logic unit (ALU)
executed
registers
the current instruction being decoded
cache
the results of calculations
buses
clock
Different processors have different numbers of
All the components work together to allow
registers for different purposes. Most have
processing and system control.
some, or all, of the following:
program counter (PC)
BLOCK DIAGRAM OF CPU
memory address register (MAR)
memory data register (MDR)
current instruction register (CIR)
accumulator (ACC)
DEFINITION
A processor register or simply register is a
quickly accessible location available to a
computer's processor. Registers usually
consist of a small amount of fast storage,
although some registers have specific
CONTROL UNIT hardware functions, and may be read-only
The CU provides several functions: or write-only.
it fetches, decodes and executes
instructions CACHE
it issues control signals that Cache is a small amount of high-
control hardware components within the speed random access memory (RAM) built
CPU directly within the processor. It is used to
it transfers data and instructions around temporarily hold data and instructions that
the system the processor is likely to reuse. This allows
The control unit is a component of a for faster processing, as the processor
computer's central processing unit that does not have to wait for the data and
directs the operation of the processor. A instructions to be fetched from the RAM.
CU typically uses a binary decoder to
convert coded instructions into timing and CLOCK
control signals that direct the operation of The CPU contains a clock which, along with
the other units. the CU, is used to coordinate all of the
computer's components. The clock sends
ARITHMETIC LOGIC UNIT out a regular electrical pulse which
Arithmetic logic unit (ALU) synchronises (keeps in time) all the
The ALU has two main functions: components.
it performs arithmetic and logical The frequency of the pulses is known
operations (decisions). as clock speed. Clock speed is measured
in hertz (Hz). The greater the speed, the
more instructions can be performed in any such as the display and printer. Hard disk
given moment of time. drives, floppy disk drives and optical disc
drives serve as both input and output
BUSES devices. Computer networking is another
A bus is a high-speed internal connection. form of I/O.
Buses are used to send control signals and
data between the processor and other DATA SIZE
components.
Three types of bus are used.
Address bus - carries memory addresses
from the processor to other components
such as primary storage and input/output
devices. The address bus is unidirectional.
Data bus - carries the data between the
processor and other components. The data
bus is bidirectional.
Control bus - carries control signals from
the processor to other components. The INTERNAL STRUCTURE AND BASIC OPERATION
control bus also carries the clock's pulses. OF MICROPROCESSOR
The control bus is unidirectional.
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- ARITHMETIC AND LOGIC UNIT (ALU)
loaded with data and software that never The component that performs the
changes, so the CPU can only read from it. arithmetic and logical operations
ROM is typically used to store the the most important components in a
computer's initial start-up instructions. microprocessor, and is typically the part of
In general, the contents of RAM are erased the processor that is designed first.
when the power to the computer is turned able to perform the basic logical
off, but ROM retains its data indefinitely. operations (AND, OR), including the
In a PC, the ROM contains a specialized addition operation.
program called the BIOS that orchestrates
loading the computer's operating system INTERNAL STRUCTURE OF ALU
from the hard disk drive into RAM
whenever the computer is turned on or
reset.
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 CONTROL UNIT
the system, and outputs are the signals or The circuitry that controls the flow of
data sent from it information through the processor, and
Devices that provide input or output to the coordinates the activities of the other units
computer are called peripherals within it.
On a typical personal computer, In a way, it is the "brain within the brain",
peripherals include input devices like the as it controls what happens inside the
keyboard and mouse, and output devices
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.
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 PROGRAM COUNTER (PC)
CPU have will result in easier programming a 16 bit register, used to store the next
tasks. address of the operation code to be
Registers are normally measured by the fetched by the CPU.
number of bits they can hold, for example, Not much use in programming, but as an
an "8-bit register" or a "32-bit register". indicator to user only.
Purpose of PC in a Microprocessor
REGISTER IN MOTOROLA 68000 to store address of tos (top of stack)
MICROPROCESSOR to store address of next instruction to be
executed.
count the number of instructions.
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.
EXAMPLE OF MICROPROCESSORS
Intel 8086
Motorola 6800
Zilog Z80
The three microprocessors mentioned
above paved way to the modern
microprocessors that we have today and