Address/data demultiplexing

In the Intel 8085 microprocessor the concept of address/data demultiplexing is a crucial mechanism because of the design decision to multiplex the lower 8 address and data lines. Here is a detailed description of how it works:

Why are multiplexing and demultiplexing needed?

The Intel 8085 has a 16-bit address bus for accessing up to 64 KB of memory and an 8-bit data bus for transferring data. To reduce the number of external pins on the microprocessor chip, the lower 8 bits of the address bus (A₀ — A₇) are multiplexed with the 8-bit data bus (D₀ — D₇). The result is a set of 8 lines called AD₀ — AD₇ that serve a dual purpose. However, for the system to operate correctly the address information and the data information must be separated, and demultiplexing is what makes this possible.

The role of the address latch enable (ALE) signal

The address latch enable (ALE) signal is key to the demultiplexing process. It is an output signal of the 8085 microprocessor.

ALE function:

At the beginning of each machine cycle the 8085 places the 16-bit address of the memory location or I/O port it wants to access on the address and multiplexed lines. At this time the ALE signal is high.

An external latch, usually a 74LS373 (8-bit D-type latch), uses the high ALE signal as an enable signal. While ALE is high, the data on the AD₀ — AD₇ lines (which at that moment represent the lower 8 bits of the address) can pass through to the latch outputs.

As soon as the lower 8 address bits have been latched, the ALE signal goes low. While ALE is low, the latch holds the previously captured value, effectively isolating the lower 8 address bits from the subsequent data transfer over the same AD₀ — AD₇ lines.

Demultiplexing circuit

The most common way to implement the demultiplexing circuit is to use an 8-bit D-type latch such as the 74LS373.

Connection details:

The multiplexed AD₀ — AD₇ lines from the 8085 are connected to the data inputs (D₀ — D₇) of the 74LS373 latch.

The ALE signal from the 8085 is connected to the enable input (G) of the latch. While the ALE signal is high, the data on AD₀ — AD₇ is passed to the output pins (Q₀ — Q₇) of the latch. When ALE goes low, the latch output freezes and retains the value that was present on the AD₀ — AD₇ lines when ALE made the transition from high to low.

The Q₀ — Q₇ outputs of the latch now represent the lower 8 bits of the address (A₀ — A₇). The upper 8 bits of the address (A₈ — A₁₅) are available directly from the 8085 on dedicated lines. Together A₀ — A₁₅ form the complete 16-bit address for accessing memory or I/O devices.

Example of demultiplexing within a machine cycle

As an example, consider the instruction fetch cycle:

Initial phase:

The 8085 starts the instruction fetch cycle. The program counter (PC) holds the address of the next instruction to be fetched. The 16-bit address is placed on the address and multiplexed lines. The ALE signal goes high, and the lower 8 bits of the address on the AD₀ — AD₇ lines are latched into the 74LS373 latch.

Subsequent phase:

As the cycle proceeds, the ALE signal goes low and the instruction byte is read from the memory location specified by the complete 16-bit address. This instruction byte is then placed on the AD₀ — AD₇ lines, which now function as the data bus. The latched lower 8-bit address remains unchanged at the latch outputs, providing access to the required memory location.

Accurate addressing ensures that memory and I/O devices receive the correct 16-bit address (A₀ - A₁₅) for decoding and selection.

Proper data transfer ensures that the data on the multiplexed lines is separated, allowing reliable data transfer between the CPU and external components.

Thus, address/data demultiplexing in the 8085 using the ALE signal and an external latch circuit is vital for the correct operation of the microprocessor system, providing accurate addressing and efficient data transfer.