Memorial University of Newfoundland

Similar documents
University of Alexandria Faculty of Engineering Division of Communications & Electronics

I/O Design. Input / Output Instructions. Engineering 4862 Microprocessors. Lecture 23. Cheng Li

FIGURE Three EPROMs interfaced to the 8088 microprocessor.

2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5.

History and Basic Processor Architecture

Chapter ELEVEN 8255 I/O PROGRAMMING

Memory Interfacing & decoding. Intel CPU s

Microprocessors and Microcontrollers (EE-231)

Program controlled semiconductor device (IC) which fetches (from memory), decodes and executes instructions.

Pin Description, Status & Control Signals of 8085 Microprocessor

8086 Hardware Specification

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

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

Chapter NINE 8088,80286 MICROPROCESSORS AND ISA BUS

Memory Expansion for the 8096

Design with Microprocessors

Chapter TEN. Memory and Memory Interfacing

Hardware and Software Architecture. Chapter 2

Design with Microprocessors

Basic I/O Interface

Allmost all systems contain two main types of memory :

The 9S12 in Expanded Mode - Using MSI logic to build ports Huang Chapter 14

Unit 5 DOS INTERRPUTS

Advanced Microprocessors

MA Unit 4. Question Option A Option B Option C Option D

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices,

ORG ; Week8. Memory and Memory Interfacing

Alexandria University Faculty of Engineering Communications and Computers SSP

Instructions Involve a Segment Register (SR-field)

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

Interface DAC to a PC. Control Word of MC1480 DAC (or DAC 808) 8255 Design Example. Engineering 4862 Microprocessors

The MC9S12 in Expanded Mode Using MSI logic to build ports Using MSI logic to build an output port Using MSI logic to build an input port

10 2 ADDRESS DECODING:

Lecture 6: memory structure 8086 Outline: 1.introduction 2.memory reserve 3.bus operation

1. (a) Draw the internal architecture of 8085? Explain each block. (b) What are the special functions of GPRs in 8086? And explain them?

1 ( 10 points) 6 min.

Architecture of 8085 microprocessor

BEng (Hons.) Telecommunications. BSc (Hons.) Computer Science with Network Security

Using MSI Logic To Build An Output Port

TOPIC 6 LATCH. FIGURE 1 INTERFACING OF ROM/EPROM TO µc 8051.

MICROPROCESSOR PROGRAMMING AND SYSTEM DESIGN

CC411: Introduction To Microprocessors

FIFTH SEMESTER B.TECH DEGREE EXAMINATION MODEL TEST QUESTION PAPER, NOVEMBER CS 305: Microprocessor and Microcontrollers PART A

Architecture of 8086 Microprocessor

Memory Expansion. Lecture Embedded Systems

Roberto Muscedere Images and Text Portions 2003 Prentice Hall 1

2. (2 pts) If an external clock is used, which pin of the 8051 should it be connected to?

Overview of Intel 80x86 µp

eaymanelshenawy.wordpress.com

CHAPTER 3 WIRELESS MEASUREMENT INSTRUMENT

Lecture Note On Microprocessor and Microcontroller Theory and Applications

CHAPTER TWELVE - Memory Devices

CHAPTER: 3 PROGRAMMABLE PERIPHERAL INTERFACE & ELECTROMECHANICAL DEVICES INTERFACING

The 8086 Microprocessor

PESIT Bangalore South Campus

UNIT II OVERVIEW MICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Introduction to 8086 microprocessors. Architecture of 8086 processors

Northern India Engineering College, Delhi (GGSIP University) PAPER I

PART - B (Answer all five units, 5 X 10 = 50 Marks)

UNIT 1. Introduction to microprocessor. Block diagram of simple computer or microcomputer.

icroprocessor istory of Microprocessor ntel 8086:

Microcontroller Systems. ELET 3232 Topic 11: General Memory Interfacing

Internal architecture of 8086

EE4380 Microprocessor Design Project

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS

Unit DMA CONTROLLER 8257

Chapter 4 : Microprocessor System

INTRODUCTION TO MICROPROCESSORS

ROM (4K X 8) ROM (4K X 8) FOLD BACK FOR RAM0 RWM - RAM (2K X 8) RWM - RAM (2K X 8) FOLD BACK FOR RAM1 INPUT DEVICE 1

4. (a) With a neat sketch explain 8237 DMA controller and its operation? (b) With the help of basic cell explain SRAM and DRAM?

KINGS DEPARTMENT OF INFORMATION TECHNOLOGY QUESTION BANK. Subject Name: Microprocessors and Microcontrollers UNIT-I 8085 MICROPROCESSOR

BAHAR DÖNEMİ MİKROİŞLEMCİLER LAB3 FÖYÜ

Basic characteristics & features of 8086 Microprocessor Dr. M. Hebaishy

Z Z-280 MT8930, MT8992/3/4/5 MT8880 MT8888 MT8889 MT8980/1 MT8985, MT8986 (DIP-40) MT8986 (PLCC-44) MT8920B MT8952B

9/25/ Software & Hardware Architecture

The x86 Microprocessors. Introduction. The 80x86 Microprocessors. 1.1 Assembly Language

Address connections Data connections Selection connections

EC-333 Microprocessor and Interfacing Techniques

CG2007 Microprocessor systems.

APPLICATION NOTE 26 DS89C430/DS89C450 Ultra High-Speed Flash Microcontroller Memory Interface Timing

Subject Code: Model Answer Page No: /25

16-Bit Intel Processor Architecture

EE2007 Microprocessor systems.

Introduction read-only memory random access memory

CPE/EE 421/521 Fall 2004 Chapter 4 The CPU Hardware Model. Dr. Rhonda Kay Gaede UAH. The CPU Hardware Model - Overview

Chapter 13 Direct Memory Access and DMA-Controlled I/O

Principle and Interface Techniques of Microcontroller

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

MICROPROCESSOR MCQs. 1) What does the microprocessor comprise of? a. Register section b. One or more ALU c. Control unit d.

Microprocessor and Microcontroller question bank. 1 Distinguish between microprocessor and microcontroller.

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

UNIT - II PERIPHERAL INTERFACING WITH 8085

University of Florida EEL 4744 Summer 2014 Dr. Eric M. Schwartz Department of Electrical & Computer Engineering 1 July Oct-14 6:41 PM

PIN DIAGRAM. Richa Upadhyay Prabhu. NMIMS s MPSTME January 19, 2016

Microprocessor Architecture. mywbut.com 1

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

Various Instruction Addressing Modes Of 8086 Microprocessor Ppt

Moodle WILLINGDON COLLEGE SANGLI (B. SC.-II) Digital Electronics

Week 7. Input/Output Interface Circuits and LSI Peripheral Devices

INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad ELECTRONICS AND COMMUNICATION ENGINEERING QUESTION BANK

Menu. word size # of words byte = 8 bits

Transcription:

Engineering 4862 Memorial University of Newfoundland Assignment 5 MICROPROCESSORS Solution Please note: Part A is due next Friday (July 20) and Part B is due on July 27 The last question is a bonus question that worth 2 Marks of the final total mark (Equivalent to the mark of one assignment) -- Part A -- 0 What control byte will configure an 8255A PPI such that Ports A & B are input, and Port C is output? Solution: From the PPI data sheet, we can get Bit Value Reason D 7 1 mode set D 6 D 5 00 Mode 0 for Group A D 4 1 Port A Input D 3 0 Port C (upper) Output D 2 0 Mode 0 fro Group B D 1 1 Port B input D 0 0 Port C (lower) output Control byte 1001 0010 (92H) 1 Sketch a diagram of an address decoder for an 8-bit input port The assembly language instruction IN AL, 94h should fetch a byte from the port There should be no more than 1024 mirror images, and it should not interfere with operation of I/O ports at 0010h and 0037h Solution: Next page 2 What is the advantage and penalty of multiplexing and demultiplexing the address/data in the 8088/86 CPUs? Solution: It uses less pins and consequently has a smaller package But it takes longer time because data and address need to be demultiplexed 3 When the input signal RESET in the 8088/86 is activated, what are the contents of the CS and IP register? Why ROM is always arranged to the high/upper end of the memory map (closer to the FFFFFH) for Intel 80x86 serial microprocessors? Solution: After reset, for 8086/88, CS=FFFFH, IP=0000H, that gives a physical address FFFF0H That is where the reset vector is stored CPU will always go to that address to fetch the first instruction Because at the time, nothing has been loaded to the RAM, so we have to arrange a ROM to cover that location Usually, we arrange the ROM from the highest address FFFFFH downward and make the address continuous 1

2

4 Show the logical design of MOV [0100], AL for memory mapped I/O using AND and Inverter gates and a 74LS373 latch Assume that DS=B800H The PA=B8000+0100 = B8100H It use memory mapped I/O so MEMR or MEMW is used Because we move data to the memory, therefore, MEMW is used A 0 D0 D7 G 74LS373 OC Q0 Q7 A 19 MEMW -- Part B -- 5 Calculate, using execution times, the total time required by the following program Assume the program is running on a system with 5-MHz 8086 microprocessor (with the help of Intel User Manual) MOV AX, 0000h MOV SI, 0000h MOV CX, 8000h OUTER: MOV DX, CX MOV [SI], AX ADD SI, 2 MOV CX, 0FFFFh INNER: LOOP INNER MOV CX, DX LOOP OUTER 3

4

6 Repeat the previous question for a system with a 477-MHz 8088 microprocessor (Only recalculate values that change) 7 Is it possible to create an 8086-based computer system with one 32KB (8-bit wide) RAM device and one 16KB (8-bit wide) RAM device? Explain 5

8 An 8086-1 microprocessor based system operating in minimum mode at its maximum speed already includes 4 kilobytes of RAM (two 2K x 8 devices) and 16 kilobytes of EPROM (two 8K x 8 devices), which are mapped in appropriate locations with no mirror images This system needs to be expanded by adding two 51256S-10 SRAM devices and one 27210-200V10 EPROM device A new address decoder should be added which would cater to the expansion devices; the most significant three address lines with one 74LS138 should be used for this purpose a Assuming that the data lines needs to be buffered, sketch a circuit diagram illustrating the interface between the CPU and the expansion memory Show all the connections to the pins of the memory devices; include latches and all the necessary TTL devices The existing memory devices (4K RAM and 16K ROM) and their address decoders need not be included in your diagram Diagram see next page b List the address ranges (for both ROM and RWM) corresponding to all memory devices in the system existing as well as additional devices List all mirror images c Sketch the memory map of the system including the existing as well as newly added memory and clearly indicate all mirror images d Consider the address line A13 Find out the additional load current as well as capacitance load placed on this line due to the expansion Which device should be capable of driving this additional load? e Determine the number of wait states required to interface the (i) SRAM and the (ii) EPROM Suggested propagation delays are: decoder ~40ns, latch ~30ns, buffer ~25ns, transceiver ~30ns, and each logic gate ~10ns f Assume that the O4* output line of the decoder in your design is used for selecting a pair of memory mapped 8255 PPI devices Assume also that Port A in both these devices have been configured as input, thus obtaining a 16-bit input port What address(es) should be used to access this 16-bit port? g Write a program that will read the contents of this port at a known sampling rate, and store the acquired information in an array located in the expansion RAM; 100 samples are required to be collected Hint: use the extra segment for the RAM h Suppose that the rate at which samples are collected is not pre-determined, but depends on the speed of the input device connected to the 8255 Therefore, you cannot simply write a delay routine to determine when to collect input samples What hardware/software solution would you recommend to solve this problem? That is, how will you use the 8255 device in this case? 6

7

8

9

10