SlideShare une entreprise Scribd logo
1  sur  18
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.

Contenu connexe

Tendances

Tendances (20)

8086 Microprocessor powerpoint
8086  Microprocessor  powerpoint8086  Microprocessor  powerpoint
8086 Microprocessor powerpoint
 
ARM Processors
ARM ProcessorsARM Processors
ARM Processors
 
80486 and pentium
80486 and pentium80486 and pentium
80486 and pentium
 
Adc interfacing
Adc interfacingAdc interfacing
Adc interfacing
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontroller
 
I2c protocol - Inter–Integrated Circuit Communication Protocol
I2c protocol - Inter–Integrated Circuit Communication ProtocolI2c protocol - Inter–Integrated Circuit Communication Protocol
I2c protocol - Inter–Integrated Circuit Communication Protocol
 
Intel 8259 - Programmable Interrupt Controller
Intel 8259 - Programmable Interrupt Controller  Intel 8259 - Programmable Interrupt Controller
Intel 8259 - Programmable Interrupt Controller
 
ATmega32-AVR microcontrollers-Part I
ATmega32-AVR microcontrollers-Part IATmega32-AVR microcontrollers-Part I
ATmega32-AVR microcontrollers-Part I
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architecture
 
8051 MICROCONTROLLER ARCHITECTURE.pptx
 8051 MICROCONTROLLER ARCHITECTURE.pptx 8051 MICROCONTROLLER ARCHITECTURE.pptx
8051 MICROCONTROLLER ARCHITECTURE.pptx
 
8259 updated
8259 updated 8259 updated
8259 updated
 
Interrupt programming with 8051 microcontroller
Interrupt programming with 8051  microcontrollerInterrupt programming with 8051  microcontroller
Interrupt programming with 8051 microcontroller
 
Interrupts for PIC18
Interrupts for PIC18Interrupts for PIC18
Interrupts for PIC18
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 
Math Co-processor 8087
Math Co-processor 8087Math Co-processor 8087
Math Co-processor 8087
 
8051 Microcontroller ppt
8051 Microcontroller ppt8051 Microcontroller ppt
8051 Microcontroller ppt
 
8051 memory
8051 memory8051 memory
8051 memory
 
8251 USART
8251 USART8251 USART
8251 USART
 
Microcontroller pic 16 f877 registers memory ports
Microcontroller pic 16 f877 registers memory portsMicrocontroller pic 16 f877 registers memory ports
Microcontroller pic 16 f877 registers memory ports
 
80386 processor
80386 processor80386 processor
80386 processor
 

Similaire à Bus Structure, Memory and I/O Interfacing

Memory intrface and addrs modes
Memory intrface and addrs modesMemory intrface and addrs modes
Memory intrface and addrs modes
balbirvirdi
 
decoders121-170714184489769876987698749.pptx
decoders121-170714184489769876987698749.pptxdecoders121-170714184489769876987698749.pptx
decoders121-170714184489769876987698749.pptx
tlap4412
 

Similaire à Bus Structure, Memory and I/O Interfacing (20)

Interfacing address
Interfacing addressInterfacing address
Interfacing address
 
knowledge in daily life.ppt
knowledge in daily life.pptknowledge in daily life.ppt
knowledge in daily life.ppt
 
Notes chapter 6
Notes chapter  6Notes chapter  6
Notes chapter 6
 
memory-interfacing.ppt
memory-interfacing.pptmemory-interfacing.ppt
memory-interfacing.ppt
 
Memory intrface and addrs modes
Memory intrface and addrs modesMemory intrface and addrs modes
Memory intrface and addrs modes
 
ATT SMK.pptx
ATT SMK.pptxATT SMK.pptx
ATT SMK.pptx
 
pin-diagram of 8085_new.ppt
pin-diagram of 8085_new.pptpin-diagram of 8085_new.ppt
pin-diagram of 8085_new.ppt
 
8085 microprocessor Architecture and pin description
8085 microprocessor Architecture and pin description 8085 microprocessor Architecture and pin description
8085 microprocessor Architecture and pin description
 
8085 Interfacing with I/O Devices or Memory
8085 Interfacing with I/O Devices or Memory8085 Interfacing with I/O Devices or Memory
8085 Interfacing with I/O Devices or Memory
 
lecture 18PART 1 Memory Interfacing.pptx
lecture 18PART 1  Memory Interfacing.pptxlecture 18PART 1  Memory Interfacing.pptx
lecture 18PART 1 Memory Interfacing.pptx
 
decoders121-170714184489769876987698749.pptx
decoders121-170714184489769876987698749.pptxdecoders121-170714184489769876987698749.pptx
decoders121-170714184489769876987698749.pptx
 
16. memory interfacing ii
16. memory interfacing ii16. memory interfacing ii
16. memory interfacing ii
 
Microprocessor history1
Microprocessor history1Microprocessor history1
Microprocessor history1
 
Microprocessor history1
Microprocessor history1Microprocessor history1
Microprocessor history1
 
timing_diagram_of_8085.pptx
timing_diagram_of_8085.pptxtiming_diagram_of_8085.pptx
timing_diagram_of_8085.pptx
 
Ch3 ppt
Ch3 pptCh3 ppt
Ch3 ppt
 
Decoders-Digital Electronics
Decoders-Digital ElectronicsDecoders-Digital Electronics
Decoders-Digital Electronics
 
8085 architecture
8085 architecture8085 architecture
8085 architecture
 
Microprocessor questions converted
Microprocessor questions convertedMicroprocessor questions converted
Microprocessor questions converted
 
2. 8085-Microprocessor.pptx
2. 8085-Microprocessor.pptx2. 8085-Microprocessor.pptx
2. 8085-Microprocessor.pptx
 

Dernier

AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 

Dernier (20)

(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 

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.