8085 Microprocessor Interfacing
8085 Microprocessor Interfacing
Absolute decoding:
Linear decoding:
In small systems, hardware for the decoding logic can be eliminated
by using individual high-order address lines to select memory chips.
This is referred to as linear decoding. Fig. 4.15 shows the addressing of
RAM with linear decoding technique. This technique is also
called partial decoding. It reduces the cost of decoding circuit, but it
has a drawback of multiple addresses (shadow addresses).
Fig. 4.15 shows the addressing of RAM with linear decoding
technique. A15 address line, is directly connected to the chip
select signal of EPROM and after inversion it is connected to
the chip select signal of the RAM. Therefore, when the status
of A15 line is ‘zero’, EPROM gets selected and when the status
of A15 line is ‘one’ RAM gets selected. The status of the other
address lines is not considered, since those address lines are
not used for generation of chip select signals.
In T1, the ALE signal is activated, which makes output Q0 of the first D
flip-flop high, assuming RESET (R) is one. In the next clock pulse i.e. in
the next low to high transition of CLKOUT signal of the 8085, the
output Q1 of the second D flip-flop goes low. The low on the Q1 output
initiates 8085 to enter wait state and resets the first D flip-flop making
its Q0 output low, since Q1 is connected to the ready input of 8085 and
to the reset input of the first D flip-flop. At next low to high transition
of CLKOUT, Q of the second D flip-flop goes high making READY pin
high and inactivating reset input of the first flip-flop. Fig. 4.23 shows
the timing waveforms for this circuit.
We know that for OR gate, when both the inputs are low then only
output is low.
able 4.1 shows the truth table used to generate MEMR, MEMW, IOR
and IOW signals. The signal IO/M goes low for memory operation. This
signal is logically ORed with RD and WR to get MEMR and MEMW
signals. When both RD and IO/M signals go low, MEMR signal goes low.
Similarly, when both WR and IO/M Signals go low, MEMW signal goes
low. To generate IOR and IOW signals for I/O operation, IO/M signal is
first inverted and then logically ORed with RD and WR signals.
Same truth table can be implemented using 3:8 decoder as shown in
Fig. 4.9.
Latching Circuit:
We know that AD0 to AD7 lines are multiplexed and the lower half of
address (A0 – A7) is available only during T1 of the machine cycle. This
lower half of address is also necessary during T2 and T3 of machine
cycle to access specific location in memory or I/O port. This means
that the lower half of an address bus must be latched in T 1 of the
machine cycle, so that it is available throughout the machine cycle.
The Latching Circuit of lower half of an address is done by using
external latch and ALE signal from 8085.
The Fig. 4.6 shows the hardware connection for Latching Circuit the
lower half of an address. The IC 74LS373 is an 8-bit latch, having 8 D
flip-flops. The input is transferred to the output only when clock is
high. This clock signal is driven by ALE signal from 8085.
The ALE signal is activated only during T1, so input is transferred to
the output only during T1 i.e. address (A0 – A7) on the AD0 to
AD7 multiplexed bus. In the remaining part of the machine cycle, ALE
signal is disabled so output of the latch (A0 – A7) remains unchanged.
To latch lower half of an address, in each machine cycle, the 8085
gives ALE signal high during T1 of every machine cycle