E3940 Microprocessor Systems Laboratory. Introduction to the Z80
|
|
- Patricia Snow
- 6 years ago
- Views:
Transcription
1 E3940 Microprocessor Systems Laboratory Introduction to the Z80 Andrew T. Campbell comet.columbia.edu/~campbell E3940 Microprocessor Systems Laboratory Page 1 Z80 Laboratory Assignment Programming Assignment Part I - Getting Started Objective: To learn the basic operating characteristics of the Micro-Trainer Computer Preparation: Before beginning this experiment be sure that you have read chapters 1-2 (through page 2-18) of The Micro-Trainer Manual. No instruction Assignment need to be completed before you begin this experiment. E3940 Microprocessor Systems Laboratory Page 2
2 Z80 Laboratory Assignment Programming Assignment Part II - Subroutines and Timing Loops Objective: To show how program loops can be used to introduce delay in the flow of a computer program. Preparation: 1. Before working on a solution to this experiment be sure that you have read the entire experiment and have completed Instruction Assignment A (page A- 2) in the Laboratory Experiments for the Micro-Trainer. The commands given in Instruction Assignment A are sufficient to solve this programming problem. 2. You will also need to know the basics on Timing Loops so read over pages 2-1 to 2-3 in the Laboratory Experiments for the Micro-Trainer. E3940 Microprocessor Systems Laboratory Page 3 Code for Part II: Main Routine Address Code Label Instruction Comment E 80 START: LD A, 80H ; Value to initialize PORTS 1802 D3 C3 OUT (03CH), A ; Initializes ports for output E 00 LD A, 01H ; Uses accumulator for counter 1806 CD MAIN: CALL PAUSE ; Calls subroutine at 1900H 1809 CD CALL SHOW ; Calls subroutine at 1950H 180C D3 C0 OUT (0C0H), A ; Show counter on PORT A 180E C JP 1806H ; Restarts Main Loop 1900 C9 PAUSE: RET ; Return to calling program 1950 C9 SHOW: RET ; Return to calling program E3940 Microprocessor Systems Laboratory Page 4
3 Code for Pause Subroutine PAUSE: LD C, 00H ; Reset C register (7 T-States) INNER: DEC C ; First decrement makes C=255 (4 T-States) JP NZ, INNER ; Loop back to "DEC" instruction 256 times (10 T-States) This code segment requires approximately 2 msecs to execute, as shown: 7 T-States loops * (4+10 T-States/loop) = 3591 T-States 3591 * 0.56 usecs = msecs E3940 Microprocessor Systems Laboratory Page 5 Code for Show Subroutine Address Code Label Instruction Comment 1900 C5 PAUSE: PUSH BC ; Preserve value in BC ?? C1 POP BC ; Restore value in BC 19??+1 C9 RET ; Return to calling program Write a subroutine "SHOW" at address 1950H, which produces the following cycle display on the LEDs of PORT A: E3940 Microprocessor Systems Laboratory Page
4 Microprocessor Overview What is a microprocessor? A programmable device that reads binary instructions from memory, handles binary data as input and processes data according to instructions, and provides results as output What is main components of a up Central Processing Unit (CPU) Memory Input and Output (I/O) Constitutes both hardware (h/w) and software (s/w) MICRO- PROCESSOR MEMORY I/O E3940 Microprocessor Systems Laboratory Page 7 A Computers memory contains Binary Information Only ADDRESS Memory Cells Memory Chip E3940 Microprocessor Systems Laboratory Page 8
5 Simple Operations => Fetch => Decode => Execute => Input => Output E3940 Microprocessor Systems Laboratory Page 9 Building Blocks Arithmetic/Logic Unit (ALU), Control Unit (CU) The CPU contains: registers to store data, the ALU to perform arithmetic operations, instruction decoders, counters and control lines ALU performs operations on data, e.g., addition, subtraction, logic operations, AND, OR and EOR => result stored in register or memory Register array as temporary store during execution of programs Control Unit provides timing and control signals to all operations in the system => it controls the flow of data between the up and peripherals e.g., memory, I/O devices e.g., decoder, Network Interface Controller (NIC), etc. E3940 Microprocessor Systems Laboratory Page 10
6 Schematic Microprocessor Input Output ALU Register Array SYSTEM BUS Control ROM RWM E3940 Microprocessor Systems Laboratory Page 11 Instructions, ALU, CU and register Array Add operation includes microprograms (made up of microcode), registers, logic gates and clock: the clock initiates the add operation, the bit pattern of the add instruction initiate a sequence of clock signals, activates appropriate logic in ALU and performs the add operation => this add algorithm is called microprogram, which is done at the design stage of the up. The bit pattern which drives these canned microprograms are made available to the programmer in the form of the up instruction set Programmer designs programs (pseudo code, flow diagram) to implement an algorithm, Codes the instruction (from the set) to do the job, enter each instruction sequentially through an input device, CPU reads the bit pattern (instructions) on at a time, decode them, initiates the appropriate microprograms through the control unit, and performs the specific instruction. (ADD, LDDR?) E3940 Microprocessor Systems Laboratory Page 12
7 Typical Microprocessor Architecture ADDRESS DATA PROGRAM COUNTER MAR R A M INTERNAL BUS MDR ACCUMULATOR LATCH ACCUMULATOR ALU LATCH INSTRUCTION REGISTER ALU PSW INSTRUCTION DECODER & SEQUENCER E3940 Microprocessor Systems Laboratory Page 13 Sample Z80 Instructions Binary Code Mnemonic Function LD A,B A B LD C, H C H LD D, 5AH D 5AH ADD A, E A A + E JP 1900H PC 1900H OUT (13H), A Port 13H A HALT PC DISABLED E3940 Microprocessor Systems Laboratory Page 14
8 Z80 Programming register oriented Model Accumulator A register A reg (which forms part of the ALU) is used to perform ALU operations the results of which is stored in the A register flags F register - important in programming for decision making 6 flag bits are used and 2 unused in the 8-bit flags register results on an ALU operations is reflected by 6 possible flags c - carry flag (D0) z - zero flag (D6) s - sign flag (D7) p/v - parity overflow flag (D2) h - half-carry flag (D4) n - add substract flag (D3) c, z, s, p/v have two jump/call instructions based on set/reset which can be used in the code-stream SCF instruction? E3940 Microprocessor Systems Laboratory Page 15 Z80 Programming Model Alternate Registers Accumulator A Flags F Accumulator A' Flags F' B C B' C' D E D' E' H L H' L' Index Register IX Index Register IY Stack Pointer SP Program Counter PC Interupt Vector I Memory Refresh R D7 D6 D5 D4 D3 D2 D1 D0 S Z H P/V N C S = Sign; Z = Zero; H = Half Carry P/V = Parity/Overflow; N = Add/Substract E3940 Microprocessor Systems Laboratory Page 16
9 Register Set Alternative register set for A F B C D H L A.. L not visible to the programmer but can access via EXX (register pairs), EX (A and F)? What are these and what is this instruction useful for? memory pointers 4 16-bit registers used to hold memory address (pointers) index registers (IX) and (IY) are 16-bit memory pointers 16 bit stack pointer - used for temporary storage in programs LD SP, 1F00H; initialize stack pointer LD DE, 0000H; load register DE with 0 CALL DELAY; wait a while PUSH DE; place DE on the stack POP AF; clear accumulator and flags E3940 Microprocessor Systems Laboratory Page 17 PC and special purpose registers Program counter (PC) µp used to sequence executions of instructions, points to the next opcode to be fetched from ROM when the µp places an address on the address bus to fetch the byte from memory, it then increments the program counter by one to the next location Special purpose registers Interrupt vector register I register memory refresh register R register E3940 Microprocessor Systems Laboratory Page 18
10 The Flags Word The flag word describes the result of the last ALU operation ( result positive, negative, zero etc. ) The flag word is used primarily in conditional branch instructions to resolve the condition The flag word is labeled the f register in the Z80 The flag word is sometimes referred to as the psw (processor status word), or the condition code register in other microprocessors E3940 Microprocessor Systems Laboratory Page 19 Flags Word Contents and Organization ALU LATCH ACCUMULATOR ALU FLAGS S Z - H - PV N CY BRANCH CONDITIONS C - CARRY NC - NO CARRY Z - ZERO NZ - NOT ZERO P - PLUS M - MINUS PE - PARITY EVEN PD - PARITY ODD SIGN ZERO HALF- CARRY PARITY/ OVERFLOW ADD/ SUBTRACT CARRY E3940 Microprocessor Systems Laboratory Page 20
11 Addressing Mode Example #1 REGISTERS MEMORY IMMEDIATE MODE LD A, 3CH A 3CH (BEFORE EXECUTION) A F B D H PC 1900H SP C E L F E 1 8 F F E 3C 76 LD A, 3CH HALT (AFTER EXECUTION) A 3C F B D H PC 1902H SP C E L E3940 Microprocessor Systems Laboratory Page 21 Addressing Mode Example #2 REGISTERS MEMORY IMMEDIATE MODE LD A, (1905H) A (1905H) (BEFORE EXECUTION) A F B D H PC 1900H SP C E L (AFTER EXECUTION) 1 8 F E 1 8 F F A C LD A, (1905H) HALT A 3C F B D H PC 1903H SP C E L E3940 Microprocessor Systems Laboratory Page 22
12 Z80 Subroutines (Bye bye Wheeler!) Mnemonics Hex Code Memory Address LD SP, 1895H CALL 1850H CD Subroutine Next Instruction RET HALT SP 1895 XX Stack Locations E3940 Microprocessor Systems Laboratory Page 23 Putting it all Together Power GND Clock INSTRUCTION DECODER Address Bus REGISTERS ALU Data Bus External Requests Memory Pointer Registers Request Acknowledge FLAGS Control Signals E3940 Microprocessor Systems Laboratory Page 24
13 IO System A15 A8 A0 High Order Address Bus Low Order Address Bus Input Z80 EPROM RWM Input Output Output D0 - D7 SYSTEM BUS MEMRD_L MEM_WR_L IORD_L IOWR_L E3940 Microprocessor Systems Laboratory Page 25 E3940 Microprocessor Systems Laboratory Page 26
14 Z80 Kits E3940 Microprocessor Systems Laboratory Page 27 Z80 Memory Map and Port Map MICRO TRAINER MEMORY MAP MICRO TRAINER PORT MAP MXTZ Monitor ROM 0000 UNINSTALLED USER RAM SYSTEM RAM MTXZ Monitor ROM 2000 Analog Board Socket, U7 Analog Board Socket U8 Analog Board Socket U9 UNINSTALLED FFF FF EFF 1F00-1FFF FFF (ZAD Only) FFF FFF EPROM FF RAM FFF EPROM FF RAM FFFF 8255 PPI Keypad, Display Speaker, ZAD Unavailable Z80 CTC chip Unavailable Z80 PIO chip Unavailable Intf Board LEDs Analog Boards UNINSTALLED F F BF C0 - C3 C4 - CC CD - FF C4 - D/A C5 - D/A C6 - A/D C7 - (U/A) C8- R1 C9 - R2 CA - R3 CB - R4 CC - R5 E3940 Microprocessor Systems Laboratory Page 28
15 Opcode Fetch FIGURE 3.3 Z80 Memory Read Operation E3940 Microprocessor Systems Laboratory Page 29 Opcode Fetch: Bus Timings (M1 Cycle) E3940 Microprocessor Systems Laboratory Page 30
16 Instruction cycles, machine cycles and T-states Instruction cycle is the time taken to complete the execution of an instruction 1-6 machine/operation cycles Machine cycle is defined as the time required to complete one operation of accessing memory, accessing IO, etc. T-state = 1/f Z80 trainer? E.g. LD A, 9H 2 bytes instruction, 2 machine cycles (read opcode and operand) 4T + 3T = 7T execution time = 7x1/f (1.75 us for 4MHz) E3940 Microprocessor Systems Laboratory Page 31 M1 Refresh Cycle and Wait Signal Takes 4T to 6Ts Z80 includes built in circuitry for refreshing dynamic memory this simplifies the external interfacing hardware dynamic memory consists of MOS transistors, which store information as capacitive charges; each cell needs to be periodically refreshed Z80 refresh cycle is shown in Figure 3.4 during T3 and T4 (when Z80 is performing internal ops), the low order address is used to supply a 7-bit address for refresh (RFSH) wait signal the Z80 samples the wait signal during T2 if low then Z80 adds wait states to extend the machine cycle - used to interface memories with slow response time E3940 Microprocessor Systems Laboratory Page 32
17 Z80 Laboratory Assignment Programming Assignment Part I - Getting Started Objective: To learn the basic operating characteristics of the Micro-Trainer Computer Preparation: Before beginning this experiment be sure that you have read chapters 1-2 (through page 2-18) of The Micro-Trainer Manual. No instruction Assignment need to be completed before you begin this experiment. E3940 Microprocessor Systems Laboratory Page 33 Z80 Laboratory Assignment Programming Assignment Part II - Subroutines and Timing Loops Objective: To show how program loops can be used to introduce delay in the flow of a computer program. Preparation: 1. Before working on a solution to this experiment be sure that you have read the entire experiment and have completed Instruction Assignment A (page A- 2) in the Laboratory Experiments for the Micro-Trainer. The commands given in Instruction Assignment A are sufficient to solve this programming problem. 2. You will also need to know the basics on Timing Loops so read over pages 2-1 to 2-3 in the Laboratory Experiments for the Micro-Trainer. E3940 Microprocessor Systems Laboratory Page 34
18 Code for Part II: Main Routine Address Code Label Instruction Comment E 80 START: LD A, 80H ; Value to initialize PORTS 1802 D3 C3 OUT (03CH), A ; Initializes ports for output E 00 LD A, 01H ; Uses accumulator for counter 1806 CD MAIN: CALL PAUSE ; Calls subroutine at 1900H 1809 CD CALL SHOW ; Calls subroutine at 1950H 180C D3 C0 OUT (0C0H), A ; Show counter on PORT A 180E C JP 1806H ; Restarts Main Loop 1900 C9 PAUSE: RET ; Return to calling program 1950 C9 SHOW: RET ; Return to calling program E3940 Microprocessor Systems Laboratory Page 35 Code for Pause Subroutine PAUSE: LD C, 00H ; Reset C register (7 T-States) INNER: DEC C ; First decrement makes C=255 (4 T-States) JP NZ, INNER ; Loop back to "DEC" instruction 256 times (10 T-States) This code segment requires approximately 2 msecs to execute, as shown: 7 T-States loops * (4+10 T-States/loop) = 3591 T-States 3591 * 0.56 usecs = msecs E3940 Microprocessor Systems Laboratory Page 36
19 Code for Show Subroutine Address Code Label Instruction Comment 1900 C5 PAUSE: PUSH BC ; Preserve value in BC ?? C1 POP BC ; Restore value in BC 19??+1 C9 RET ; Return to calling program Write a subroutine "SHOW" at address 1950H, which produces the following cycle display on the LEDs of PORT A: E3940 Microprocessor Systems Laboratory Page Mandatory Reading for the Lab. 1. Read the assignment closely and the reading below. It will be on the web today 2. The Micro Trainer Manual Chapters 1 and 2 You will do most of Chapter 2 as part of the lab 3. Laboratory Experiments for the Micro-Trainer Instruction assignment A page A-2 Timing Loops 2-1 to The Z80 Microprocessor Book (Gaonkar) Chapters 1, 2 and 6 Chapters 1-2 are intro material Chapter 6 is about the programming language *Don t worry* about fully understanding the language focus on the instructions introduced to you in Instruction assignment A page A-2 mentioned in bullet 2 above E3940 Microprocessor Systems Laboratory Page 38
20 Handout and Homework Assignment Read the Digital Electronics Tutorial This homework is revision on what I assume you already know its all basic numbers and logic stuff. See TA if you need refresher or assistance. Assignment to be handed into the TAs by next Tuesday Assignment from pages of Digital Electronics Tutorial Questions: P1, P2, P4, P7, P8, P14 For extra grade P22 and P24 E3940 Microprocessor Systems Laboratory Page 39
Chapter 3. Z80 Instructions & Assembly Language. Von Neumann Architecture. Memory. instructions. program. data
Von Neumann Architecture The von Neumann architecture is a computer design model that uses a processing unit and a separate storage to hold both instructions and data To run a machine, program and data
More informationMicrocomputer Architecture and Programming
IUST-EE (Chapter 1) Microcomputer Architecture and Programming 1 Outline Basic Blocks of Microcomputer Typical Microcomputer Architecture The Single-Chip Microprocessor Microprocessor vs. Microcontroller
More informationEXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER
OBJECT: EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER To understand the structure and operating instruction of the microprocessor trainer. INTRODUCTION: The MKT 8085 is a single-board microcomputer,
More informationCHAPTER ASSEMBLY LANGUAGE PROGRAMMING
CHAPTER 2 8051 ASSEMBLY LANGUAGE PROGRAMMING Registers Register are used to store information temporarily: A byte of data to be processed An address pointing to the data to be fetched The vast majority
More informationDigital System Design Using Verilog. - Processing Unit Design
Digital System Design Using Verilog - Processing Unit Design 1.1 CPU BASICS A typical CPU has three major components: (1) Register set, (2) Arithmetic logic unit (ALU), and (3) Control unit (CU) The register
More informationDigital IP Cell 8-bit Microcontroller PE80
1. Description The is a Z80 compliant processor soft-macro - IP block that can be implemented in digital or mixed signal ASIC designs. The Z80 and its derivatives and clones make up one of the most commonly
More information8/26/2010. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to Three Units of 8085
BLOCK DIAGRAM OF INTEL 8085 GURSHARAN SINGH TATLA Introduction to 8085 It was introduced in 1977. It is 8-bit microprocessor. Its actual name is 8085 A. It is single NMOS device. It contains 6200 transistors
More informationControl Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly.
Unit I 8085 and 8086 PROCESSOR Introduction to microprocessor A microprocessor is a clock-driven semiconductor device consisting of electronic logic circuits manufactured by using either a large-scale
More information12-Dec-11. Gursharan Singh Maninder Kaur. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to 8085
mailme@gursharansingh.in BLOCK DIAGRAM OF INTEL 8085 mailme@maninderkaur.in Introduction to 8085 It was introduced in 1977. It is 8-bit microprocessor. Its actual name is 8085 A. It is single NMOS device.
More information9/25/ Software & Hardware Architecture
8086 Software & Hardware Architecture 1 INTRODUCTION It is a multipurpose programmable clock drive register based integrated electronic device, that reads binary instructions from a storage device called
More informationMark II Aiken Relay Calculator
Introduction to Embedded Microcomputer Systems Lecture 6.1 Mark II Aiken Relay Calculator 2.12. Tutorial 2. Arithmetic and logical operations format descriptions examples h 8-bit unsigned hexadecimal $00
More informationThe Microcontroller. Lecture Set 3. Major Microcontroller Families. Example Microcontroller Families Cont. Example Microcontroller Families
The Microcontroller Lecture Set 3 Architecture of the 8051 Microcontroller Microcontrollers can be considered as self-contained systems with a processor, memory and I/O ports. In most cases, all that is
More informationLecture-15 W-Z: Increment-Decrement Address Latch:
Lecture-15 W-Z: (W) and (Z) are two 8-bit temporary registers not accessible to the user. They are exclusively used for the internal operation by the microprocessor. These registers are used either to
More informationIntel 8086 MICROPROCESSOR ARCHITECTURE
Intel 8086 MICROPROCESSOR ARCHITECTURE 1 Features It is a 16-bit μp. 8086 has a 20 bit address bus can access up to 2 20 memory locations (1 MB). It can support up to 64K I/O ports. It provides 14, 16
More information1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.
(1) Draw and explain the internal architecture of 8085. The architecture of 8085 Microprocessor is shown in figure given below. The internal architecture of 8085 includes following section ALU-Arithmetic
More information1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:
1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: A microprocessor is a programmable electronics chip that has computing and decision making capabilities similar to central processing unit
More informationIntel 8086 MICROPROCESSOR. By Y V S Murthy
Intel 8086 MICROPROCESSOR By Y V S Murthy 1 Features It is a 16-bit μp. 8086 has a 20 bit address bus can access up to 2 20 memory locations (1 MB). It can support up to 64K I/O ports. It provides 14,
More informationLIST OF PROGRAMS. Prg. Name of the Program. 1 Study of Pin Diagram of Study of Architecture of Study of 8085 Kit.
LIST OF PROGRAMS Prg. Name of the Program No. 1 Study of Pin Diagram of 8085 2 Study of Architecture of 8085 3 Study of 8085 Kit 4 Reverse Order 5 Exchange of memory blocks 6 Absolute Difference 7 Even
More information3.1 Description of Microprocessor. 3.2 History of Microprocessor
3.0 MAIN CONTENT 3.1 Description of Microprocessor The brain or engine of the PC is the processor (sometimes called microprocessor), or central processing unit (CPU). The CPU performs the system s calculating
More informationAdvanced Parallel Architecture Lesson 3. Annalisa Massini /2015
Advanced Parallel Architecture Lesson 3 Annalisa Massini - 2014/2015 Von Neumann Architecture 2 Summary of the traditional computer architecture: Von Neumann architecture http://williamstallings.com/coa/coa7e.html
More informationThe Itanium Bit Microprocessor Report
The Itanium - 1986 8 Bit Microprocessor Report By PRIYANK JAIN (02010123) Group # 11 Under guidance of Dr. J. K. Deka & Dr. S. B. Nair Department of Computer Science & Engineering Indian Institute of Technology,
More informationComputer Architecture
Computer Architecture Lecture 1: Digital logic circuits The digital computer is a digital system that performs various computational tasks. Digital computers use the binary number system, which has two
More information8051 Microcontrollers
8051 Microcontrollers Richa Upadhyay Prabhu NMIMS s MPSTME richa.upadhyay@nmims.edu March 8, 2016 Controller vs Processor Controller vs Processor Introduction to 8051 Micro-controller In 1981,Intel corporation
More informationELECTRICAL ENGINEERING
Serial : 1. JP_EE_Microprocessor_130618 CLASS TEST Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: E-mail: info@madeeasy.in Ph: 011-45124612 ELECTRICAL ENGINEERING
More information(2) Explain the addressing mode of OR What do you mean by addressing mode? Explain diff. addressing mode for 8085 with examples.
(1) Explain instruction format and Opcode format of 8085 μp with example. OR With help of examples, explain the formation of opcodes of 8085 OR What is an instruction? List type of instruction based on
More informationLecture1: introduction. Outline: History overview Central processing unite Register set Special purpose address registers Datapath Control unit
Lecture1: introduction Outline: History overview Central processing unite Register set Special purpose address registers Datapath Control unit 1 1. History overview Computer systems have conventionally
More informationChapter. Computer Architecture
Chapter 4 Computer Architecture Figure 4.1 Input device Central processing unit Main memory Output device Bus Data flow Control Figure 4.2 Central processing unit () Status bits ( ) Accumulator ( ) Index
More informationAssembly Language Programming of 8085
Assembly Language Programming of 8085 Topics 1. Introduction 2. Programming model of 8085 3. Instruction set of 8085 4. Example Programs 5. Addressing modes of 8085 6. Instruction & Data Formats of 8085
More informationHistory and Basic Processor Architecture
History and Basic Processor Architecture History of Computers Module 1 Section 1 What Is a Computer? An electronic machine, operating under the control of instructions stored in its own memory, that can
More informationSmall Computer Monitor User Guide
Small Computer Monitor User Guide Monitor version 0.5 for the Z80 CPU Software and Documentation by Stephen C Cousins Edition 0.5.0 CONTENTS OVERVIEW...3 Conventions... 3 Serial port... 4 RC2014 systems...
More informationAdvanced Parallel Architecture Lesson 3. Annalisa Massini /2015
Advanced Parallel Architecture Lesson 3 Annalisa Massini - Von Neumann Architecture 2 Two lessons Summary of the traditional computer architecture Von Neumann architecture http://williamstallings.com/coa/coa7e.html
More informationChapter 2 COMPUTER SYSTEM HARDWARE
Chapter 2 COMPUTER SYSTEM HARDWARE A digital computer system consists of hardware and software. The hardware consists of the physical components of the system, whereas the software is the collection of
More informationEC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I
EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers 1. Define microprocessors? UNIT-I A semiconductor device(integrated circuit) manufactured by using the LSI technique. It includes
More informationBasics of Microprocessor
Unit 1 Basics of Microprocessor 1. Microprocessor Microprocessor is a multipurpose programmable integrated device that has computing and decision making capability. This semiconductor IC is manufactured
More information1. Internal Architecture of 8085 Microprocessor
Practical 1 Date : AIM : Introduction Of Microprocessor 8085. 1. Internal Architecture of 8085 Microprocessor Control Unit Generates signals within µp to carry out the instruction, which has been decoded.
More informationMicro computer Organization
Micro computer Organization I Base Basic Components CPU SYSTEM BUSES VDD CLK RESET 1 MPU vs MCU Microprocessor Unit (MPU) CPU (called Microprocessor) is a die All components external to die Basically on
More informationELEG3924 Microprocessor
Department of Electrical Engineering University of Arkansas ELEG3924 Microprocessor Ch.2 Assembly Language Programming Dr. Jing Yang jingyang@uark.edu 1 OUTLINE Inside 8051 Introduction to assembly programming
More informationThe CPU and Memory. How does a computer work? How does a computer interact with data? How are instructions performed? Recall schematic diagram:
The CPU and Memory How does a computer work? How does a computer interact with data? How are instructions performed? Recall schematic diagram: 1 Registers A register is a permanent storage location within
More informationClass Notes. Dr.C.N.Zhang. Department of Computer Science. University of Regina. Regina, SK, Canada, S4S 0A2
Class Notes CS400 Part VI Dr.C.N.Zhang Department of Computer Science University of Regina Regina, SK, Canada, S4S 0A2 C. N. Zhang, CS400 83 VI. CENTRAL PROCESSING UNIT 1 Set 1.1 Addressing Modes and Formats
More information8051 Overview and Instruction Set
8051 Overview and Instruction Set Curtis A. Nelson Engr 355 1 Microprocessors vs. Microcontrollers Microprocessors are single-chip CPUs used in microcomputers Microcontrollers and microprocessors are different
More informationDelhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:
Serial : LS2_EE_S_Microprocessors_2688 Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: E-mail: info@madeeasy.in Ph: -452462 CLASS TEST 28-9 ELECTRICAL ENGINEERING
More information8086 INTERNAL ARCHITECTURE
8086 INTERNAL ARCHITECTURE Segment 2 Intel 8086 Microprocessor The 8086 CPU is divided into two independent functional parts: a) The Bus interface unit (BIU) b) Execution Unit (EU) Dividing the work between
More informationCHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY
CHAPTER 5 : Introduction to Intel 8085 Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY The 8085A(commonly known as the 8085) : Was first introduced in March 1976 is an 8-bit microprocessor with 16-bit address
More informationBHARATHIDASAN ENGINEERING COLLEGE. III Year / V Semester / EEE MICROPROCESSORS AND MICROCONTROLLERS (R-2013)
BHARATHIDASAN ENGINEERING COLLEGE III Year / V Semester / EEE MICROPROCESSORS AND MICROCONTROLLERS (R-2013) FREQUENTLY ASKED QUESTIONS IN UNIVERSITY EXAMINATION PART A UNIT 1-8085 PROCESSOR 1. Draw the
More informationThe functional block diagram of 8085A is shown in fig.4.1.
Lecture-13 Internal Architecture of Intel 05A The functional block diagram of 05A is shown in fig.4.1. INTA INTR RST7.5 RST5.5 RST6.5 TRAP SOD SID INTERRUPT SERIAL I/O (Internal Bus) FR(S) IR() B() C()
More informationLecture 2 Microcomputer Organization: Fig.1.1 Basic Components of Microcomputer
Lecture 2 Microcomputer Organization: As discussed in previous lecture microprocessor is a central processing unit (CPU) with its related timing functions on a single chip. A microprocessor combined with
More informationEE 5340/7340 Motorola 68HC11 Microcontroler Lecture 1. Carlos E. Davila, Electrical Engineering Dept. Southern Methodist University
EE 5340/7340 Motorola 68HC11 Microcontroler Lecture 1 Carlos E. Davila, Electrical Engineering Dept. Southern Methodist University What is Assembly Language? Assembly language is a programming language
More information1. Internal Architecture of 8085 Microprocessor
Practical 1 Date : AIM : Introduction Of Microprocessor 8085. 1. Internal Architecture of 8085 Microprocessor Control Unit Generates signals within µp to carry out the instruction, which has been decoded.
More informationLecture 5: Computer Organization Instruction Execution. Computer Organization Block Diagram. Components. General Purpose Registers.
Lecture 5: Computer Organization Instruction Execution Computer Organization Addressing Buses Fetch-Execute Cycle Computer Organization CPU Control Unit U Input Output Memory Components Control Unit fetches
More informationPERIPHERAL INTERFACING Rev. 1.0
This work is licensed under the Creative Commons Attribution-NonCommercial-Share Alike 2.5 India License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/2.5/in/deed.en
More informationIts Assembly language programming
8085 Architecture & Its Assembly language programming Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati 8085 Era and Features 8085 Outline Block diagram (Data Path) Bus Structure Register Structure
More informationGATE Exercises on Microprocessors
1 GATE Exercises on Microprocessors Abstract This problem set has questions taken from GATE papers over the last twenty years. Teachers can use the problem set for courses tutorials. 1) The clock frequency
More informationChapter 1: Basics of Microprocessor [08 M]
Microprocessor: Chapter 1: Basics of Microprocessor [08 M] It is a semiconductor device consisting of electronic logic circuits manufactured by using either a Large scale (LSI) or Very Large Scale (VLSI)
More informationChapter 1 Microprocessor architecture ECE 3120 Dr. Mohamed Mahmoud http://iweb.tntech.edu/mmahmoud/ mmahmoud@tntech.edu Outline 1.1 Computer hardware organization 1.1.1 Number System 1.1.2 Computer hardware
More informationicroprocessor istory of Microprocessor ntel 8086:
Microprocessor A microprocessor is an electronic device which computes on the given input similar to CPU of a computer. It is made by fabricating millions (or billions) of transistors on a single chip.
More information2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5.
DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EE6502- MICROPROCESSORS AND MICROCONTROLLERS UNIT I: 8085 PROCESSOR PART A 1. What is the need for ALE signal in
More informationSmall Computer Monitor User Guide
Small Computer Monitor User Guide Monitor version 0.3 for the Z80 CPU Software and Documentation by Stephen C Cousins Edition 0.3.0 CONTENTS OVERVIEW... 3 Conventions... 3 Serial Port... 4 RC2014 Systems...4
More informationVARDHAMAN COLLEGE OF ENGINEERING (AUTONOMOUS) Shamshabad, Hyderabad
Introduction to MS-DOS Debugger DEBUG In this laboratory, we will use DEBUG program and learn how to: 1. Examine and modify the contents of the 8086 s internal registers, and dedicated parts of the memory
More informationComputer Structure. Unit 4. Processor
Computer Structure Unit 4. Processor Departamento de Informática Grupo de Arquitectura de Computadores, Comunicaciones y Sistemas UNIVERSIDAD CARLOS III DE MADRID Contents Computer elements Processor organization
More informationProcessing Unit CS206T
Processing Unit CS206T Microprocessors The density of elements on processor chips continued to rise More and more elements were placed on each chip so that fewer and fewer chips were needed to construct
More information1. Internal Architecture of 8085 Microprocessor
1. Internal Architecture of 8085 Microprocessor Control Unit Generates signals within up to carry out the instruction, which has been decoded. In reality causes certain connections between blocks of the
More information8085 Microprocessor Architecture and Memory Interfacing. Microprocessor and Microcontroller Interfacing
8085 Microprocessor Architecture and Memory 1 Points to be Discussed 8085 Microprocessor 8085 Microprocessor (CPU) Block Diagram Control & Status Signals Interrupt Signals 8085 Microprocessor Signal Flow
More informationMAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) MODEL ANSWER
MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Microprocessor Subject Code: 17443 I m p o r t a n t I n s t r u c t i o n s t o e x a m i n e r s : 1) The answers should be examined by key words and
More informationChapter 3 : Control Unit
3.1 Control Memory Chapter 3 Control Unit The function of the control unit in a digital computer is to initiate sequences of microoperations. When the control signals are generated by hardware using conventional
More informationMICROPROCESSOR MICROPROCESSOR. From the above description, we can draw the following block diagram to represent a microprocessor based system: Output
8085 SATISH CHANDRA What is a Microprocessor? The word comes from the combination micro and processor. Processor means a device that processes whatever. In this context, processor means a device that processes
More informationCOSC 243. Instruction Sets And Addressing Modes. Lecture 7&8 Instruction Sets and Addressing Modes. COSC 243 (Computer Architecture)
COSC 243 Instruction Sets And Addressing Modes 1 Overview This Lecture Source Chapters 12 & 13 (10 th editition) Textbook uses x86 and ARM (we use 6502) Next 2 Lectures Assembly language programming 2
More informationM. Sc (CS) (II Semester) Examination, Subject: Computer System Architecture Paper Code: M.Sc-CS-203. Time: Three Hours] [Maximum Marks: 60
M. Sc (CS) (II Semester) Examination, 2012-13 Subject: Computer System Architecture Paper Code: M.Sc-CS-203 Time: Three Hours] [Maximum Marks: 60 Note: Question Number 1 is compulsory. Answer any four
More informationQUESTION BANK. EE 6502 / Microprocessor and Microcontroller. Unit I Processor. PART-A (2-Marks)
QUESTION BANK EE 6502 / Microprocessor and Microcontroller Unit I- 8085 Processor PART-A (2-Marks) YEAR/SEM : III/V 1. What is meant by Level triggered interrupt? Which are the interrupts in 8085 level
More informationELEG3923 Microprocessor Ch.2 Assembly Language Programming
Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch.2 Assembly Language Programming Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Inside 8051 Introduction to assembly programming
More informationInstruction Set Instruction set of 8085 can be classified in following groups: Data Transfer Instructions These instructions can perform data transfer operations between Registers of 8085 e.g. MOV 8085
More informationArchitecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller
of 8085 microprocessor 8085 is pronounced as "eighty-eighty-five" microprocessor. It is an 8-bit microprocessor designed by Intel in 1977 using NMOS technology. It has the following configuration 8-bit
More informationET2640 Microprocessors
ET2640 Microprocessors Unit -2 Processor Programming Concepts Basic Control Instructor : Stan Kong Email : skong@itt-tech.edu Figure 2 4 Bits of the PSW Register 8051 REGISTER BANKS AND STACK 80 BYTES
More informationJob Posting (Aug. 19) ECE 425. ARM7 Block Diagram. ARM Programming. Assembly Language Programming. ARM Architecture 9/7/2017. Microprocessor Systems
Job Posting (Aug. 19) ECE 425 Microprocessor Systems TECHNICAL SKILLS: Use software development tools for microcontrollers. Must have experience with verification test languages such as Vera, Specman,
More informationMAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT I THE 8085 & 8086 MICROPROCESSORS. PART A (2 Marks)
MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI-621213. UNIT I THE 8085 & 8086 MICROPROCESSORS PART A (2 Marks) 1. Give the significance of SIM and RIM instruction available in 8085. [NOV/DEC 2006] Instruction
More informationS.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING
S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING QUESTION BANK Subject Code : EC307 Subject Name : Microprocessor and Interfacing Year & Sem : III Year, V Sem
More informationPERIPHERAL INTERFACING Rev. 1.0
This work is licensed under the Creative Commons Attribution-NonCommercial-Share Alike 2.5 India License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/2.5/in/deed.en
More informationMICROPROCESSOR PROGRAMMING AND SYSTEM DESIGN
MICROPROCESSOR PROGRAMMING AND SYSTEM DESIGN ROAD MAP SDK-86 Intel 8086 Features 8086 Block Diagram 8086 Architecture Bus Interface Unit Execution Unit 8086 Architecture 8086 Programmer s Model Flag Register
More informationMicrocontrollers. Microcontroller
Microcontrollers Microcontroller A microprocessor on a single integrated circuit intended to operate as an embedded system. As well as a CPU, a microcontroller typically includes small amounts of RAM and
More informationINTRODUCTION OF MICROPROCESSOR& INTERFACING DEVICES Introduction to Microprocessor Evolutions of Microprocessor
Course Title Course Code MICROPROCESSOR & ASSEMBLY LANGUAGE PROGRAMMING DEC415 Lecture : Practical: 2 Course Credit Tutorial : 0 Total : 5 Course Learning Outcomes At end of the course, students will be
More informationINSTRUCTION SET OF 8085
INSTRUCTION SET OF 8085 Instruction Set of 8085 An instruction is a binary pattern designed inside a microprocessor to perform a specific function. The entire group of instructions that a microprocessor
More informationChapter 5. Computer Architecture Organization and Design. Computer System Architecture Database Lab, SANGJI University
Chapter 5. Computer Architecture Organization and Design Computer System Architecture Database Lab, SANGJI University Computer Architecture Organization and Design Instruction Codes Computer Registers
More informationSOLUTION MANUAL FOR THE 8051 MICROCONTROLLER 4TH EDITION BY MACKENZIE AND PHAN
SOLUTION MANUAL FOR THE 8051 MICROCONTROLLER 4TH EDITION BY MACKENZIE AND PHAN Chapter 1 - Introduction to Microcontrollers 1. (a)the first widely used microprocessor was the 8080. (b) The 8080 was introduced
More informationCPU Design John D. Carpinelli, All Rights Reserved 1
CPU Design 1997 John D. Carpinelli, All Rights Reserved 1 Outline Register organization ALU design Stacks Instruction formats and types Addressing modes 1997 John D. Carpinelli, All Rights Reserved 2 We
More informationUNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering. EEC180B DIGITAL SYSTEMS II Fall 1999
UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering EEC180B DIGITAL SYSTEMS II Fall 1999 Lab 7-10: Micro-processor Design: Minimal Instruction Set Processor (MISP) Objective:
More informationPractical Course File For
Practical Course File For Microprocessor (IT 473) B.Tech (IT) IV-SEM Department of IT University Institute of Engineering & Technology Panjab University, Chandigarh Page 1 INTRODUCTION... 4 EXPERIMENT-1:
More informationMICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS
MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS UNIT I INTRODUCTION TO 8085 8085 Microprocessor - Architecture and its operation, Concept of instruction execution and timing diagrams, fundamentals of
More informationECE 375 Computer Organization and Assembly Language Programming Winter 2018 Solution Set #2
ECE 375 Computer Organization and Assembly Language Programming Winter 2018 Set #2 1- Consider the internal structure of the pseudo-cpu discussed in class augmented with a single-port register file (i.e.,
More informationUNIT I. Differences between: Microcomputer, Microprocessor and Microcontroller
UNIT I SYLLABUS INTRODUCTION TO 8085 Intel 8085 Microprocessor architecture signals Addressing modes Instruction classification Instruction set Timing diagram ALP format Programming 8085 8-bit and 16-bit
More informationPractical Malware Analysis
Practical Malware Analysis Ch 4: A Crash Course in x86 Disassembly Revised 1-16-7 Basic Techniques Basic static analysis Looks at malware from the outside Basic dynamic analysis Only shows you how the
More informationMicroprocessor Architecture
Microprocessor - 8085 Architecture 8085 is pronounced as "eighty-eighty-five" microprocessor. It is an 8-bit microprocessor designed by Intel in 1977 using NMOS technology. It has the following configuration
More information8085 INSTRUCTION SET INSTRUCTION DETAILS
8085 INSTRUCTION SET INSTRUCTION DETAILS DATA TRANSFER INSTRUCTIONS MOV Rd, Rs Copy from source to destination This instruction copies the contents of the source register Rs into the destination register
More informationUNIT II OVERVIEW MICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Introduction to 8086 microprocessors. Architecture of 8086 processors
OVERVIEW UNIT II Introduction to 8086 microprocessors Architecture of 8086 processors Register Organization of 8086 Memory Segmentation of 8086 Pin Diagram of 8086 Timing Diagrams for 8086 Interrupts of
More informationModule Contents of the Module Hours COs
Microcontrollers (EE45): Syllabus: Module Contents of the Module Hours COs 1 8051 MICROCONTROLLER ARCHITECTURE: Introduction to Microprocessors and Microcontrollers, the 8051 Architecture, 08 1 and pin
More informationMicro-programmed Control Ch 15
Micro-programmed Control Ch 15 Micro-instructions Micro-programmed Control Unit Sequencing Execution Characteristics 1 Hardwired Control (4) Complex Fast Difficult to design Difficult to modify Lots of
More informationELE 3230 Microprocessors and Computer Systems
ELE 3230 Microprocessors and Computer Systems Chapter 4 8088 System Architecture (*Hall:ch2; Brey:ch1; Triebel:ch2) ELE 3230 - Chapter 4 1 Historical Background 1969/70 Intel 4004, first Microprocessor
More informationMICROPROCESSOR BASICS AND RELATED TERMS
MICROPROCESSOR BASICS AND RELATED TERMS Microprocessor: Programmable integrated device that has computing ability and decision making capacity. It is the CPU of computer. A multipurpose, programmable,
More informationMachine Instructions vs. Micro-instructions. Micro-programmed Control Ch 15. Machine Instructions vs. Micro-instructions (2) Hardwired Control (4)
Micro-programmed Control Ch 15 Micro-instructions Micro-programmed Control Unit Sequencing Execution Characteristics 1 Machine Instructions vs. Micro-instructions Memory execution unit CPU control memory
More informationSubject Code: Model Answer Page No: /25
Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model answer and the answer written by candidate
More informationDescription of the Simulator
Description of the Simulator The simulator includes a small sub-set of the full instruction set normally found with this style of processor. It includes advanced instructions such as CALL, RET, INT and
More informationModule 5 - CPU Design
Module 5 - CPU Design Lecture 1 - Introduction to CPU The operation or task that must perform by CPU is: Fetch Instruction: The CPU reads an instruction from memory. Interpret Instruction: The instruction
More information