Showing posts with label 8080. Show all posts
Showing posts with label 8080. Show all posts

Friday, 3 January 2014

Pin diagram of 8085 microprocessor with complete explanation


+Kevin Styles 




Power Supply Signal and clock signal:
VCC:-Vcc is to be connected to +5V power supply.
Vss:-Ground reference
X1 and X2:- This pin is used for providing the clock frequency to the microprocessor. Generally Crystal oscillator or LC oscillator is used to generate the frequency. The frequency generated here is internally divided into two.As we know that the basic operating timing frequency of the microprocessor is 3 MHz so 
6 MHz frquency is applied.


Serial Input Output port:-
SID and SOD:-These pins are used for serial data communication.


Interrupt Signal:-
Pin 6 to 11:- These pins are used for interrupt signals. Generally and external devices are connected here which requests the microprocessor to perform a particular task.

There are 5 pins for hardware interrupts-
TRAP, RST7.5, RST 6.5, RST5.5 and INTR
INTA is used for acknowledgement. Microprocessor sends the acknowledgement to external devices through the INTA pin.


Address Bus and DATA Buses:-
AD0-AD7:-These are multiplexed address and data bus. So it can be used to carry the lower order 8 bit address as well as the data. Generally these lines are demultiplexed using the Latch.
During the opcode fetch operation, in the first clock cycle the lines deliever the lower order address bus  A0-A7.
In the subsequent IO/M read or write it is used as data bus D0-D7. CPU can read or write data through these lines.

A8-A15:- These are address bus used to address the memory location.


Control And Status Signal:-
S0 and S1:-It is used for the status signal in microprocessor.

ALE(Airthmetic Latch Enable):-This signal is used to capture the lower address presented on multiplexed address and data bus.

RD:-This is active low input generally
 used for reading operation.

WR:-This is active low input used for writing operation.

IO/M:-This pin is used to select the memory or input-output through which we want to communicate the data.

READY:-As we know that memory and input -output have slower response than microprocessor. So a microprocessor may now be able to handle further data till it completes the present job. So it is in waiting state. As it completes the present job it sets the READY pin. Microprocessor enters into wait state while READY pin is disabled.
RESET IN:-This is active low input. This pin is used to reset the microprocessor. An active low signal applied to this pin reset the program counter inside the microprocessor. The busses are tristated.
RESETOUT:-If we want to reset the external devices connected to the microprocessor then a signal applied to this pin resets the external devices.


DMA Request Signal:
HOLD and HLDA:-HOLD is an active high input signal used by the other controller to request microprocessor about use of address, data and control signal. The HOLD and HLDA signal are used for direct memory access(DMA). DMA controller receives a requests from a device and in turn issues the HOLD signal to the microprocessor.
The processor releases the system bus and then acknowledges the HOLD signal with HLDA signal. The DMA transfer thus begins.

8085 microprocessor


  • Introduction

    As discussed  earlier, 8085 microprocessor was introduced by Intel in the year 1976. This microprocessor is an update of 8080 microprocessor. The 8080 processor was updated with Enable/Disable instruction pins and Interrupt pins to form the 8085 microprocessor. Let us discuss the architecture of 8085 microprocessor in detail.
  • Features of 8085 microprocessor

    Before knowing about the 8085 architecture in detail, lets us briefly discuss about the basic features of 8085 processor.
    8085 microprocessor is an 8-bit microprocessor with a 40 pin dual in line package. The address and data bus are multiplexed in this processor which helps in providing more control signals. 8085 microprocessor has 1 Non-maskable interrupt and 3 maskable interrupts. It provides serial interfacing with serial input data (SID) and serial output data (SOD).
    It has a set of registers for performing various operations. The various registers include
    · Accumulator (register A)
    · Registers: B, C, D, E, H and L

    · Stack pointer
    · Program Counter
    · Temporary register
    · Instruction register
  • Architecture of 8085 microprocessor

    8085 consists of various units and each unit performs its own functions. The various units of a microprocessor are listed below
    · Accumulator
    · Arithmetic and logic Unit
    · General purpose register
    · Program counter
    · Stack pointer
    · Temporary register
    · Flags
    · Instruction register and Decoder
    · Timing and Control unit
    · Interrupt control
    · Serial Input/output control
    · Address buffer and Address-Data buffer
    · Address bus and Data bus




    Accumulator
Accumulator is nothing but a register which can hold 8-bit data. Accumulator aids in storing two quantities.
The data to be processed by arithmetic and logic unit is stored in accumulator.
It also stores the result of the operation carried out by the Arithmetic and Logic unit.
The accumulator is also called an 8-bit register. The accumulator is connected to Internal Data bus and ALU (arithmetic and logic unit). The accumulator can be used to send or receive data from the Internal Data bus.
Arithmetic and Logic Unit
There is always a need to perform arithmetic operations like +, -, *, / and to perform logical operations like AND, OR, NOT etc. So there is a necessity for creating a separate unit which can perform such types of operations. These operations are performed by the Arithmetic and Logic Unit (ALU). ALU performs these operations on 8-bit data.
But these operations cannot be performed unless we have an input (or) data on which the desired operation is to be performed. So from where do these inputs reach the ALU? For this purpose accumulator is used. ALU gets its Input from accumulator and temporary register. After processing the necessary operations, the result is stored back in accumulator.
General Purpose Registers
Apart from accumulator 8085 consists of six special types of registers called General Purpose Registers.
What do these general purpose registers do?
These general purpose registers are used to hold data like any other registers. The general purpose registers in 8085 processors are B, C, D, E, H and L. Each register can hold 8-bit data. Apart from the above function these registers can also be used to work in pairs to hold 16-bit data.
They can work in pairs such as B-C, D-E and H-L to store 16-bit data. The H-L pair works as a memory pointer.
A memory pointer holds the address of a particular memory location. They can store 16-bit address as they work in pair.



Program Counter and Stack Pointer
Program counter is a special purpose register.
Consider that an instruction is being executed by processor. As soon as the ALU finished executing the instruction, the processor looks for the next instruction to be executed. So, there is a necessity for holding the address of the next instruction to be executed in order to save time. This is taken care by the program counter.
A program counter stores the address of the next instruction to be executed. In other words the program counter keeps track of the memory address of the instructions that are being executed by the microprocessor and the memory address of the next instruction that is going to be executed.
Microprocessor increments the program whenever an instruction is being executed, so that the program counter points to the memory address of the next instruction that is going to be executed. Program counter is a 16-bit register.
Stack pointer is also a 16-bit register which is used as a memory pointer. A stack is nothing but the portion of RAM (Random access memory).
So does that mean the stack pointer points to portion of RAM?
Yes. Stack pointer maintains the address of the last byte that is entered into stack.
Each time when the data is loaded into stack, Stack pointer gets decremented. Conversely it is incremented when data is retrieved from stack.
Temporary Register:
As the name suggests this register acts as a temporary memory during the arithmetic and logical operations. Unlike other registers, this temporary register can only be accessed by the microprocessor and it is completely inaccessible to programmers. Temporary register is an 8-bit register.