SlideShare a Scribd company logo
1 of 15
Chapter 7
Memory and I/O
Decoding
Introduction
 Previous chapter discussed about H/W structure of 8086 seen
with few IC’s
 Now focus is on the way Memory & I/O are connected to the
processor
 Every time we talk about memory, reading or writing from/to
memory an address is referred
 If it is a byte organized, then every location in memory that
can store a byte of data has a unique address
 Total space of 8086 is from 00000 to FFFFFH
 Question is how each location gets unique address?
 We also know that total address space of 1MB is not obtained
by single chip of RAM
 ROM is also a part of memory
 Hence total no. of RAM & ROM chips together constitutes a
total memory i,e the address space.
7.1 Memory Device Pins
 Memory we talk about can be RAM or ROM
 Difference is that ROM can only read from memory
 so MEMWR signal from the processor does not have any
relevance for ROM
 Typical RAM with control pins are shown below
 It has data lines D0 to DM-1
 If it is a byte organized memory, the data lines are D0 to D7
 Number of address lines (A0 to AN-1) depends on the number of
locations it contains
 Eg: if it is specified to be a 256 X 8 RAM, it means that it has 8
data lines and a storage capacity of 256 locations
 thus it needs 8 address lines as 256 = 28
 thus in case of 1K X 8 RAM needs 10 address lines as
1K=1024=210
 Thus it is the capacity of the chip that decides the number of
address lines.
 coming to other pins of the chips, active low signal WE is to be
connected to MEMWR signal from the processor side
 Only if this pin is activated an the write operation be done in the
addressed location
 WE enables buffers of the data lines in the RAM
 for reading the pin MEMRD is to be connected to the OE
(output enable) pin of the memory chip for reading
 when this pin is low, the output lines are activated, else they
remain in tri-stated.
 Some RAM devices have only a single pin for reading or
writing, which is R/W
 It is obvious that only one of the activities (read or write) can
occur at a time
 The pin CS (Chip enable or select) is the pin which enables
the memory chip.
 As no activity is possible if the pin is inactivated
 Pin gets activated only if the address placed on the address
bus of the processor is one of the address in the address range
of chip.
 As this condition satisfied, a select pulse from address
decoder output & memory chip turn ON
 ROM chip is similar except it does not have a WE pin
Why Active Low Control Signals?
 Most of the signals discussed are active low.
 This is a TTL (Transistor- Transistor Logic) concept.
 Stray capacitances of the control pins can get charged from
noise voltages, as this may cause the signals to cross the
threshold ‘high’ level as defined for TTL
 if the control signals are active high, it may cause wrong
triggering
 Problems
7.2 Memory Address Decoding
 Fig shown with 2K X 8 memory chips
 The memory chip has 11 address lines, that are directly
connected to the 11 lower lines of the address bus of the
processor
 remaining 9 lines of the address bus of the processor are
connected to the inputs of a NAND gate whose output pin feeds
the CS pin of the memory chip.
 It is obvious that the chip is selected (enabled) only if all the input
lines of the NAND gate are high
 Means A11 – A19 of the address has to be high for the memory
chip to be selected and made active.
 NAND gate thus functions as the address decoder for the memory
 It fixes up the address range of the chip
7.2.1 Address Decoding Concept
 Basic idea of address decoding is to decode the extra unused
address lines of the processor to specify the address range
 When more chips are to be interfaced, decode the extra
address lines to a different range for each group
 Any logic/logic gate can be used to perform address
decoding
 In general, address decoding can be built using:
- Random logic (Simple Gates)
- Block decoders ( e.g. 2x4, 3x8, ...)
- Programmable Logic (PLAs, CPLDs, FPGAs,....)
Problems
7.2.2 Address Decoding Using Block Decoder
 Popular decoder is the 3 to 8 decoder (74LS138)
 Here output lines are active low
 To enable the decoder chip, it must be ensured that G2A and
G2B are at logic level 0 & G1 is at logic 1.
 Decoding of the chip is shown below
 Lets take a 1K X 8 RAM chip that uses a 3 to 8 decoder for
memory decoding
 Here RAM has 10 address lines
 So remaining 10 lines of the processor can be used for
decoding
 Need o calculate the address space
 Consider the hardware connection
 The address lines A0 to A9 from the address bus of the
processor are directly connected to the address lines of RAM
 Logic on these lines can vary from 00 0000 0000 to 11 1111
1111
 Remaining 10 address lines of the processor are used for
address decoding
 Thus we see them connected to the pins of the decoder
 To enable the decoder G2A and G2B must be 0 & G1 must be
1.
 Also to enable Y3, CBA must be 011
 Thus the logic on the lines from A19 to A10 should be
1111 1111 10
 Thus the upper & lower range of the address is as
shown below.
 In hardware connection between a memory & a processor
7.2.3 Partial Address Decoding

More Related Content

What's hot

What's hot (20)

8051 block diagram
8051 block diagram8051 block diagram
8051 block diagram
 
MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
 
ARM Processors
ARM ProcessorsARM Processors
ARM Processors
 
Registers-shift register
Registers-shift registerRegisters-shift register
Registers-shift register
 
ARM7-ARCHITECTURE
ARM7-ARCHITECTURE ARM7-ARCHITECTURE
ARM7-ARCHITECTURE
 
8051 timer counter
8051 timer counter8051 timer counter
8051 timer counter
 
ARM architcture
ARM architcture ARM architcture
ARM architcture
 
SRAM DRAM
SRAM DRAMSRAM DRAM
SRAM DRAM
 
Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)
 
Arm instruction set
Arm instruction setArm instruction set
Arm instruction set
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
 
Unit II Arm 7 Introduction
Unit II Arm 7 IntroductionUnit II Arm 7 Introduction
Unit II Arm 7 Introduction
 
Interrupt
InterruptInterrupt
Interrupt
 
Interrupts for PIC18
Interrupts for PIC18Interrupts for PIC18
Interrupts for PIC18
 
8051 instruction set
8051 instruction set8051 instruction set
8051 instruction set
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 
Microcontroller-8051.ppt
Microcontroller-8051.pptMicrocontroller-8051.ppt
Microcontroller-8051.ppt
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051
 

Similar to Chapter 7 memory & i/o

13402lecture3 111204134846-phpapp02
13402lecture3 111204134846-phpapp0213402lecture3 111204134846-phpapp02
13402lecture3 111204134846-phpapp02
raj kumar
 
Memory intrface and addrs modes
Memory intrface and addrs modesMemory intrface and addrs modes
Memory intrface and addrs modes
balbirvirdi
 
4th yr dmumicrocontroller1
4th yr dmumicrocontroller14th yr dmumicrocontroller1
4th yr dmumicrocontroller1
haymanotyehuala
 
Chp3 designing bus system, memory & io copy
Chp3 designing bus system, memory & io   copyChp3 designing bus system, memory & io   copy
Chp3 designing bus system, memory & io copy
mkazree
 

Similar to Chapter 7 memory & i/o (20)

Interfacing address
Interfacing addressInterfacing address
Interfacing address
 
memory-interfacing.ppt
memory-interfacing.pptmemory-interfacing.ppt
memory-interfacing.ppt
 
DIGITAL DESIGNS SLIDES 7 ENGINEERING 2ND YEAR
DIGITAL DESIGNS SLIDES 7 ENGINEERING  2ND YEARDIGITAL DESIGNS SLIDES 7 ENGINEERING  2ND YEAR
DIGITAL DESIGNS SLIDES 7 ENGINEERING 2ND YEAR
 
13402lecture3 111204134846-phpapp02
13402lecture3 111204134846-phpapp0213402lecture3 111204134846-phpapp02
13402lecture3 111204134846-phpapp02
 
RAM Design
RAM DesignRAM Design
RAM Design
 
Memory intrface and addrs modes
Memory intrface and addrs modesMemory intrface and addrs modes
Memory intrface and addrs modes
 
05 basic io_operation_part01
05 basic io_operation_part0105 basic io_operation_part01
05 basic io_operation_part01
 
4th yr dmumicrocontroller1
4th yr dmumicrocontroller14th yr dmumicrocontroller1
4th yr dmumicrocontroller1
 
8051.ppt
8051.ppt8051.ppt
8051.ppt
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III  The 8051 MicrocontrollersSYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III  The 8051 Microcontrollers
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
 
Memory_Interface.pdf
Memory_Interface.pdfMemory_Interface.pdf
Memory_Interface.pdf
 
Micro 8051
Micro 8051Micro 8051
Micro 8051
 
Part of UNIT2 Memory mapped IOjkl;'lk.pdf
Part of UNIT2 Memory mapped IOjkl;'lk.pdfPart of UNIT2 Memory mapped IOjkl;'lk.pdf
Part of UNIT2 Memory mapped IOjkl;'lk.pdf
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
 
Microprocessor Part 1
Microprocessor    Part 1Microprocessor    Part 1
Microprocessor Part 1
 
Memory Organisation in Computer Architecture.pdf
Memory Organisation in Computer Architecture.pdfMemory Organisation in Computer Architecture.pdf
Memory Organisation in Computer Architecture.pdf
 
Chp3 designing bus system, memory & io copy
Chp3 designing bus system, memory & io   copyChp3 designing bus system, memory & io   copy
Chp3 designing bus system, memory & io copy
 
assignment 1-MC.pdf
assignment 1-MC.pdfassignment 1-MC.pdf
assignment 1-MC.pdf
 
Microprocessor questions converted
Microprocessor questions convertedMicroprocessor questions converted
Microprocessor questions converted
 
8085 (1)
8085 (1)8085 (1)
8085 (1)
 

More from SHREEHARI WADAWADAGI

More from SHREEHARI WADAWADAGI (18)

Chapter 15 software product metrics
Chapter 15 software product metricsChapter 15 software product metrics
Chapter 15 software product metrics
 
Chapter 14 software testing techniques
Chapter 14 software testing techniquesChapter 14 software testing techniques
Chapter 14 software testing techniques
 
Chapter 13 software testing strategies
Chapter 13 software testing strategiesChapter 13 software testing strategies
Chapter 13 software testing strategies
 
Chapter 12 user interface design
Chapter 12 user interface designChapter 12 user interface design
Chapter 12 user interface design
 
Chapter 21 project management concepts
Chapter 21 project management conceptsChapter 21 project management concepts
Chapter 21 project management concepts
 
Ch 11-component-level-design
Ch 11-component-level-designCh 11-component-level-design
Ch 11-component-level-design
 
Ch 9-design-engineering
Ch 9-design-engineeringCh 9-design-engineering
Ch 9-design-engineering
 
An introduction to software engineering
An introduction to software engineeringAn introduction to software engineering
An introduction to software engineering
 
Architectural design
Architectural designArchitectural design
Architectural design
 
Chapter 5 programming concepts iv
Chapter 5  programming concepts ivChapter 5  programming concepts iv
Chapter 5 programming concepts iv
 
Chapter 4 programming concepts III
Chapter 4  programming concepts IIIChapter 4  programming concepts III
Chapter 4 programming concepts III
 
Chapter 1 archietecture of 8086
Chapter 1 archietecture of 8086Chapter 1 archietecture of 8086
Chapter 1 archietecture of 8086
 
Brief description of all the interupts
Brief description of all the interuptsBrief description of all the interupts
Brief description of all the interupts
 
Chapter 6 hardware structure of 8086
Chapter 6  hardware structure of 8086Chapter 6  hardware structure of 8086
Chapter 6 hardware structure of 8086
 
Chapter 3 programming concepts-ii
Chapter 3  programming concepts-iiChapter 3  programming concepts-ii
Chapter 3 programming concepts-ii
 
Chapter 2 programming concepts - I
Chapter 2  programming concepts - IChapter 2  programming concepts - I
Chapter 2 programming concepts - I
 
Arm processor
Arm processorArm processor
Arm processor
 
8086 complete guide
8086 complete guide 8086 complete guide
8086 complete guide
 

Recently uploaded

Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
pritamlangde
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
Kamal Acharya
 

Recently uploaded (20)

Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
 
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
 
UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptx
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdf
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
Computer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesComputer Graphics Introduction To Curves
Computer Graphics Introduction To Curves
 

Chapter 7 memory & i/o

  • 1. Chapter 7 Memory and I/O Decoding
  • 2. Introduction  Previous chapter discussed about H/W structure of 8086 seen with few IC’s  Now focus is on the way Memory & I/O are connected to the processor  Every time we talk about memory, reading or writing from/to memory an address is referred  If it is a byte organized, then every location in memory that can store a byte of data has a unique address  Total space of 8086 is from 00000 to FFFFFH  Question is how each location gets unique address?  We also know that total address space of 1MB is not obtained by single chip of RAM  ROM is also a part of memory  Hence total no. of RAM & ROM chips together constitutes a total memory i,e the address space.
  • 3. 7.1 Memory Device Pins  Memory we talk about can be RAM or ROM  Difference is that ROM can only read from memory  so MEMWR signal from the processor does not have any relevance for ROM  Typical RAM with control pins are shown below
  • 4.  It has data lines D0 to DM-1  If it is a byte organized memory, the data lines are D0 to D7  Number of address lines (A0 to AN-1) depends on the number of locations it contains  Eg: if it is specified to be a 256 X 8 RAM, it means that it has 8 data lines and a storage capacity of 256 locations  thus it needs 8 address lines as 256 = 28  thus in case of 1K X 8 RAM needs 10 address lines as 1K=1024=210  Thus it is the capacity of the chip that decides the number of address lines.  coming to other pins of the chips, active low signal WE is to be connected to MEMWR signal from the processor side  Only if this pin is activated an the write operation be done in the addressed location  WE enables buffers of the data lines in the RAM
  • 5.  for reading the pin MEMRD is to be connected to the OE (output enable) pin of the memory chip for reading  when this pin is low, the output lines are activated, else they remain in tri-stated.  Some RAM devices have only a single pin for reading or writing, which is R/W  It is obvious that only one of the activities (read or write) can occur at a time  The pin CS (Chip enable or select) is the pin which enables the memory chip.  As no activity is possible if the pin is inactivated  Pin gets activated only if the address placed on the address bus of the processor is one of the address in the address range of chip.  As this condition satisfied, a select pulse from address decoder output & memory chip turn ON  ROM chip is similar except it does not have a WE pin
  • 6. Why Active Low Control Signals?  Most of the signals discussed are active low.  This is a TTL (Transistor- Transistor Logic) concept.  Stray capacitances of the control pins can get charged from noise voltages, as this may cause the signals to cross the threshold ‘high’ level as defined for TTL  if the control signals are active high, it may cause wrong triggering  Problems
  • 7. 7.2 Memory Address Decoding  Fig shown with 2K X 8 memory chips  The memory chip has 11 address lines, that are directly connected to the 11 lower lines of the address bus of the processor  remaining 9 lines of the address bus of the processor are connected to the inputs of a NAND gate whose output pin feeds the CS pin of the memory chip.
  • 8.  It is obvious that the chip is selected (enabled) only if all the input lines of the NAND gate are high  Means A11 – A19 of the address has to be high for the memory chip to be selected and made active.  NAND gate thus functions as the address decoder for the memory  It fixes up the address range of the chip
  • 9. 7.2.1 Address Decoding Concept  Basic idea of address decoding is to decode the extra unused address lines of the processor to specify the address range  When more chips are to be interfaced, decode the extra address lines to a different range for each group  Any logic/logic gate can be used to perform address decoding  In general, address decoding can be built using: - Random logic (Simple Gates) - Block decoders ( e.g. 2x4, 3x8, ...) - Programmable Logic (PLAs, CPLDs, FPGAs,....) Problems
  • 10. 7.2.2 Address Decoding Using Block Decoder  Popular decoder is the 3 to 8 decoder (74LS138)  Here output lines are active low  To enable the decoder chip, it must be ensured that G2A and G2B are at logic level 0 & G1 is at logic 1.
  • 11.  Decoding of the chip is shown below  Lets take a 1K X 8 RAM chip that uses a 3 to 8 decoder for memory decoding  Here RAM has 10 address lines  So remaining 10 lines of the processor can be used for decoding  Need o calculate the address space
  • 12.  Consider the hardware connection
  • 13.  The address lines A0 to A9 from the address bus of the processor are directly connected to the address lines of RAM  Logic on these lines can vary from 00 0000 0000 to 11 1111 1111  Remaining 10 address lines of the processor are used for address decoding  Thus we see them connected to the pins of the decoder  To enable the decoder G2A and G2B must be 0 & G1 must be 1.
  • 14.  Also to enable Y3, CBA must be 011  Thus the logic on the lines from A19 to A10 should be 1111 1111 10  Thus the upper & lower range of the address is as shown below.
  • 15.  In hardware connection between a memory & a processor 7.2.3 Partial Address Decoding