ECE 371 Microprocessor Interfacing Unit 4 - Introduction to Memory Interfacing.

Slides:



Advertisements
Similar presentations
Decoding Circuits Made by Adham Barghouti
Advertisements

Basic Microprocessor Timing
The Intel 8255 Programmable Peripheral Interface chip is used to give the microprocessor (8088) access to programmable input/ output devices. It has three.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 4.
Memory Address Decoding
1 Combinational Logic Design&Analysis. 2 Introduction We have learned all the prerequisite material: – Truth tables and Boolean expressions describe functions.
Memory & IO Interfacing to CPU
Microprocessor System Design. Outline Address decoding Chip select Memory configurations.
Lecture 06: Memory Address Decoding. The 80x86 IBM PC and Compatible Computers Chapter 10 Memory and Memory Interfacing Chapter 11 I/O and the 8255.
EXTERNAL COMMUNICATIONS DESIGNING AN EXTERNAL 3 BYTE INTERFACE Mark Neil - Microprocessor Course 1 External Memory & I/O.
التصميم المنطقي Second Course
TK2633 Introduction to Parallel Data Interfacing DR MASRI AYOB.
Chapter 2 Microprocessor Architecture
Random access memory Sequential circuits all depend upon the presence of memory. A flip-flop can store one bit of information. A register can store a single.
MEMORY ORGANIZATION Memory Hierarchy Main Memory Auxiliary Memory
Overview Memory definitions Random Access Memory (RAM)
TK Memory Interface DR MASRI AYOB. 2 Requirement and memory structure There are two types of memory: –RAM: read and write –ROM: read only Figure.
ECE 331 – Digital System Design Logic Circuit Design (Lecture #7)
CS 151 Digital Systems Design Lecture 31 Read Only Memory (ROM)
Engineering 4862 Microprocessors Lecture 26 Cheng Li EN-4012
MANINDER KAUR RAM and ROM Chips 24-Nov
University of Tehran 1 Microprocessor System Design Omid Fatemi Memory Interfacing
DEEPAK.P MICROPROCESSORS AND APPLICATIONS Mr. DEEPAK P. Associate Professor ECE Department SNGCE 1.
Memory interface Memory is a device to store data
Address Decoder. Normally, microprocessor is connected to several devices However, only one device can communicate with the processor at one time leaving.
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Decoders.
Computer Architecture
Lecture 06: Memory Address Decoding
Address Decoding Memory/IO.
BASIC INPUT AND OUTPUT INTERFACING.  8085A communicate with outside world using the I/O devices.  Since memory and I/O devices share the system bus,
Computer Architecture and Organization Introduction.
Fall 2004EE 3563 Digital Systems Design EE3563 Multiplexers  A multiplexer is a digital switch  Allows a device to select a single line from many  Some.
Combinational Design, Part 3: Functional Blocks
Multiplexers XOR gates. Multiplexers A multiplexer is a digital switch - it connects data from one of n sources to its output. An n-input and b-bit multiplexer.
Memory Interface A Course in Microprocessor Electrical Engineering Dept. University of Indonesia.
Khaled A. Al-Utaibi  Memory Interface and the 3 Buses  Interfacing the 8088 Processor  Interfacing the 8086 Processor  Interfacing.
MODES OF Details of Pins Pin 1GND –Connected Ground Pins 2-16 AD14-AD0–acts as both input/output. Outputs address at the first part of the cycle.
Memory 10/27/081ECE Lecture. Memory Memory Types Using memory to implement logic functions 10/27/082ECE Lecture.
Lecture 2 Microprocessor Architecture Image from:
INTRODUCTION.  Upon completing this topic, you should be able to: Illustrate a basic elements of digital computer system and their functions, Depicts.
1 Memory Systems Computer Architectures M. 2 EPROM memories Access time: ns VPP A16 A15 A12 A7 A6 A5 A4 A3 A2 A1 A0 D0 D1 D2 GND VCC PGM* NC A14.
Magnitude Comparator A magnitude comparator is a combinational circuit that compares two numbers, A and B, and then determines their relative magnitudes.
Memory Devices 1. Memory concepts 2. RAMs 3. ROMs 4. Memory expansion & address decoding applications 5. Magnetic and Optical Storage.
Wnopp Memory device Introduction n Memory Cell n Memory Word n Byte n Capacity n Address n Read Operation n Write Operation n Access Time n Volatile.
ECE 371 Microprocessor Interfacing
ECE 301 – Digital Electronics Logic Circuit Design (Lecture #9)
CS151 Introduction to Digital Design Chapter 3: Combinational Logic Design 3-5 Combinational Functional Blocks 3-6 Rudimentary Logic Functions 3-7 Decoding.
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Multiplexers.
3.13 How many output lines will a five-input decoder have?
1 3 Computing System Fundamentals 3.2 Computer Architecture.
Overview of microcomputer structure and operation
5-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL
Objectives : At the end of this lesson, students should be able to : i.Identify the types of memory chip and their functions. ii.Define the difference.
نظام المحاضرات الالكترونينظام المحاضرات الالكتروني System buses.
MICROPROCESSOR INTEL 8086/8088 BY: SERA SYARMILA SAMEON.
MICROPROCESSOR BASED SYSTEM DESIGN BY PROF. DR. B. S. CHOWDHRY Lecture #
Memory Interface EEE 365 [FALL 2014] LECTURER 12 ATANU K SAHA BRAC UNIVERSITY.
8255 Programmable Peripheral Interface
Memory Interfacing.
Random access memory Sequential circuits all depend upon the presence of memory. A flip-flop can store one bit of information. A register can store a single.
Random access memory Sequential circuits all depend upon the presence of memory. A flip-flop can store one bit of information. A register can store a single.
Interfacing 64Kb EPROM with 8085
Dr. Rabie A. Ramadan Al-Azhar University Lecture 5
Cover a section of Ch 4 Review both Exam 2 and Exam 3
Interfacing Memory Interfacing.
Random access memory Sequential circuits all depend upon the presence of memory. A flip-flop can store one bit of information. A register can store a single.
ECE 352 Digital System Fundamentals
Microprocessor I 7/18/2019.
Computer Architecture
Presentation transcript:

ECE 371 Microprocessor Interfacing Unit 4 - Introduction to Memory Interfacing

Simple Example to Demonstrate Memory Interfacing Concepts Objective: To Implement a 32 Element Memory System, Using 8-Element Chips General Approach: 1.Use Lower Address Bits to Select An Element Within a Memory Chip. (In This Example It Requires 3 Address Bits, Since Each Memory Chip Contains 8 = 2 3 Elements.) 2.Use the Upper Address Bits to Select Which Particular Chip Should Be Activated.

A4 A3 A2 A1 A A4 A3 A2 A1 A (FIRST GROUP OF 8 ADDRESSES) (SECOND GROUP OF 8 ADDRESSES)

A4 A3 A2 A1 A A4 A3 A2 A1 A (THIRD GROUP OF 8 ADDRESSES) (FOURTH GROUP OF 8 ADDRESSES)

Example: Interfacing 8K Memory Chips to a Computer Having a 20-Bit Address Bus 2 7 Possibilities A19 A18 A17 A16 A15 A14 A13 A12 A (8K -1) K - (16K -1) K - (24K -1) K - (32K -1) K - (72K -1) K - (16K -1) K - (1024K -1) To Chips’ Address Inputs

Example: Interfacing 8K Memory Chips to a Computer Having a 20-Bit Address Bus ADDRESS TABLE: (512K) (256K) (128K) (64K) (32K) (16K) (8K) A19 A18 A17 A16 A15 A14 A K K K K K K

Of the 27 Possible Ranges, Choose 88K - (96K-1) Critical Lines Are: A19 A18 A17 A16 A15 A14 A One Solution to Address Decoding: A19 A18 A17 A16 A15 A14 A13 To High- Active Chip Select

If the Memory Chips have One High-Active Chip Select and One Low Active Chip Select: A19 A18 A17 A15 CS1 A16 A14 A13 CS2

Or, Using a Decoder (74138): A13 A14 A15 A17 A18 A16 ABCABC CS3 CS2 CS1 A19 CS2 Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7

3-8 Decoder IF SELECTED A2 A1 A0 /Y0 /Y1 /Y2 /Y3 /Y4 /Y5 /y6 /y IF NOT SELECTED x x x

ADDRESS TABLE APPROACH TO MEMORY INTERFACING 1.List in binary the starting address of the address range assigned to each memory chip to be interfaced. (List only the upper address lines, I.e., the ones left over after excluding the ones which must be connected directly to a particular memory chip for its internal selection.

2. Analyze this Address Table and mark with an asterisk (*) all critical address line values for each memory chip in the system. (For each memory chip, the critical address values are the minimum set of address line values which will uniquely specify that chip.) The address line values marked with an asterisk are the ones which must be involved in generating the chip-select signals for that particular chip.

Example: Interfacing Memory Chips to a Computer Having a 20-Bit Address Bus CHIP START. SIZE ADDR (512K) (256K) (128K) (64K) (32K) (16K) A19 A18 A17 A16 A15 A14 64K K 64K K 128K K 160K K 192K K 224K K 240K K 256K

Example: Interfacing Memory Chips to a Computer Having a 20-Bit Address Bus CHIP START. SIZE ADDR (512K) (256K) (128K) (64K) (32K) (16K) A19 A18 A17 A16 A15 A14 64K 0 0 0* 0* 0* 64K 64K 0 0 0* 1* 32K 128K 0 0 1* 0* 0* 32K 160K 0 0 1* 0* 1* 32K 192K 0 0 1* 1* 0* 16K 224K 0 0 1* 1* 1* 0* 16K 240K 0 0 1* 1* 1* 1* 64K 256K 0 1* 0 0

Example: When chips are paired so that one chip covers even part of an address range and one chip covers the odd part. CHIP START. SIZE ADDR (512K) (256K) (128K) (64K) (32K) (16K) A19 A18 A17 A16 A15 A14 64K 0 0 0* 0* 64K 16K 128K 0 0 1* 0* 0* 16K 16K 160K 0 0 1* 0* 1* 16K 32K 192K 0 0 1* 1* 32K 16K 256K 0 1* 0 0 0* 16K 8K 288K 0 1* 0 0 1* 0 8K