Unit-8 48 PDF
Unit-8 48 PDF
Unit-8 48 PDF
an address for each location in the memory chip. The data stored in the memory is accessed by
specifying its address. Memory address can be decoded in two ways:
i) Each memory location has only one address, there is no duplication in the address
ii) Memory can be placed contiguously in the address space of the microprocessor
iii) Future expansion can be made easily without disturbing the existing circuitry
The main advantage of linear select decoding is its simplified decoding circuit.This reduces the
hardware design cost. But there are many disadvantages in this decoding.
i) Multiple addresses are provided for the same location
Absolute Address Decoding: The 8085 microprocessor has 16 address lines. Therefore it can
16
access 2 locations in the physical memory. If all these lines are connected to a single memory
device, it will decode these 16 address lines internally and produces 216 different addresses from
0000H to FFFFH so that each location in the memory will have a unique address.
Above diagram shows the various memory addresses used in Microprocessor. If more than one
chips are used then some logic must be used to select one particular chip. This is done with the
help of decoder.
74LS138 address decoder to generate the chip select signals for eachmemory block. In this
decoder when the address lines A13, A14 and A15 are 000, theoutput lineY0 will be activated as
shown in Fig 1.7. This in turn selects the firstmemory block. Similarly when these lines are 001
(C=0, B=0 and A=1) Y1 will beactivated and the second memory block will be selected.
In this type of memory interfacing, all the address lines (A0 to A15) have beenused. Each
location in the memory will have a single address. This type of addressdecoding is called as
absolute or fully decoded addressing.
The simple view of RAM is that it is made up of registers that are made up of flip-flops (or
memory elements). The number of flip-flops in a “memory register” determines the size of the
memory word.ROM on the other hand uses diodes instead of the flip-flops to permanently hold
the information. For the microprocessor to access (Read or Write) information in memory (RAM
or ROM), it needs to do the following:
Select the right memory chip (using part of the address bus). Identify the memory location (using
the rest of the address bus). Access the data (using the data bus).
Fig. 1.10 Memory Interface Diagram
Tri-State Buffers: An important circuit element that is used extensively in memory. This buffer
is a logic circuit that has three states: Logic 0, logic1, and high impedance. When this circuit is in
high impedance mode it looks as if it is disconnected from the output completely. This circuit has
two inputs and one output. The first input behaves like the normal input for the circuit. The
second input is an “enable”. If it is set high, the output follows the proper circuit behaviour. If it
is set low, the output looks like a wire connected to nothing.
Input /Output Devices: Parallel Interfacing: There are two ways to interface 8085 with I/O
devices in parallel data transfer mode: Memory Mapped IO and IO mapped IO.
Memory mapped I/O: It considers them like any other memory location. They are assigned a 16-
bit address within the address range of the 8085.The exchange of data with these devices follows
the transfer of data with memory. The user uses the same instructions used for memory.
I/O mapped I/O: It treats them separately from memory: I/O devices are assigned a “port
number” within the 8-bit address range of 00H to FFH. The user in this case would access these
devices using the IN and OUT instructions only.
IO mapped IO V/s Memory Mapped IO:
• Memory Instructions are used. • Special Instructions are used like IN,
OUT.
• Memory control signals are used.
• Special control signals are used.
• Arithmetic and logic operations can be
Performed on data. • Arithmetic and logic operations cannot be
Performed on data.
• Data transfer b/w register and IO.
• Data transfer b/w accumulator and IO.