SlideShare a Scribd company logo
2
Most read
6
Most read
13
Most read
D E C O D E R
7 4 L S 1 3 8 B I N A R Y D E C O D E R
A D D R E S S D E C O D I N G U S I N G 3 * 8 D E C O D E R
I N 8 0 8 5 M I C R O P R O C E S S O R
Bus Structure, Memory and I/O
Interfacing
Er. Sulav Paudel | MSc
Decoder
 The decoder is a logic circuit that indentifies each
combination of the signals present at its input.
 If the input to the decoder had ‘n’ lines, the decoder
will have 2n output lines.
 Eg, if n = 2, the no. of output lines = 2n = 22 = 4.
 The two lines can assume four combinations of input
signals – 00, 01, 10, 11; with each combination
identified by the output lines 0 to 3. If the input is 11,
the output line 3 will be at logic 1 and other will
remain at logic 0. This is called decoding.
Er. Sulav Paudel | MSc
Decoder
 Various types of decoders are available, eg., 3 to 8, 4
to 16, etc.
 In general decoders have enable lines too. The
decoder will not function unless enable lines are
activated.
A 2-to-4 Binary Decoders
Er. Sulav Paudel | MSc
74LS138 Binary Decoder
 If the input has three binary lines, then the output
lines would be 8.
74LS138 Binary Decoder
Er. Sulav Paudel | MSc
74LS138 Binary Decoder (cont.)
Er. Sulav Paudel | MSc
 74LS138 can be used to decode 3 address lines to enable
up to 8 memory chips (each of its output can be used to
enable a different chip).
 All 8 outputs are not asserted when the enable input is
not asserted.
 Only one output is asserted when enable input is
asserted, and the output asserted depends on the A, B, C
selection inputs (one output for each possible
combination).
 Sometimes an external logic gate may be used in
conjunction with the 74LS138 to perform decoding using
more than 3 address lines.
A 4-to-16 Binary Decoder Configuration
Er. Sulav Paudel | MSc
Memory Address Decoding
Er. Sulav Paudel | MSc
Memory Address Decoding
 The binary decoder requires only 3 address lines, (A0 to
A2) to select each one of the 8 chips (the lower part of the
address), while the remaining 8 address lines (A3 to A10)
select the correct memory location on that chip (the
upper part of the address).
 Having selected a memory location using the address
bus, the information at the particular internal memory
location is sent to a common “Data Bus” for use by the
microprocessor.
 This is of course a simple example but the principals
remain the same the same for all types of memory chips
or modules.
Er. Sulav Paudel | MSc
Encoder
 The encoder is a logic circuit that provides the
appropriate code (binary, BCD, etc.) as output for
each input signals.
 The process is reverse of decoding.
Er. Sulav Paudel | MSc
Address Decoding using 3 * 8 Decoder in 8085
Microprocessor
Interface 2K bytes of memory to 8085 with memory
address 8000H. (Using logic gates and decoder)
 Solution:
2K = 2048 = 211
The total address lines required will be A10 to A0.
Write the 8000H, starting addressing in the table
below. The ending address can be found as follows:
A15 A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1
Er. Sulav Paudel | MSc
 In this state, 11 bits are used for 2K bytes of memory.
 It will be minimum value when A10 to A0 lines are
zero and when A10 to A0 lines all are high, it will be
maximum value. So maximum value in HEX is
87FFH which is the ending address.
Er. Sulav Paudel | MSc
Address decoding using simple NAND gate
decoder
 Thus A15 to A11 = ‘1 0 0 0 0’, these lines are used to
select the memory chip.
Er. Sulav Paudel | MSc
Addressing decoding using simple NAND gate decoder
Address decoding using simple NAND gate 3 * 8
Decoder in 8085 Microprocessor
Er. Sulav Paudel | MSc
Address Decoding using 74LS138 Decoder
Er. Sulav Paudel | MSc
 Interface 64K (eight 8K * 8 bits) byte block of
memory with the physical address in the range
F0000H to FFFFFH
 Solution:
8K = 213 bytes in each EPROM
Address Decoding using 74LS138 Decoder
Er. Sulav Paudel | MSc
Mapped the memory directly to an 8K byte block
1st block: F0000H – F1FFFH
2nd block: F2000H – F3FFFH
3rd block: F4000H – F5FFFH
4th block: F6000H – F7FFFH
5th block: F8000H – F9FFFH
6th block: FA000H – FBFFFH
7th block: FC000H – FDFFFH
8th block: FE000H – FFFFFH
Address Decoding using 74LS138 Decoder
Er. Sulav Paudel | MSc
 The most significant hexadecimal digit must be F to
address the 8 EPROMS.
 Hence, address lines A16 – A19 may be used to
enable the 138 decoder (so that CE signals are only
generated if A16 – A19 are all asserted)
Address Decoding using 74LS138 Decoder
Er. Sulav Paudel | MSc
1st block: F0000 – F1FFFH = 1111 0000 0000 0000 0000
1111 0001 1111 1111 1111
2nd block: F2000 – F3FFFH
3rd block:
4th block:
5th block:
6th block:
7th block:
8th block: FE000 – FFFFFH = 1111 1110 0000 0000 0000
1111 1111 1111 1111 1111
Used for
Enable
pins
Used for
Selection
pins
Address Decoding using 74LS138 Decoder
Er. Sulav Paudel | MSc
 The address pins of each EPROM (Memory) must be
connected to the 13 least significant address lines in
order to address the 213 (=8K) bytes in each EPROM.
Ad

Recommended

8086 micro processor
8086 micro processor
Poojith Chowdhary
 
Addressing modes
Addressing modes
karthiga selvaraju
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction Set
Dr. Pankaj Zope
 
ARM Processors
ARM Processors
Mathivanan Natarajan
 
Memory Organisation in embedded systems
Memory Organisation in embedded systems
UthraSowrirajan1
 
PAI Unit 3 Paging in 80386 Microporcessor
PAI Unit 3 Paging in 80386 Microporcessor
KanchanPatil34
 
Subroutine & string in 8086 Microprocessor
Subroutine & string in 8086 Microprocessor
Mustafa AL-Timemmie
 
8096 microcontrollers notes
8096 microcontrollers notes
Dr.YNM
 
Pic microcontroller architecture
Pic microcontroller architecture
DominicHendry
 
Serial Communication Interfaces
Serial Communication Interfaces
anishgoel
 
Memory & I/O interfacing
Memory & I/O interfacing
deval patel
 
Intel 8259 - Programmable Interrupt Controller
Intel 8259 - Programmable Interrupt Controller
Nikhil Baby
 
8251 USART
8251 USART
coolsdhanesh
 
Addressing modes of 8086
Addressing modes of 8086
saurav kumar
 
5.programmable interval timer 8253
5.programmable interval timer 8253
MdFazleRabbi18
 
Memory mapping
Memory mapping
SnehalataAgasti
 
Pic 18 microcontroller
Pic 18 microcontroller
Ashish Ranjan
 
VHDL- gate level modelling
VHDL- gate level modelling
VandanaPagar1
 
Semiconductor Memories
Semiconductor Memories
melisha monteiro
 
8086 signals
8086 signals
mpsrekha83
 
4.programmable dma controller 8257
4.programmable dma controller 8257
MdFazleRabbi18
 
8085 mpu bus architecture
8085 mpu bus architecture
MdHaque78
 
Computer organization memory
Computer organization memory
Deepak John
 
Interrupt
Interrupt
Siddique Ibrahim
 
8051 Microcontroller
8051 Microcontroller
thokalpv
 
Pipelining powerpoint presentation
Pipelining powerpoint presentation
bhavanadonthi
 
Moore and Mealy machines
Moore and Mealy machines
Irfan Anjum
 
PAI Unit 2 Segmentation in 80386 microprocessor
PAI Unit 2 Segmentation in 80386 microprocessor
KanchanPatil34
 
Interfacing address
Interfacing address
Sandeep Kamath
 
Lecture 8 Decoders & Encoders (combinational circuits)
Lecture 8 Decoders & Encoders (combinational circuits)
andrewzimba02
 

More Related Content

What's hot (20)

Pic microcontroller architecture
Pic microcontroller architecture
DominicHendry
 
Serial Communication Interfaces
Serial Communication Interfaces
anishgoel
 
Memory & I/O interfacing
Memory & I/O interfacing
deval patel
 
Intel 8259 - Programmable Interrupt Controller
Intel 8259 - Programmable Interrupt Controller
Nikhil Baby
 
8251 USART
8251 USART
coolsdhanesh
 
Addressing modes of 8086
Addressing modes of 8086
saurav kumar
 
5.programmable interval timer 8253
5.programmable interval timer 8253
MdFazleRabbi18
 
Memory mapping
Memory mapping
SnehalataAgasti
 
Pic 18 microcontroller
Pic 18 microcontroller
Ashish Ranjan
 
VHDL- gate level modelling
VHDL- gate level modelling
VandanaPagar1
 
Semiconductor Memories
Semiconductor Memories
melisha monteiro
 
8086 signals
8086 signals
mpsrekha83
 
4.programmable dma controller 8257
4.programmable dma controller 8257
MdFazleRabbi18
 
8085 mpu bus architecture
8085 mpu bus architecture
MdHaque78
 
Computer organization memory
Computer organization memory
Deepak John
 
Interrupt
Interrupt
Siddique Ibrahim
 
8051 Microcontroller
8051 Microcontroller
thokalpv
 
Pipelining powerpoint presentation
Pipelining powerpoint presentation
bhavanadonthi
 
Moore and Mealy machines
Moore and Mealy machines
Irfan Anjum
 
PAI Unit 2 Segmentation in 80386 microprocessor
PAI Unit 2 Segmentation in 80386 microprocessor
KanchanPatil34
 
Pic microcontroller architecture
Pic microcontroller architecture
DominicHendry
 
Serial Communication Interfaces
Serial Communication Interfaces
anishgoel
 
Memory & I/O interfacing
Memory & I/O interfacing
deval patel
 
Intel 8259 - Programmable Interrupt Controller
Intel 8259 - Programmable Interrupt Controller
Nikhil Baby
 
Addressing modes of 8086
Addressing modes of 8086
saurav kumar
 
5.programmable interval timer 8253
5.programmable interval timer 8253
MdFazleRabbi18
 
Pic 18 microcontroller
Pic 18 microcontroller
Ashish Ranjan
 
VHDL- gate level modelling
VHDL- gate level modelling
VandanaPagar1
 
4.programmable dma controller 8257
4.programmable dma controller 8257
MdFazleRabbi18
 
8085 mpu bus architecture
8085 mpu bus architecture
MdHaque78
 
Computer organization memory
Computer organization memory
Deepak John
 
8051 Microcontroller
8051 Microcontroller
thokalpv
 
Pipelining powerpoint presentation
Pipelining powerpoint presentation
bhavanadonthi
 
Moore and Mealy machines
Moore and Mealy machines
Irfan Anjum
 
PAI Unit 2 Segmentation in 80386 microprocessor
PAI Unit 2 Segmentation in 80386 microprocessor
KanchanPatil34
 

Similar to Bus Structure, Memory and I/O Interfacing (20)

Interfacing address
Interfacing address
Sandeep Kamath
 
Lecture 8 Decoders & Encoders (combinational circuits)
Lecture 8 Decoders & Encoders (combinational circuits)
andrewzimba02
 
Advance Microprocessor application and its uses
Advance Microprocessor application and its uses
nikhilksp512
 
knowledge in daily life.ppt
knowledge in daily life.ppt
SunilSharma941036
 
Notes chapter 6
Notes chapter 6
HarshitParkar6677
 
unit 2 microprocesor8085 for advantages disadvatage gtu syllabus.pptx
unit 2 microprocesor8085 for advantages disadvatage gtu syllabus.pptx
dravidparmar1
 
memory-interfacing.ppt
memory-interfacing.ppt
Vanitha472439
 
interfacing1 lecture notes for eng 5.ppt
interfacing1 lecture notes for eng 5.ppt
JumanneChiyanda
 
Memory intrface and addrs modes
Memory intrface and addrs modes
balbirvirdi
 
ATT SMK.pptx
ATT SMK.pptx
MadhavKarve
 
pin-diagram of 8085_new.ppt
pin-diagram of 8085_new.ppt
praveenkistappagari
 
8085 microprocessor Architecture and pin description
8085 microprocessor Architecture and pin description
Vijay Kumar
 
8085 Interfacing with I/O Devices or Memory
8085 Interfacing with I/O Devices or Memory
Saumay Paul
 
lecture 18PART 1 Memory Interfacing.pptx
lecture 18PART 1 Memory Interfacing.pptx
0901ET211047ROHITSIN
 
decoders121-170714184489769876987698749.pptx
decoders121-170714184489769876987698749.pptx
tlap4412
 
16. memory interfacing ii
16. memory interfacing ii
sandip das
 
Microprocessor history1
Microprocessor history1
HarshitParkar6677
 
Microprocessor history1
Microprocessor history1
HarshitParkar6677
 
timing_diagram_of_8085.pptx
timing_diagram_of_8085.pptx
BhagyarajKosamia
 
Ch3 ppt
Ch3 ppt
wasz123
 
Lecture 8 Decoders & Encoders (combinational circuits)
Lecture 8 Decoders & Encoders (combinational circuits)
andrewzimba02
 
Advance Microprocessor application and its uses
Advance Microprocessor application and its uses
nikhilksp512
 
unit 2 microprocesor8085 for advantages disadvatage gtu syllabus.pptx
unit 2 microprocesor8085 for advantages disadvatage gtu syllabus.pptx
dravidparmar1
 
memory-interfacing.ppt
memory-interfacing.ppt
Vanitha472439
 
interfacing1 lecture notes for eng 5.ppt
interfacing1 lecture notes for eng 5.ppt
JumanneChiyanda
 
Memory intrface and addrs modes
Memory intrface and addrs modes
balbirvirdi
 
8085 microprocessor Architecture and pin description
8085 microprocessor Architecture and pin description
Vijay Kumar
 
8085 Interfacing with I/O Devices or Memory
8085 Interfacing with I/O Devices or Memory
Saumay Paul
 
lecture 18PART 1 Memory Interfacing.pptx
lecture 18PART 1 Memory Interfacing.pptx
0901ET211047ROHITSIN
 
decoders121-170714184489769876987698749.pptx
decoders121-170714184489769876987698749.pptx
tlap4412
 
16. memory interfacing ii
16. memory interfacing ii
sandip das
 
timing_diagram_of_8085.pptx
timing_diagram_of_8085.pptx
BhagyarajKosamia
 
Ad

Recently uploaded (20)

Deep Learning for Image Processing on 16 June 2025 MITS.pptx
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
resming1
 
Fundamentals of Digital Design_Class_12th April.pptx
Fundamentals of Digital Design_Class_12th April.pptx
drdebarshi1993
 
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
resming1
 
Modern multi-proposer consensus implementations
Modern multi-proposer consensus implementations
François Garillot
 
Unit III_One Dimensional Consolidation theory
Unit III_One Dimensional Consolidation theory
saravananr808639
 
nnnnnnnnnnnn7777777777777777777777777777777.pptx
nnnnnnnnnnnn7777777777777777777777777777777.pptx
gayathri venkataramani
 
NEW Strengthened Senior High School Gen Math.pptx
NEW Strengthened Senior High School Gen Math.pptx
DaryllWhere
 
Rapid Prototyping for XR: Lecture 6 - AI for Prototyping and Research Directi...
Rapid Prototyping for XR: Lecture 6 - AI for Prototyping and Research Directi...
Mark Billinghurst
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
djiceramil
 
System design handwritten notes guidance
System design handwritten notes guidance
Shabista Imam
 
IPL_Logic_Flow.pdf Mainframe IPLMainframe IPL
IPL_Logic_Flow.pdf Mainframe IPLMainframe IPL
KhadijaKhadijaAouadi
 
AI_Presentation (1). Artificial intelligence
AI_Presentation (1). Artificial intelligence
RoselynKaur8thD34
 
Complete guidance book of Asp.Net Web API
Complete guidance book of Asp.Net Web API
Shabista Imam
 
Structured Programming with C++ :: Kjell Backman
Structured Programming with C++ :: Kjell Backman
Shabista Imam
 
A Cluster-Based Trusted Secure Multipath Routing Protocol for Mobile Ad Hoc N...
A Cluster-Based Trusted Secure Multipath Routing Protocol for Mobile Ad Hoc N...
IJCNCJournal
 
Industry 4.o the fourth revolutionWeek-2.pptx
Industry 4.o the fourth revolutionWeek-2.pptx
KNaveenKumarECE
 
DESIGN OF REINFORCED CONCRETE ELEMENTS S
DESIGN OF REINFORCED CONCRETE ELEMENTS S
prabhusp8
 
Complete University of Calculus :: 2nd edition
Complete University of Calculus :: 2nd edition
Shabista Imam
 
60 Years and Beyond eBook 1234567891.pdf
60 Years and Beyond eBook 1234567891.pdf
waseemalazzeh
 
Stay Safe Women Security Android App Project Report.pdf
Stay Safe Women Security Android App Project Report.pdf
Kamal Acharya
 
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
resming1
 
Fundamentals of Digital Design_Class_12th April.pptx
Fundamentals of Digital Design_Class_12th April.pptx
drdebarshi1993
 
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
resming1
 
Modern multi-proposer consensus implementations
Modern multi-proposer consensus implementations
François Garillot
 
Unit III_One Dimensional Consolidation theory
Unit III_One Dimensional Consolidation theory
saravananr808639
 
nnnnnnnnnnnn7777777777777777777777777777777.pptx
nnnnnnnnnnnn7777777777777777777777777777777.pptx
gayathri venkataramani
 
NEW Strengthened Senior High School Gen Math.pptx
NEW Strengthened Senior High School Gen Math.pptx
DaryllWhere
 
Rapid Prototyping for XR: Lecture 6 - AI for Prototyping and Research Directi...
Rapid Prototyping for XR: Lecture 6 - AI for Prototyping and Research Directi...
Mark Billinghurst
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
djiceramil
 
System design handwritten notes guidance
System design handwritten notes guidance
Shabista Imam
 
IPL_Logic_Flow.pdf Mainframe IPLMainframe IPL
IPL_Logic_Flow.pdf Mainframe IPLMainframe IPL
KhadijaKhadijaAouadi
 
AI_Presentation (1). Artificial intelligence
AI_Presentation (1). Artificial intelligence
RoselynKaur8thD34
 
Complete guidance book of Asp.Net Web API
Complete guidance book of Asp.Net Web API
Shabista Imam
 
Structured Programming with C++ :: Kjell Backman
Structured Programming with C++ :: Kjell Backman
Shabista Imam
 
A Cluster-Based Trusted Secure Multipath Routing Protocol for Mobile Ad Hoc N...
A Cluster-Based Trusted Secure Multipath Routing Protocol for Mobile Ad Hoc N...
IJCNCJournal
 
Industry 4.o the fourth revolutionWeek-2.pptx
Industry 4.o the fourth revolutionWeek-2.pptx
KNaveenKumarECE
 
DESIGN OF REINFORCED CONCRETE ELEMENTS S
DESIGN OF REINFORCED CONCRETE ELEMENTS S
prabhusp8
 
Complete University of Calculus :: 2nd edition
Complete University of Calculus :: 2nd edition
Shabista Imam
 
60 Years and Beyond eBook 1234567891.pdf
60 Years and Beyond eBook 1234567891.pdf
waseemalazzeh
 
Stay Safe Women Security Android App Project Report.pdf
Stay Safe Women Security Android App Project Report.pdf
Kamal Acharya
 
Ad

Bus Structure, Memory and I/O Interfacing

  • 1. D E C O D E R 7 4 L S 1 3 8 B I N A R Y D E C O D E R A D D R E S S D E C O D I N G U S I N G 3 * 8 D E C O D E R I N 8 0 8 5 M I C R O P R O C E S S O R Bus Structure, Memory and I/O Interfacing Er. Sulav Paudel | MSc
  • 2. Decoder  The decoder is a logic circuit that indentifies each combination of the signals present at its input.  If the input to the decoder had ‘n’ lines, the decoder will have 2n output lines.  Eg, if n = 2, the no. of output lines = 2n = 22 = 4.  The two lines can assume four combinations of input signals – 00, 01, 10, 11; with each combination identified by the output lines 0 to 3. If the input is 11, the output line 3 will be at logic 1 and other will remain at logic 0. This is called decoding. Er. Sulav Paudel | MSc
  • 3. Decoder  Various types of decoders are available, eg., 3 to 8, 4 to 16, etc.  In general decoders have enable lines too. The decoder will not function unless enable lines are activated. A 2-to-4 Binary Decoders Er. Sulav Paudel | MSc
  • 4. 74LS138 Binary Decoder  If the input has three binary lines, then the output lines would be 8. 74LS138 Binary Decoder Er. Sulav Paudel | MSc
  • 5. 74LS138 Binary Decoder (cont.) Er. Sulav Paudel | MSc  74LS138 can be used to decode 3 address lines to enable up to 8 memory chips (each of its output can be used to enable a different chip).  All 8 outputs are not asserted when the enable input is not asserted.  Only one output is asserted when enable input is asserted, and the output asserted depends on the A, B, C selection inputs (one output for each possible combination).  Sometimes an external logic gate may be used in conjunction with the 74LS138 to perform decoding using more than 3 address lines.
  • 6. A 4-to-16 Binary Decoder Configuration Er. Sulav Paudel | MSc
  • 7. Memory Address Decoding Er. Sulav Paudel | MSc
  • 8. Memory Address Decoding  The binary decoder requires only 3 address lines, (A0 to A2) to select each one of the 8 chips (the lower part of the address), while the remaining 8 address lines (A3 to A10) select the correct memory location on that chip (the upper part of the address).  Having selected a memory location using the address bus, the information at the particular internal memory location is sent to a common “Data Bus” for use by the microprocessor.  This is of course a simple example but the principals remain the same the same for all types of memory chips or modules. Er. Sulav Paudel | MSc
  • 9. Encoder  The encoder is a logic circuit that provides the appropriate code (binary, BCD, etc.) as output for each input signals.  The process is reverse of decoding. Er. Sulav Paudel | MSc
  • 10. Address Decoding using 3 * 8 Decoder in 8085 Microprocessor Interface 2K bytes of memory to 8085 with memory address 8000H. (Using logic gates and decoder)  Solution: 2K = 2048 = 211 The total address lines required will be A10 to A0. Write the 8000H, starting addressing in the table below. The ending address can be found as follows: A15 A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 Er. Sulav Paudel | MSc
  • 11.  In this state, 11 bits are used for 2K bytes of memory.  It will be minimum value when A10 to A0 lines are zero and when A10 to A0 lines all are high, it will be maximum value. So maximum value in HEX is 87FFH which is the ending address. Er. Sulav Paudel | MSc
  • 12. Address decoding using simple NAND gate decoder  Thus A15 to A11 = ‘1 0 0 0 0’, these lines are used to select the memory chip. Er. Sulav Paudel | MSc Addressing decoding using simple NAND gate decoder
  • 13. Address decoding using simple NAND gate 3 * 8 Decoder in 8085 Microprocessor Er. Sulav Paudel | MSc
  • 14. Address Decoding using 74LS138 Decoder Er. Sulav Paudel | MSc  Interface 64K (eight 8K * 8 bits) byte block of memory with the physical address in the range F0000H to FFFFFH  Solution: 8K = 213 bytes in each EPROM
  • 15. Address Decoding using 74LS138 Decoder Er. Sulav Paudel | MSc Mapped the memory directly to an 8K byte block 1st block: F0000H – F1FFFH 2nd block: F2000H – F3FFFH 3rd block: F4000H – F5FFFH 4th block: F6000H – F7FFFH 5th block: F8000H – F9FFFH 6th block: FA000H – FBFFFH 7th block: FC000H – FDFFFH 8th block: FE000H – FFFFFH
  • 16. Address Decoding using 74LS138 Decoder Er. Sulav Paudel | MSc  The most significant hexadecimal digit must be F to address the 8 EPROMS.  Hence, address lines A16 – A19 may be used to enable the 138 decoder (so that CE signals are only generated if A16 – A19 are all asserted)
  • 17. Address Decoding using 74LS138 Decoder Er. Sulav Paudel | MSc 1st block: F0000 – F1FFFH = 1111 0000 0000 0000 0000 1111 0001 1111 1111 1111 2nd block: F2000 – F3FFFH 3rd block: 4th block: 5th block: 6th block: 7th block: 8th block: FE000 – FFFFFH = 1111 1110 0000 0000 0000 1111 1111 1111 1111 1111 Used for Enable pins Used for Selection pins
  • 18. Address Decoding using 74LS138 Decoder Er. Sulav Paudel | MSc  The address pins of each EPROM (Memory) must be connected to the 13 least significant address lines in order to address the 213 (=8K) bytes in each EPROM.