Class 2-Introduction To 8085 Microprocessor PDF
Class 2-Introduction To 8085 Microprocessor PDF
Microprocessor
Introduction to 8085
The 8085 is an 8-bit general purpose
microprocessor
It has an addressing capacity of 16 bits. Can
address 64K Byte of memory.
It has 40 pins and uses +5V for power. It can
run at a maximum frequency of 3 MHz.
Architecture of 8085
The processor contains 5 functional units
Arithmetic and Logic Unit
General purpose registers
Special purpose registers
Instruction registers and decoders
Timing and control unit
Accumulator
Status or Flag Register
Instruction Register
Program Counter
Stack Pointer
Accumulator
The accumulator is an 8-bit register that is a part
of arithmetic/logic unit (ALU).
This register is used to store 8-bit data and to
perform arithmetic and logical operations.
The result of an operation is stored in the
accumulator. The accumulator is also identified
as register A.
It also works as a via register for I/O accesses i.e.
it reads data from input device and similarly can
transfer data to output device.
Program Counter
This 16-bit register deals with sequencing the
execution of instructions.
This register is a memory pointer. Memory
locations have 16-bit addresses, and that is why
this is a 16-bit register.
Stack Pointer
A stack is a portion of RAM (Random access
memory).
The stack pointer is also a 16-bit register used
as a memory pointer.
It points to a memory location in R/W
memory, called the stack. The beginning of
the stack is defined by loading 16-bit address
in the stack pointer.
Instruction Register
Instruction register is 8-bit register which
temporarily stores the current instruction of a
program.
Latest instruction sent here from memory
prior to execution. Decoder then takes
instruction and decodes or interprets the
instruction.
Instruction Decoder
It accepts an OPCODE from instruction
register, decodes it and gives the decoded
information to control logic.
The control logic then provides control signals
Address Buffer
The contents of the stack pointer and program
counter are loaded into the address buffer and
address/data buffer.
These buffers are then used to drive the
external address bus and address/data bus.
Bus Structure
Data Bus
The data bus in8085 is of 8 parallel lines D
D
It is bi-directional as Microprocessor requires
to send or receive data from/to memory and
peripherals.
0
Address Bus
The bus over which the microprocessor sends
out the address of a memory location or I/O
location is called as the address bus.
In 8085 address bus is 16 bit A A
8085 can transfer maximum 16 bit address,
which means it can address 65,536 different
memory locations.
0
15
Control Bus
The control bus is used for sending control signals
to the memory and I/O devices.
The CPU sends control signal on the control bus
to enable the outputs of addressed memory
devices or I/O port devices.
Some of the control bus signals are as follows:
Memory read
Memory write
I/O read
I/O write.
Address Bus:
A8 - A15: (output; 3-state)
It carries the most significant 8 bits of the
memory address or the 8 bits of the I/O
address.
IO /M (output)
Select memory or an IO device.
This status signal indicates that the read /
write operation relates to whether the memory
or I/O device.
It goes high to indicate an I/O operation.
It goes low for memory operations.
S1 and S0 (Output)
Used to specify the kind of operation
S1
0
0
1
1
S0
0
1
0
1
States
Halt
Write
Read
Fetch
TRAP
RST 7.5
RST 6.5
RST 5.5
INTA
the
the