address decoding.pdf

AbirAbedin 641 views 11 slides Jan 14, 2023
Slide 1
Slide 1 of 11
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11

About This Presentation

microprocessor


Slide Content

Addressing Memory and Ports

Reference: Microprocessors and
Interfacing – Douglas V Hall – Chapter 7

Address Decoder
• 3to8 decoders like 74LS138 serve as the
address decoders.
• Produces a signal which enables the ROM,
RAM, or port device, which is enabled for a
particular address
• Makes sure that only one device is enabled at
a time to put data in the bus.

Parallel ROMs with decoder

ROM address decoding
• Memory size=2
12
*8 bit =4096*8bit=4KByte

RAM decoder
• To add eight 2K*8 RAMs
• We need 2
11
address line
• A0-A10 will be used for this
• A11, A12, and A13 are the
selectors

Port Decoder

Memory Mapped I/O
• Using a decoder which translates memory
addressing to chip select signals for port
device is called Port Decoder
• Advantage: Any instruction that references
memory, can be used to input data from or
output data to ports
• Disadvantage: Some of the system memory
space is used up

8086 Memory Bank

Memory Bank
• Odd-even memory bank is used to read or
write 16 bit at a time
• Address A1-A19 are used to select desired
memory within the bank
• A0 is used for selecting lower bank and Bus
High Enable is used for selecting upper bank
• It also prevents unwanted writing of data in
adjacent memory location during byte
operation

Addressing Decoding



Type

Address

Data Type

BHE

A0

Bus Cycles

Data lines
used
Even 0000 Byte 1 0 One D0-D7
Even 0000 Word 0 0 One D0-D15
Odd 0001 Byte 0 1 One D8-D15
Odd 0001 Word 0 1 First D8-D15
1 0 Second D0-D7

Thanks…….
Tags