3a - Bus Structure and IO Techniques - PPTX
3a - Bus Structure and IO Techniques - PPTX
3a - Bus Structure and IO Techniques - PPTX
Jan 16 2023
By Dr. Ahuna
Bus Structure of the 8085
The Bus Structure
The Control Unit generates signals on data bus, address bus and control bus
within microprocessor to carry out the instruction, which has been decoded.
Typical buses and their timing are described as follows:
Data Bus
The data bus carries data in binary form between microprocessor and other
external units such as memory. It is used to transmit data i.e. information,
results of arithmetic etc between memory and the microprocessor. Data bus
is bidirectional in nature.
The data bus width of 8085 microprocessor is 8-bit i.e. 256 combinations of
binary digits and are typically identified as D0 – D7. Thus size of the data
bus determines what arithmetic can be done. If only 8-bit wide then largest
number is 111111112 (255 in decimal) while the lowest is 000000002.
Bus Structure of the 8085
The Bus Structure
Address Bus
Generally, 8085 microprocessor has 16 bit address bus and the lines are
generally identified as A0 - A15.
The higher order address lines (A8 – A15) are unidirectional and the lower
order lines (A0 – A7) are multiplexed (time-shared) with the eight data bits
(D0 – D7) and hence, they are bidirectional.
The address bus carries the address of memory location to be written into or
to be read from.
The address bus is unidirectional. This means bits flowing occurs only in
one direction, only from microprocessor to peripheral devices.
Bus Structure of the 8085
The Bus Structure
Control Bus
The control bus is used for sending control signals to the memory and I/O
devices. The control bus consists of various lines which have specific functions
for coordinating and controlling microprocessor operations. The following
control and status signals are used by 8085 processor:
ALE (output): Address Latch Enable is a pulse that is provided when an address
appears on the AD0 – AD7 lines, after which it becomes 0.
𝑅𝐷 (active low output): The Read signal indicates that data are being read from
the selected I/O or memory device and that they are available on the data bus.
𝑊𝑅 (active low output): The Write signal indicates that data on the data bus
are to be written into a selected memory or I/O location.
IO/𝑀 ഥ (output): It is a signal that distinguished between a memory operation
and an I/O operation. When 𝐼𝑂/𝑀 ഥ = 0, it is a memory operation and 𝐼𝑂/𝑀ഥ=
1 it is an I/O operation.
S1 and S0 (output): These are status signals used to specify the type of operation
being performed; they are listed in the table below.
Bus Structure of the 8085
The Bus Structure
Control Bus
S1 S0 States
0 0 Halt
0 1 Write
1 0 Read
1 1 Fetch
Bus Structure of the 8085
The Bus Structure
The schematic representation of the 8085 bus structure is as shown in Fig. 1
and the microprocessor performs primarily four operations:
Memory Read: Reads data (or instruction) from memory.
Memory Write: Writes data (or instruction) into memory.
I/O Read: Accepts data from input device.
I/O Write: Sends data to output device.
The 8085 processor performs these functions using address bus, data bus
and control bus as shown in Fig. 1.
Bus Structure of the 8085
The Bus Structure
1) The IOR signal is activated (IOR = 0), which makes the selected input device
to place its data in the data bus.
2) The data in the data bus is read and stored in the accumulator
Jan 18 2023 IO Interfacing
By Dr. Ahuna
Example 1
Solution – cont’d
A0 – A7 lines are connected to a NAND gate decoder such that the output of
NAND gate is 0.
The output of NAND gate is ORed with the IOR signal and the output of OR
gate is connected to 1G and 2G of the 74LS244.
When 74LS244 is enabled (See Figure 13), data from the DIP switch is placed
on the data bus of the 8085.
The 8085 reads data and stores it in the accumulator. Thus data from DIP
switches is transferred to the accumulator.
Jan 18 2023 IO Interfacing
By Dr. Ahuna
Example 1
Solution – cont’d
Topic 3b