Lecture-12 INTERNAL ARCHITECTURE OF INTEL 8085: The Functional Block Diagram Of 8085 Is Shown In Fig 16.

Similar documents
The functional block diagram of 8085A is shown in fig.4.1.

Assembly Language Programming of 8085

EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER

Lecture-19 MICROPROCESSOR INSTRUCTIONN SET: Each subsystem in a microprocessor based system the memory, the microprocessor and the input and output

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

Assembly Language Programming of 8085

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller

VARDHAMAN COLLEGE OF ENGINEERING (AUTONOMOUS) Shamshabad, Hyderabad

Chapter 3. Z80 Instructions & Assembly Language. Von Neumann Architecture. Memory. instructions. program. data

1. Internal Architecture of 8085 Microprocessor

(2) Explain the addressing mode of OR What do you mean by addressing mode? Explain diff. addressing mode for 8085 with examples.

8086 INTERNAL ARCHITECTURE

Introduction to Microprocessor

Basics of Microprocessor

MICROPROCESSOR BASICS AND RELATED TERMS

Intel 8086 MICROPROCESSOR ARCHITECTURE

MICROPROCESSOR B.Tech. th ECE

Microprocessor. By Mrs. R.P.Chaudhari Mrs.P.S.Patil

Chapter 1: Basics of Microprocessor [08 M]

LIST OF PROGRAMS. Prg. Name of the Program. 1 Study of Pin Diagram of Study of Architecture of Study of 8085 Kit.

1. Internal Architecture of 8085 Microprocessor

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY

Microprocessor Architecture

MICROPROCESSOR MICROPROCESSOR. From the above description, we can draw the following block diagram to represent a microprocessor based system: Output

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING

Intel 8086 MICROPROCESSOR. By Y V S Murthy

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly.

Introduction to Assembly Language Programming (Instruction Set) 1/18/2011 1

8085 INSTRUCTION SET INSTRUCTION DETAILS

Lecture 5:8086 Outline: 1. introduction 2. execution unit 3. bus interface unit

Machine Cycle- 2 or (Machine Cycle-1 of next instruction):

CHAPTER ASSEMBLY LANGUAGE PROGRAMMING

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT I THE 8085 & 8086 MICROPROCESSORS. PART A (2 Marks)


1. Introduction to Assembly Language

PESIT Bangalore South Campus

Lecture 15 Intel Manual, Vol. 1, Chapter 3. Fri, Mar 6, Hampden-Sydney College. The x86 Architecture. Robb T. Koether. Overview of the x86

UNIT-II. Part-2: CENTRAL PROCESSING UNIT

Practical Course File For

SRI VENKATESWARA COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF ECE EC6504 MICROPROCESSOR AND MICROCONTROLLER (REGULATION 2013)

UNIT I. Differences between: Microcomputer, Microprocessor and Microcontroller

Instruction set of 8085

COMPUTER ORGANIZATION & ARCHITECTURE

1-Operand instruction types 1 INC/ DEC/ NOT/NEG R/M. 2 PUSH/ POP R16/M16/SR/F 2 x ( ) = 74 opcodes 3 MUL/ IMUL/ DIV/ DIV R/M

Programming of 8085 microprocessor and 8051 micro controller Study material

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

The x86 Architecture

INSTRUCTION SET OF 8085

Machine Cycle- 1: OFMC: Status signals IO/M=0, S 1 =1, S 0 =1

4- MACHINE LANGUAGE CODING 4-1THE INSTRUCTION SET:

CHAPTER SIX BASIC COMPUTER ORGANIZATION AND DESIGN

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I

Mnem. Meaning Format Operation Flags affected ADD Addition ADD D,S (D) (S)+(D) (CF) Carry ADC Add with ADC D,C (D) (S)+(D)+(CF) O,S,Z,A,P,C

N <B 2 > N+1 <B 3 > N+2

1. Internal Architecture of 8085 Microprocessor

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY COMMUNICATION ENGINEERING REG 2008 TWO MARKS QUESTION AND ANSWERS

Subject Code: Model Answer Page No: /25

2003 LXI H, 42F2H ; this instruction store 42F2 in to the HL pair POP H ; store data from top of the stack to HL pair

Architecture of 8085 microprocessor

9/25/ Software & Hardware Architecture

MICROPROCESSOR PROGRAMMING AND SYSTEM DESIGN

3.1 Description of Microprocessor. 3.2 History of Microprocessor

4 Categories Of 8085 Instructions That Manipulate Data

COMPUTER ARCHITECTURE AND ORGANIZATION Register Transfer and Micro-operations 1. Introduction A digital system is an interconnection of digital

Chapter 7 Central Processor Unit (S08CPUV2)

ELECTRICAL ENGINEERING

Module 3 Instruction Set Architecture (ISA)

UNIT 2 PROCESSORS ORGANIZATION CONT.

8/26/2010. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to Three Units of 8085

12-Dec-11. Gursharan Singh Maninder Kaur. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to 8085

QUESTION BANK. EE 6502 / Microprocessor and Microcontroller. Unit I Processor. PART-A (2-Marks)

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

Marking Scheme. Examination Paper Department of CE. Module: Microprocessors (630313)

Code segment Stack segment

SAMPLE STUDY MATERIAL

ELEG3924 Microprocessor

CHAPTER 8: Central Processing Unit (CPU)

ELEG3923 Microprocessor Ch.2 Assembly Language Programming

A Presentation created By Ramesh.K Press Ctrl+l for full screen view

EXPERIMENT NO.1. A Microcontroller is a complete computer system built on a single chip.

CC411: Introduction To Microprocessors

ENE 334 Microprocessors

Lecture 5: Computer Organization Instruction Execution. Computer Organization Block Diagram. Components. General Purpose Registers.

Complex Instruction Set Computer (CISC)

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

PESIT Bangalore South Campus

Microprocessor and Assembly Language Week-5. System Programming, BCS 6th, IBMS (2017)

Sunday, April 25, 2010

13. IN PORT: This is an ALP statement. PORT is the symbolic name given to 8-bit address of the input device available as a 2 nd byte of the

CSIS1120A. 10. Instruction Set & Addressing Mode. CSIS1120A 10. Instruction Set & Addressing Mode 1


Introduction to Computers - Chapter 4

Computer Architecture

Instruction : A command to the microprocessor to perform a given task on specified data. Each instruction has two parts

CPU Design John D. Carpinelli, All Rights Reserved 1

8051 Overview and Instruction Set

Microcontroller Intel [Instruction Set]

E3940 Microprocessor Systems Laboratory. Introduction to the Z80

Chapter 5. Computer Architecture Organization and Design. Computer System Architecture Database Lab, SANGJI University

Transcription:

Lecture-12 INTERNAL ARCHITECTURE OF INTEL 8085: The Functional Block Diagram Of 8085 Is Shown In Fig 16. It consists of five essential blocks. (1) ARITHMEDIC LOGIC SECTION (2) REGISTER SECTION (3) THE INTERRUPT CONTROL SECTION (4) SERIAL I/O SECTION (5) THE TIMING AND CONTROL UNIT

The description of each unit follows. There is an internal bi directional bus of 8 bits. All the internal registers which transfer data to the internal bus are tri state registers. (1) ARITHMETIC LOGIC SECTION: This section consists of (a) Accumulation(A) (b) Temporarily Register (TR) (c) A flag register (FR) (d) An arithmetic logic unit (ALU) (1) ACCUMULATION (A): It is a 8 bit tri state register accessible to the user. Its tri state output is connected to the internal bus in addition, it has a two state 8 bit output. The content of the accumulator is always available at this two state output as the accumulator can be manipulated through instruction. Its content can be incremented its content can be decremented. Its content can be transferred to memory location. The content of a memory location can be transfers to the accumulator. All these can be done through instructions. The result of an arithmetic operation carried out by ALU shall also be stored back in the accumulator the result of the operation, hence the name accumulator. (2) TEMPORARILY REGISTER (TR): This is an 8 bit register not accessible to the user. It is used by the µp for internal operations. The second operand as and when necessary shall be loaded into this register by the µp before the desired operation takes place in the ALU. The register has 8 bits two state output. This shall be the second operand to the ALU. (3) ARITHMETIC LOGIC UNIT (ALU): ALU is a combination logic block which performs the desired operation on the two operands. One from the A and the other from the TR as the dictate of the control signals. Generated by the timing & control unit. In 8085 µp binary addition operation, binary subtraction operations are the only arithmetic section possible. The result of only arithmetic section possible. The results of the operation shall the stored back in a accumulator when the instruction to be executed is

subtraction operation, then the content of the TR shall subtracted from the content of the accumulator and result shall be stored back in the accumulator. (4) FLAG REGISTER: Flag register is a bit register accessible to the user through instruction each bit in the flag register has a specific functions only of the bit are used as shown in fig 17. D7 D0 S Z AC P CY The three crossed bits are redundant bits and not used. They can be either 0 or 1. It is immaterial but normally forced to be zero. These five bits are affected as a result of execution of an instruction. All instruction execution do not affected the flags e.g. data transferring operation do not affect these flags the arithmetic operation effect all these flags the meaning & the effect of the fleegs are as follow; CY CARRY FLAG BIT: this particular bit is SET if there is a carry from the MSB position during an addition operation or if there is a borrow during the subtraction operation, otherwise this flag is RESET. P-PARITY FLAG BIT: The E flag is SET if the result of an operation contains even nos of 1 s otherwise it is RESET. AC- AOXILIARY CARRY FLAG BIT: This bit is SET if there is a carry from A 3 bit to A 4 bit of the accumulator during the process of executing operation connected with an accumulator otherwise it is RESET. The AE flag is useful for arithmetic & is used in a particular instruction known as DAA (Decimal adjust accumulates). Z-ZERO FLAG: Zero flag bit is SET if the result of an operation is zero, otherwise it is RESET. S-SIGN FLAG: This flag is SET if the MSB of the result is a 1 otherwise it is RESET. As an example, let us consider the execution of the instruction ADDB. ADD is the mnemonic for addition B is the second operand. The

first operand is known to exist as the content of the accumulator. The meaning of the instruction is add the content of the B register to the content of A register and store the result back in the accumulator, symbolically, we write the macro RTL complemented. (A) (A) + (B). Let us suppose the contents of the A& B register are, (A) = 9BH & (B) = A5H.before the execution of the instruction. It mean content of (A) & (B) are, A 1001 1011 B 1010 0101 A B 1 0100 0000 A cy 1111 1111AC As a result of addition there is a carry from A 3 will be A 4 position in the example and therefore, AC will be SET. Also there is a carry from the MSB cut & therefore CY flag will also be SET soon after the execution of ADD B instruction the accumulator certain (A) = (0100 0000) 2 40 H and is not zero. Therefore the Z flag is RESET to zero. Also the result certain only one 1 an add number. Therefore the parity pit will also be RESET to 0, therefore, the sign flag shall be RESET to 0. Thus the flag register contains soon after the execution instruction are 0001 0001 B = 11 H. As a second example, consider another instruction DCR C. DCR is the mnemonic for decrement. C is the operand. This information means decrement the content of the C register by 1 and store it back in the C register, the MACRO RTL implemented is 1 C C C C Let us suppose C contains (C) =D2H before the execution of the instruction after the instruction, C shall contains D1H and therefore in not zero. Therefore the flag register will be affected as follows.

S Z X AC X P X CY FR = 1 0 0 0 0 1 0 0 On the other hand, if a contains 01 H just before the execution if the instruction, C shall contain 00 H. Since the result of the operation is 0 the zero flag shall now be SET to 1. Other flag will be affected in the normal way. These flag bits are utilized in many instructions for branding operations during the execution of a programme normally one of these bits are tested for TRUE or FALSE condition depending upon the condition the programme branches. This is shown in fig 18. REGISTER SECTION: There are 6-8 bit register designed B, C, D, E, H, & L. all are accessible to the user. In an instruction these six 8bit register along with the accumulator A shall be identified by a 8 bit code designated either SSS or DDD. Whenever SSS is used, it corresponds to service register. Whenever, DDD is used, it corresponds to destination register. The code used as follows, SSS or DDD 000 ----- B 001 ----- C 010 ----- D 011 ----- E 100 ----- H 101 ----- L 111 ----- A

Note in the above code 110 is not used. Whenever 110 is used for SSS or DDD, it means a specific register pair (H,L), together to from 16 bit register known as memory address register (MAR) or M- pointer. As an example consider the instruction MOV V 1, V 2 This is an ALP statement, MOV is the mnemonic for move, and V 1, v 2 are the operand register, in the statement, V 2 is the source register and V 1 is the destination register. The meaning of the instruction is MOVE the contents of v 2 register into V 1 register5. Symbolically this basic operation can be described by a basic RTL statement (V 1 ) ---- (V2). This is a single byte instruction. The single byte being the operation code. The arrangement of the op code single byte is shown in fig 19. V 1 code V 2 code 0 1 D D D S S S Fig 19 (a) gives the example of MOV A, H code for this statement is, 0 1 1 1 1 1 0 0 For move fig 19 (a). The opcode is read is together 0111 1100 B = 7C H. when the instruction7c H is executed content of H register shall be transferred to A register. Note that content of H register is not destroyed. However, the original content of A register is lost. Let us take another example for the use of code 110. Consider the instruction MOV D, M This is an ALP statement, M is the source of the operand and D is the destination register. MOV is the mnemonic for move. The meaning of the instruction is move the content of this memory location whose address is available in (H, L) pair into the D register. This is a single byte instruction. The operation code is 01010110 B = 56 B

Figure 20 Whenever the instruction 56 H is executed content of the memory location whose address is available in (H,L) pair shall be loaded into the D register. The content of the memory location is not destroyed. However, the content of the memory location Y 1 Y 0 H whose address is X 3 X 2 X 1 X 0 H available in (H,L) pair goes into the D register. The original content of D is lost. This is illustrated in fig 20. The six general purpose register B, C, E, H, L can also be combined together as register pairs are possible. (B,C) pair with lower order 8 bits & B higher order 8 bits; (P,E) pair, E lower order 8 bits, D higher order 8 bits, (H,L) pair with L- lower order 8 bits & H higher order 8 bits. There is another register name stock pointer, (S,F) which is 16 bits register itself. Whenever an instruction refers to the register pair (B,C), (D,E), (H,L), or (S,P) a 2 bit code RP is used to identify the register pairs (R stands for the register pairs. (R stands for one bit & P stands for other bit) RP 00 ----- (B, C) 01 ----- (D, E) 10 ----- (H, L) 11 ----- SP --------- (SPH, SPL)