Академический Документы
Профессиональный Документы
Культура Документы
8085 INTRODUCTION
The features of INTEL 8085 are : It is an 8 bit processor. It is a single chip N-MOS device with 40 pins. It has multiplexed address and data bus.(AD0-AD7). It works on 5 Volt dc power supply. The maximum clock frequency is 3 MHz while minimum frequency is 500kHz. It provides 74 instructions with 5 different addressing modes.
8085 INTRODUCTION
It provides 16 address lines so it can access 2^16 =64K bytes of memory. It generates 8 bit I/O address so it can access 2^8=256 input ports. It provides 5 hardware interrupts:TRAP, RST 5.5, RST 6.5, RST 7.5,INTR. It provides Acc ,one flag register ,6 general purpose registers and two special purpose registers(SP,PC). It provides serial lines SID ,SOD.So serial peripherals can be interfaced with 8085 directly.
Address Bus
8085 ARCHITECTURE
Flag Register
- 8 bit register - shows the status of the microprocessor before/after an operation - S (sign flag), Z (zero flag), AC (auxillary carry flag), P (parity flag) & CY (carry flag)
D7 S D6 Z D5 X D4 AC D3 X D2 P D1 X D0 CY
- Sign Flag
Used for indicating the sign of the data in the accumulator The sign flag is set if negative (1 - negative) The sign flag is reset if positive (0 -positive)
Zero Flag
- Is set if result obtained after an operation is 0 - Is set following an increment or decrement operation of that register
10110011 + 01001101 --------------100000000
Carry Flag
Parity Flag
- Is set if parity is even - Is cleared if parity is odd
Register Group
Temporary registers (W,Z):These are not available for user. These are loaded only when there is an operation being performed. General purpose:There are six general purpose registers in 8085 namely B,C,D,E,H,L.These are used for various data manipulations. Special purpose :There are two special purpose registers in 8085: SP :Stack Pointer. PC:Program Counter.
1. 2.
Registers
- General Purpose Registers
B, C, D, E, H & L (8 bit registers) Can be used singly Or can be used as 16 bit register pairs
- BC, DE, HL
Address
16
Data
Register Group
Stack Pointer: This is a temporary storage memory 16 bit register. Since there are only 6 general purpose registers, there is a need to reuse them . Whenever stack is to be used previous values are PUSHED on stack and then after the program is over these values are POPED back. Program Counter: It is 16 bit register used to point the location from which the next instruction is to be fetched. When a single byte instruction is executed PC is automatically incremented by 1. Upon reset PC contents are set to 0000H and next instruction is fetched onwards.
INTERRUPT CONTROL
It accepts different interrupts like TRAP INT5.5,6.5,7.5and INTR.
- In order to separate the address from the data, we can use a latch to save the value before the function of the bits changes.
Demultiplexing AD7-AD0
- From the above description, it becomes obvious that the AD7- AD0 lines are serving a dual purpose and that they need to be demultiplexed to get all the information. - The high order bits of the address remain on the bus for three clock periods. However, the low order bits remain for only one clock period and they would be lost if they are not saved externally. Also, notice that the low order bits of the address disappear when they are needed most. - To make sure we have the entire address for the full three clock cycles, we will use an external latch to save the value of AD7- AD0 when it is carrying the address bits. We use the ALE signal to enable this latch.
Demultiplexing AD7-AD0
8085
A15-A8 ALE AD7-AD0 Latch
-A
D7- D0
- Given that ALE operates as a pulse during T1, we will be able to latch the address. Then when ALE goes low, the address is saved and the AD7- AD0 lines can be used for their purpose as the bi-directional data lines.
8085
A15-A8
ALE
CS
A9- A0
AD7-AD0 Latch
-A
WR RD IO/M
D7- D0
RD WR