2 Basic Architecture

Microprocessor Ā· Unit 2 Ā· 7 hrs

Basic Architecture

Exam-focused notes for Basic Architecture (Microprocessor, CSC167): what the TU syllabus asks and how it has actually been tested, with 9 solved past questions from this unit.

Basic Architecture in short

This chapter looks inside the 8085 microprocessor itself: its overall architecture and how it carries out memory and I/O operations, the internal blocks that make up its data path, its 40 external pins, and how its single multiplexed bus is split back into separate address and data lines and used to generate the control signals the rest of the system needs.

Basic Architecture: notes

Microprocessor Architecture and Operations

A microprocessor's internal architecture is organized around three cooperating parts: an array of registers that hold data and addresses, an arithmetic logic unit (ALU) that performs computation, and a control unit that sequences everything else. Its basic operation is a repeating instruction cycle: fetch an opcode from the memory location addressed by the program counter, decode it, and execute whatever data movement, arithmetic, logical or branching action the opcode specifies, updating registers, flags and memory as needed before moving on to the next instruction. The details of this cycle, broken down into machine cycles and T-states, are covered in the next chapter.

Memory

A microprocessor system uses two broad categories of primary memory. RAM (Random Access Memory) is a volatile, read/write memory: it holds the program and data currently being worked on, and loses its contents when power is removed. ROM (Read Only Memory) is non-volatile and holds essential fixed data, most importantly the bootstrap or monitor code the system needs the moment it is powered on, programmed in by the manufacturer and not normally altered by the running program. Both types of memory are reached through the same address, data and control buses and are distinguished only by which address range each chip has been wired to respond to.

I/O devices

Input devices (a keyboard, a sensor, a switch) supply data to the microprocessor; output devices (a display, a motor driver, an LED) receive data the microprocessor has produced. Each device is connected to the system through a port, an addressable interface register that behaves, from the bus's point of view, much like a memory location, except that it is selected using the $IO/\overline{M}$ status line rather than being treated as part of the memory address space.

What this unit covers

  • Microprocessor Architecture and Operations
  • Memory
  • I/O devices
  • Memory and I/O operations
  • 8085 Microprocessor Architecture
  • Address, Data And Control Buses
  • 8085 Pin Functions
  • Demultiplexing of Buses
  • Generation Of Control Signals

8085 Microprocessor Architecture

2081 Ā· 10 marks

Explain the internal architecture of 8085 microprocessor with labeled block diagram.[10]

The 8085 is an 8-bit microprocessor manufactured by Intel. It has an 8-bit data bus and a 16-bit address bus, capable of addressing 64 KB of memory. Its internal architecture consists of several functional units that work together to fetch, decode, and execute instructions. --- --- - It is the pr...

Open this answer on its own page →

Memory and I/O operations

2081 Ā· 5 marks

Explain different types of IO instructions. Differentiate between I/O mapped and memory mapped I/O. [5]

I/O instructions are used by the CPU to communicate with input/output devices (peripherals). The main types are: - Transfers data from an I/O device (port) to the CPU (typically the accumulator). - The CPU reads data from the specified I/O port address. - Example: IN 01H -- reads data from port a...

Open this answer on its own page →

Demultiplexing of Buses

2080 Ā· 5 marks

What is ALE? Explain the role of ALE in address/data bus De-multiplexing in 8085 with suitable diagram. [5]

Show solved answer

ALE (Address Latch Enable) and Its Role in Address/Data Bus De-multiplexing in 8085

What is ALE?

ALE (Address Latch Enable) is a control signal generated by the 8085 microprocessor during the first clock cycle (T1) of every machine cycle. It is an active-high output signal that indicates the lower 8-bit address (A0-A7) is present on the multiplexed Address/Data bus (AD0-AD7).

In simple terms: ALE is a signal that tells external hardware "right now the bus carries an address, latch it before it changes to data."


Why is De-multiplexing Needed?

The 8085 microprocessor has only 40 pins. To reduce pin count, Intel multiplexed the lower 8 address lines (A0-A7) with the 8 data lines (D0-D7) on the same physical pins, called the AD0-AD7 bus.

  • The upper 8 address bits (A8-A15) are available on dedicated pins and do not need de-multiplexing.
  • The lower 8 address bits (A0-A7) share pins with data, so they must be separated (de-multiplexed) using ALE.

Role of ALE in De-multiplexing

Clock StateALE SignalBus Content (AD0-AD7)
T1 (first clock)HIGHLower 8-bit Address (A0-A7)
T2, T3 onwardsLOWData (D0-D7)

Step-by-Step Process:

  1. At T1: ALE goes HIGH. The lower 8-bit address (A0-A7) is placed on the AD0-AD7 bus.
  2. Latch captures address: The HIGH-to-LOW transition of ALE triggers an external latch (e.g., 74LS373) to capture and hold the lower 8-bit address.
  3. After T1: ALE goes LOW. The AD0-AD7 bus now carries data (D0-D7) for read/write operations.
  4. Latch holds address: The latch continues to output the stable lower 8-bit address (A0-A7) throughout the remaining machine cycle.
  5. Full 16-bit address is now available: Upper 8 bits (A8-A15) directly from the processor + Lower 8 bits (A0-A7) from the latch output.

Diagram: Address/Data Bus De-multiplexing Using ALE

        8085 Microprocessor
   +---------------------------+
   |                           |
   |  A8 - A15  |--------------|---------> A8-A15 (Upper Address Bus)
   |            |              |
   |  AD0 - AD7 |----+---------+---------> D0-D7  (Data Bus)
   |            |    |         |
   |    ALE     |----|--+      |
   |            |    |  |      |
   +---------------------------+
                    |  |
                    |  | ALE (HIGH at T1, latches address)
                    |  |
                    v  v
              +------------+
              |  Latch     |   (e.g., 74LS373)
              |  74LS373   |
              |            |
              | G (Enable) |<---- ALE
              +------------+
                    |
                    v
               A0 - A7  (Lower Address Bus, stable throughout)
                    |
                    v
   +----------------+------------------+
   |         Full 16-bit Address Bus   |
   |         A0-A15 to Memory/I/O      |
   +-----------------------------------+

Timing Diagram:

CLK  :  |--T1--|--T2--|--T3--|

ALE  :  |HIGH  |LOW   |LOW   |

AD0-7:  |ADDR  |DATA  |DATA  |
        (A0-A7)(D0-D7)(D0-D7)

Latch:  |Captures A0-A7 on falling edge of ALE|
        |Holds A0-A7 stable for entire cycle  |

Summary

FeatureDetail
Full formAddress Latch Enable
NatureActive-High output signal from 8085
Active duringT1 state of every machine cycle
PurposeSeparates lower address (A0-A7) from data (D0-D7)
External component usedLatch IC (e.g., 74LS373)
ResultFull stable 16-bit address bus available to memory/I/O

Conclusion: ALE is essential in the 8085 because the multiplexed AD0-AD7 bus serves dual purpose. Without ALE and an external latch, it would be impossible to distinguish between address and data on those shared lines, making memory and I/O communication unreliable.

Open this answer on its own page →

2079 Ā· 5 marks

What are the different kinds buses? How and why de-multiplexing of buses is carried out in 8085. [5]

Show solved answer

Kinds of Buses and De-multiplexing in 8085

Part 1: Different Kinds of Buses

A bus is a group of conducting wires (fine thin lines) that connects different parts of a microprocessor system and carries signals between them. There are three types of buses:


1. Address Bus

  • A group of conducting wires that carries address only (address of a memory location or I/O port).
  • It is unidirectional -- data flows in one direction only: from microprocessor to memory or from microprocessor to I/O devices.
  • In the 8085 microprocessor, the address bus is 16-bit wide, meaning it can address 2^16 = 64 KB of memory locations.
  • The length of the address bus determines the amount of memory a system can address.

2. Data Bus

  • A group of conducting wires that carries data to and from memory or I/O devices.
  • It is bidirectional -- data can flow in both directions (read and write).
  • In the 8085 microprocessor, the data bus is 8-bit wide, which is why 8085 is called an 8-bit microprocessor.

3. Control Bus

  • A group of conducting wires used to generate timing and control signals to control all associated peripherals.
  • The microprocessor uses the control bus to determine what operation to perform on the selected memory location.
  • Common control signals include:
    • Memory Read
    • Memory Write
    • I/O Read
    • I/O Write
  • If the control line is low (no electricity), memory is read; if high, memory is written.

Part 2: De-multiplexing of Buses in 8085

Why De-multiplexing is Carried Out

The 8085 microprocessor has only 40 pins. To reduce the number of pins and keep the chip compact (as a VLSI circuit), Intel multiplexed the lower-order address bus with the data bus on the same set of 8 pins (AD0 -- AD7). This means:

  • During the first part (T1 state) of a machine cycle, these pins carry the lower 8 bits of the address (A0 -- A7).
  • During the later part (T2, T3 states), the same pins carry 8-bit data (D0 -- D7).

Since address and data share the same lines, they must be separated (de-multiplexed) before use, otherwise the system cannot distinguish between address and data signals.


How De-multiplexing is Carried Out

De-multiplexing is done using a latch (e.g., 74LS373 octal latch):

StepDescription
Step 1At the beginning of T1 state, 8085 sends the lower 8-bit address on AD0--AD7 lines.
Step 2The 8085 also sends an ALE (Address Latch Enable) signal HIGH at this moment.
Step 3The ALE signal is connected to the Enable (G) pin of the latch. When ALE is HIGH, the latch is transparent and the address is passed through and stored (latched).
Step 4When ALE goes LOW, the latch holds the address at its output (A0--A7 are now available separately).
Step 5The AD0--AD7 lines are now free to carry data (D0--D7) in subsequent clock states.
8085 Pins                Latch (74LS373)          Memory / I/O
AD0 - AD7  ----------->  D0-D7 (Input)
                         Q0-Q7 (Output) -------->  A0 - A7 (Address)
ALE        ----------->  G (Enable)
AD0 - AD7  ----------------------------------------> D0 - D7 (Data)

The upper 8 address bits (A8 -- A15) are available on dedicated pins and do not need de-multiplexing.


Summary

FeatureDetail
Reason for multiplexingTo reduce pin count on the 40-pin 8085 chip
Multiplexed pinsAD0 -- AD7 (shared by lower address and data)
Signal used for de-muxALE (Address Latch Enable)
Hardware usedOctal latch (e.g., 74LS373)
ResultSeparate, stable A0--A7 and D0--D7 lines for the rest of the system
Open this answer on its own page →

2078 Ā· 5 marks

What is the use of $AD_7-AD_0$ in 8085 microprocessor? Explain address de-multiplexing process in 8085 microprocessor with suitable diagram. [5]

--- The 8085 microprocessor has only 40 pins. To reduce the pin count while still supporting a 16-bit address bus and an 8-bit data bus, Intel used a technique called multiplexing. The pins AD₇-ADā‚€ serve a dual purpose: Time Period Function ------ First half of machine cycle (T1) Carry the lower ...

Open this answer on its own page →

2076 Ā· 5 marks

Write the process of address and data separation in De-multiplexed address/data bus in 8085 microprocessor. [5]

The 8085 microprocessor has only 40 pins. To reduce the pin count, Intel multiplexed the lower 8 bits of the address bus with the 8-bit data bus on the same set of pins, labeled AD0 - AD7. This means the same physical pins carry address information at one time and data information at another time...

Open this answer on its own page →

2080.1 Ā· 10 marks

Difference between 8085 and 8086 microprocessor. Explain the concept of demultiplexing of address bus and why is it required?[10]

--- Feature 8085 Microprocessor 8086 Microprocessor --------- Data Bus Width 8-bit data bus 16-bit data bus Address Bus Width 16-bit address bus 20-bit address bus Addressable Memory 2^16 = 64 KB 2^20 = 1 MB Word Size 8-bit (processes 8 bits at a time) 16-bit (processes 16 bits at a time) Number ...

Open this answer on its own page →

Generation Of Control Signals

2078 Ā· 5 marks

Draw a logic diagram showing generation of memory and I/O read/write control signals in 8085 microprocessor. [5]

The 8085 microprocessor generates four main control signals for memory and I/O operations using its primary control pins: Pin Function --------------- RD (active low) Read strobe - indicates read operation WR (active low) Write strobe - indicates write operation IO/M (active high/low) Distinguish...

Open this answer on its own page →

Microprocessor Architecture and Operations

2075 Ā· 5 marks

Write short notes on:a) Von Neumann architecture b) Macro Assembler [5]

--- Von Neumann architecture (also called the stored-program concept) is a computer design model in which both program instructions and data are stored in the same memory unit. It forms the foundation of most modern computers and microprocessors. Component Function ------ CPU (Central Processing ...

Open this answer on its own page →