8085 INTERNAL ARCHITECTURE.  Upon completing this topic, you should be able to: State all the register available in the 8085 microprocessor and explain.

Slides:



Advertisements
Similar presentations
Microprocessors and Interfacing
Advertisements

Microprocessors.
Parul Polytechnic Institute
Dr. Rabie A. Ramadan Al-Azhar University Lecture 3
Control path Recall that the control path is the physical entity in a processor which: fetches instructions, fetches operands, decodes instructions, schedules.
Arithmetic Logic Unit (ALU)
ARITHMETIC LOGIC SHIFT UNIT
MICROPROCESSORS TWO TYPES OF MODELS ARE USED :  PROGRAMMER’S MODEL :- THIS MODEL SHOWS FEATURES, SUCH AS INTERNAL REGISTERS, ADDRESS,DATA & CONTROL BUSES.
Chapter 2 HARDWARE SUMMARY
The 8085 Microprocessor Architecture
Introduction to Microprocessors (CS 45) Session Microprocessor - 2.
Microprocessor and Microcontroller
The 8085 Microprocessor Architecture. Contents The 8085 and its Buses. The address and data bus ALU Flag Register Machine cycle Memory Interfacing The.
Processor System Architecture
Parul Polytechnic Institute Subject Code : Name Of Subject : Microprocessor and assembly language programming Name of Unit : Introduction to Microprossor.
BLOCK DIAGRAM OF INTEL 8085 GURSHARAN SINGH TATLA
TK 2633 Microprocessor & Interfacing
1 TK2633TK Microprocessor Architecture DR MASRI AYOB.
Room: E-3-31 Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 1: Introduction to 8085 Assembly Language.
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ input/output and clock inputs Sequence of control signal combinations.
Unit-1 PREPARED BY: PROF. HARISH I RATHOD COMPUTER ENGINEERING DEPARTMENT GUJARAT POWER ENGINEERING & RESEARCH INSTITUTE Advance Processor.
created by :Gaurav Shrivastava
Electrical Engineering Department Engineering College Prince Sattam bin Abdul Aziz University Text Book: - Triebel and Singh, "The 8088 and 8086 Microprocessors",
Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is.
Microprocessor. Interrupts The processor has 5 interrupts. CALL instruction (3 byte instruction). The processor calls the subroutine, address of which.
8085. Microcomputer Major components of the computer - the processor, the control unit, one or more memory ICs, one or more I/O ICs, and the clock Major.
Z80 Overview internal architecture and major elements of the Z80 CPU.
MICROPROCESSORS AND APPLICATIONS
Introduction to Microprocessors - chapter3 1 Chapter 3 The 8085 Microprocessor Architecture.
Computer Architecture Lecture 4 by Engineer A. Lecturer Aymen Hasan AlAwady 17/11/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
MACHINE CYCLE AND T-STATE
MICROPROCESSOR DETAILS 1 Updated April 2011 ©Paul R. Godin prgodin gmail.com.
The 8085 Microprocessor Architecture. What 8085 meant for? 80 - year of invention bit processor 5 - uses +5V for power.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
8085 Microprocessor: Architecture & Support Components.
Block diagram of a computer system Basic components of a computer system using block diagrams: Cpu Memory Input and output unit Evolution of microprocessor.
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ read/write and clock inputs Sequence of control signal combinations.
Gandhinagar Institute of Technology
8 085Microprocessor Temp Reg (8) Accumulator (A reg) Flag flip flops(8) Instruction Register (8) Arithmetic Logic Unit ALU Instruction Decoder and Machine.
Architecture of 8085 Nitin Mishra. Registers Microprocessor Instruction Cache Arithmetic & Logic Unit Control Unit Bus Interface Unit Data Cache Instruction.
AMITY UNIVERSITY RAJASTHAN Present By M.Sc Applied Chemistry.
The 8085A is a general-purpose microprocessor with low hardware overhead requirements. Within the 8085A are contained the functions of clock generation,
Unit Microprocessor.
8085 Microprocessor Architecture
Seminar On 8085 microprocessor
COURSE OUTCOMES OF Microprocessor and programming
BLOCK DIAGRAM OF INTEL 8085.
Everybody.
The 8085 Microprocessor Architecture
Gunjeet Kaur Dronacharya Group of institutions
Assembly Language Programming of 8085
Introduction to microprocessor (Continued) Unit 1 Lecture 2
CPU Sequencing 6/30/2018.
The 8085 Microprocessor Architecture
Introduction of microprocessor
TAO1221 COMPUTER ARCHITECTURE AND ORGANIZATION LAB 3 & 4 Part 1
Dr. Michael Nasief Lecture 2
8085 microprocessor.
8085 Microprocessor Architecture
The 8085 Microprocessor Architecture
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Architecture of Microprocessor (Intel 8085) Unit-I
Number Representations and Basic Processor Architecture
Architecture & Support Components
8085 Microprocessor Architecture
The 8085 Microprocessor Architecture
8085 Microprocessor Architecture
Register sets The register section/array consists completely of circuitry used to temporarily store data or program codes until they are sent to the.
Computer Operation 6/22/2019.
CPU Sequencing 7/20/2019.
Presentation transcript:

8085 INTERNAL ARCHITECTURE

 Upon completing this topic, you should be able to: State all the register available in the 8085 microprocessor and explain their function Explain the function of stack Depict the ALU subsystem List and describe the function of control logic signal in the processor Elaborate the process of de-multiplexing data bus and address bus 2

3

4

 6 x 8-bit registers with addresses B, C, D, E, H & L  Can be concatenated to form 3 x 16-bit registers with addresses BC, DE & HL.  Note : 16-bit register HL used as a memory pointer with many 8085A instructions. e.g MOV A, M which copies the contents of the memory location whose address is specified by the contents of the HL register pair to the CPU register A Note the assembly language instruction format MOV  16-bit register SP. It contains the address of the memory location of the top of the stack area of memory. It is automatically controlled by the processor but can be initialized by software.  16 – bit register PC. It contains the address of the memory location from where the CPU is to fetch the next instruction byte. 5

 The program counter is a 16-bit CPU register.  The program counter always contains the address of the memory location from where the CPU is to fetch the next instruction byte.  The program counter is automatically incremented every time the CPU fetches an instruction byte. Instructions are thus executed in the sequence they are loaded into program memory.  The contents of the program counter can be overwritten by execution of certain instructions e.g. jmp, call, ret etc.  The program counter is initialized to 0000H after processor reset or on power-up. 6

 The stack is a reserved area of memory. It operates as a last- in first-out bank of registers.  The memory locations, which constitute the stack, are used to store binary information temporarily during program execution.  The stack can be located anywhere in read/write memory, but is usually defined such that it neither interferes with the program memory space or the data memory space.  The start address of the stack is specified at the initialisation stage of the program by loading the 16-bit CPU register, called the stack pointer, with the desired address of the start of the stack. e.g LXI SP, data 16 7

 Data from CPU register pairs are stored in the stack area of memory when the processor executes a push rp instruction.  The contents of the program counter is automatically stored in the stack area of memory whenever the processor executes a call or restart (rst n) instruction.  Data stored in the stack area of memory are returned to processor register pairs when the processor executes a pop rp instruction.  Data is automatically transferred from the stack area of memory to the program counter whenever the processor executes a return (ret) instruction. 8

 To execute the instruction push HL assuming initial SP contents is 2099 H.  The stack pointer is decremented by 1 (SP=2098) and the contents of H are written to this location.  The stack pointer is decremented by 1 (SP=2097) and the contents of L are written to this location.  Note : When data is written to the stack the stack pointer is first decremented and then the data is written 9

 To execute the instruction pop BC assuming initial SP contents is 2097 H.  The contents of the memory location at the address specified by the contents of SP is moved to register C and SP is incremented.  The contents of the memory location at the address specified by the contents of SP is moved to register B and sp is incremented.  Note : When data is read from the stack the data is read first and then the stack pointer incremented. 10

11

12

 The ALU itself is a group of combinatorial logic circuits that can perform 8-bit arithmetic and logical operations. Included are :- add, sub, and, or, xor  The accumulator ( reg A ) is an 8-bit general purpose register that holds one of the source operands of an ALU operation. The result of the operation is also returned to the accumulator.  The temporary accumulator is an 8-bit register that holds the second operand used in a ALU operation. It is inaccessible to the user.  The decimal adjust unit allows the ALU to perform BCD arithmetic. (rarely used as it is usual to use binary, as opposed to BCD, arithmetic) 13

 The flag register is a collection of eight, single bit registers. It reflects outcomes of arithmetic or logical operations. The Sign Flag (S) reflects the contents of bit-7 of the accumulator The Zero Flag (Z) is set to ‘1’ if the accumulator contains all zero’s The Auxiliary Carry (AC) is a ‘1’ if the arithmetic operation caused a carry out from the bit-3 to the bit-4 position. (The auxiliary carry flag is used in BCD arithmetic) The Parity Flag (P) is a ‘1’ if the accumulator has an even number of ‘1’s The Carry Flag (CY) is set if the arithmetic operation caused a carry overflow (from addition) or a borrow (from subtraction). 14

 Example: ADD B; A contains 88 (H)B contains 99 (H) register A decimal register B decimal __________________ register A decimal  S = 0Bit D7 = 0 after addition  Z = 0The accumulator contains other than zero after addition  AC = 1There is a carry out of bit D3 to bit D4 during addition  P = 1The accumulator contains an even number of ‘1’s after addition  CY = 1There is an overflow as a result of the addition 15

16  The control logic subsystem of a microprocessor is a configurable sequential state machine.  It is configured by the instruction decoding circuitry to enable execution of a particular instruction.  It has associated with it a number of inputs and outputs, both from other subsystems of the CPU and from external devices.  It operates with respect to a stable clock reference signal provided by a crystal source. Typical clock frequencies for an 8085A microprocessor are in the order of 5-MHz.  The internal clock for the control logic is half the frequency of the external crystal source (i.e internally the crystal source clock is divided by 2)

17

18 A logic ‘0’ specifies the processor will read the data on the data bus. A logic ‘0’specifies that the processor has placed data (write) onto the data bus for an external device to read. A 3-bit status code that specifies the operation the processor is performing. (e.g 110 specifies the processor is fetching an opcode from program memory). A logic ‘1’ on the reset in input to the processor causes the program counter to be reset to 0000H. To indicate the processor has been reset a logic `1’, synchronized to the processor clock, is placed on this output.

19 Is a buffered version of the internal master clock of the 8085A. It is half the crystal frequency. An external device can request use of the system busses by driving the HOLD input to logic ‘1’. The 8085A acknowledges the request by asserting the HLDA output to logic ‘1’. It only does after it has relinquished control of the bus structure. When this signal is logic ‘1’ the processor specifies that it has valid address information on the CPU pins When this signal is logic ‘0’ the processor suspends execution of an instruction. It permits slow peripheral devices more time to access or load data.

3/8/  The 8085A microprocessor uses only 16 connections to interface the 8-bit data bus and 16-bit address bus.  Address bus lines are time multiplexed with data bus lines

21  Peripheral devices ( memory and IO ) require stable address data throughout a read or write operation.  The processor only provides A0 - A7 during the period ALE is in the logic ‘1’ state after which the multiplexed lines AD0 - AD7 assume the role of the data bus. ( D0 - D7 )  To provide external devices with stable address data throughout a read or write operation it is necessary to latch the low byte of the address using the ALE control signal.  By this mechanism it is possible for the 8085A computer system to have a 16-bit address bus and an 8-bit data bus whilst only using 16 processor connections ( AD0 - AD7 and A8 - A15 )

3/8/ Note : See through latches ( eg 74LS573 ) are the preferred type of latch. When clk (ALE) is logic ‘1’ the latch outputs follow the inputs and on the negative edge of clk the data is latched.