The document discusses the 8085 microprocessor, including its pinout, demultiplexing of its address/data bus, and generation of control signals. It describes how the 8085 has a multiplexed address/data bus on pins AD7-AD0 and explains how to use an latch and ALE signal to separate the low-order address. It also shows how to generate separate memory and I/O read and write control signals by combining the RD, WR and IO/M signals using logic gates. Finally, it provides a diagram of an 8085 MPU interfaced with memory and I/O using a latch to demultiplex the bus and logic gates to produce the necessary control signals.
SHREE SWAMI ATMANANDSARASWATI INSTITUTE
OF TECHNOLOGY
MICROPROCESSOR AND INTERFACING (2150707)
PREPARED BY: ( Group:2)
BHUMI AGHERA(130760107001)
MONIKA DUDHAT(130760107007)
RADHIKA TALAVIYA(130760107029)
RAJVI VAGHASIYA(130760107031)
8085 Pin Diagram, Demultiplexing and
Generation Of Control Signals
GUIDED BY:
Prof. Disha Goradiya
2.
INDEX
1. Introduction of8085 microprocessor
2. Logic pinout of 8085 microprocessor
3. Demultiplexing
4. Generation of control signals
3.
The 8085 microprocessor
•The term micro processing unit (MPU) is similar to the term central processing unit
used in traditional computers.
• The 8085 microprocessor can almost qualify as an MPU, but with the following two
limitations.
I. The low-order address bus of the 8085 microprocessor is multiplexed (time-
shared) with the data bus. The buses need to be de-multiplexed.
II. Appropriate control signals need to be generated to interface memory and I/O
with the 8085.
• The 8085 is an 8-bit general purpose microprocessor capable of addressing 64K of
memory.
• The device has forty pins, requires a +5 V single power supply, and can operate with a
3-MHz .
Go To Index
Logic pinout ofthe 8085 microprocessor
• All the signals of 8085 pinout can be classified into Six groups:
1. Address bus
2. Data bus
3. Control and status signals
4. Power supply and frequency signals
5. Externally initiated signals
6. Serial I/O ports
6.
1.Address Bus
• The8085 has 16 signal lines (pins) that are used as the address bus; however, these
lines are split into two segments: A15 − A8 and AD7-AD0.
• The eight signals lines, A15 − A8, are unidirectional and used as the most significant
bits, called the high-order address, of a 16-bit address.
• The signals lines, AD7-AD0 are used for a dual purpose.
7.
2.Multiplexed Address/Data Bus
•The signals lines AD7-AD0 are bidirectional they serve a dual purpose.
• They are used as the low-order address bus as well as the data bus.
• In executing an instruction, during the earlier part of the cycle, these lines are used as
the low order address bus. During the later part of the cycle, these lines are used as the
data bus. This is also known as multiplexing the bus.
• However, the low order address bus can be separated from these signals by using a
latch.
8.
3.Contorl And StatusSignals
• This groups of signals include two control signals ( RD and WR ), three status signals
( IO/M, S1 and S2 ) to identify the nature of the operation, and one special signal(ALE)
to indicate the beginning of the operation. These signals are as follows:
ALE- Address Latch Enable: This is a positive going pulse generated every time the
8085 begins an operation (machine cycle); it indicate that the bits on AD7-AD0 are
address bus. This signal is used primarily to latch the low-order address from the
multiplexed bus and generate a separate set of eight address lines, A7-A0.
RD-Read: This is a read control signal(active low). This signal indicates that the
selected I/O or memory device is to be read and data are available on data bus.
WR-Write: This is a write control signal(active low). This signal indicate that the data
on bus are to be written into selected memory/IO location.
9.
3.Contorl And StatusSignals
IO/ 𝑀: This is a status signal used to differentiate between I/O and memory operation.
When it is high, it indicates an I/O operation, when it is low, it indicate a memory
operation. This signal is combined with 𝑅𝐷(read) and 𝑊𝑅(write) to generate I/O or
memory control signal.
𝑆1 and 𝑆2: These status signal, similar to IO/ 𝑀, can identify various operation. But
they are rarely used in small system.
10.
8085 Machine cycleand Control Signals
Machine Cycle Status
IO/ 𝑴 𝑆1 𝑆 𝟐
Control Signals
Opcode Fetch 0 1 1 RD=0
Memory Read 0 1 0 RD=0
Memory Write 0 0 1 WR=0
I/O Read 1 1 0 RD=0
I/O Write 1 0 1 WR=0
Interrupt Acknowledge 1 1 1 INTA=0
Halt Z 0 0
Hold Z X X RD, WR=Z and INTA=1
Reset Z X X
NOTE: Z: Tri state (High impedance)
X: Unspecified
11.
4.Power supply andclock frequency
• VCC: +5 volt supply
• VSS: Ground Reference
• X1, X2: A crystal or RC,LC network is connected at this two pins. The frequency is
internally divided into two; therefore, to operate a system at 3 MHz, the crystal should
have a frequency of 6 MHz .
• CLK (OUT)-Clock Output: this signal can be used as the system clock for other
devices.
12.
5.Externally initiated signals
•INTR (Input) – Interrupt Request: this is used as a general-purpose interrupt; it is
similar to the INT signal of the 8080A.
• INTA (Output) – Interrupt Acknowledge: this is used to acknowledge an interrupt.
• RST 7.5, RST 6.5, RST 5.5 (Inputs) – Restart interrupts: These are vectored interrupts
that transfer the program control to specific memory locations. They have higher
priorities than the INTR interrupt. Among these three, the priority order is 7.5, 6.5 and
5.5.
• TRAP (Input) : This is a nonmaskable interrupt and has the highest priority.
• HOLD (Input): This signal indicates that a peripheral such as a DMA controller is
requesting the use of the address and data buses.
• HLDA (Output) – Hold Acknowledge: This signal acknowledges the HOLD reques
13.
5.Externally initiated signals
•READY (Input): This signal is used to delay the microprocessor Read and Write cycles
until a slow-responding peripheral is ready to send or accept data. When this signal
goes low, the microprocessor waits for an integral number of clock cycles until it goes
high.
• RESET IN: When the signal on this pin goes low,the program counter is set to zero, the
buses are tri-stated and the MPU is reset.
• RESET OUT: This signal indicates that the MPU is being reset. The signal can be used
to reset other devices.
14.
6.Serial I/O ports
•The 8085 has two signals to implement the serial transmission: SID(Serial Input Data)
and SOD(Serial Output Data).
• In serial transmission, data bits are sent over a single line, one bit at a time, such as the
transmission over telephone lines.
• SID (Input): Serial input data line. The data on this line is loaded into accumulator bit 7
whenever a RIM instruction is executed.
• SOD (output): Serial output data line. The output SOD is set or reset as specified by the
SIM instruction.
15.
Demultiplexing of bus𝐴𝐷7-𝐴𝐷0
• Figure 1 shows a schematic that uses a latch and the ALE signal to demultiplex the
bus.
• The bus 𝐴7-𝐴0 is connected as the input to the latch 74LS373. The ALE signal is
connected to Enable(G) pin of the latch, and the output control (𝑂𝐶) signal of the
latch is grounded.
• When ALE is high, the latch is transparent; this means that the output changes
according to input data.
• When ALE goes low, the data byte is latches until the next ALE, and the output of
latch represents the low-order address bus 𝐴7-𝐴0 after latching operation.
• Intel has circumvented the problem of demultiplexing the low-order bus by designing
special devices such as the 8155(256 bytes of R/W memory + I/Os), which is
compatible with the 8085 multiplexed bus. These devices internally demultiplex the
bus using the ALE signal. Go To Index
Definition
• Instruction cycle:
Instruction cycle is defined as the time required to complete the execution of an
instruction. The 8085 instruction cycle consists of one to six machine cycle or one to six
operations.
• Machine cycle :
Machine cycle is defined as the time required to complete one operation of accessing
memory, I/O or acknowledging an external request. This cycle may consist of three to
six T-states.
• T-state :
T-state is defined as one subdivision of the operation performed in one clock period.
This subdivisions are internal states synchronized with the system clock, and each T-
state is precisely equal to one clock period. The term T-state and clock period are often
used synonymously. Go To Index
18.
Generating Control Signals
•The RD (Read) is used both for reading memory and for reading an input device., it is
necessary to generate two different Read signals: one memory and another for input.
Similarly, two separate Write signals must be generated.
• Figure (a) shows that four different control signals are generated by combining the
signals 𝑅𝐷, 𝑊𝑅, and IO/ 𝑀.
• The signal IO/ 𝑀 goes low for the memory operation. This signal is ANDed with 𝑅𝐷
and 𝑊𝑅 signals by using the 74LS32 quadruple two-input OR gates.
• The OR gates are functionally connected as negative NAND gates. When both input
signals go low, the outputs of the gates go low and generate 𝑀𝐸𝑀𝑅 (Memory Read)
and 𝑀𝐸𝑀𝑊 (Memory Write)control signals.
• When the IO/ 𝑀 signal goes high, it indicates the peripheral I/O operation. This signal
is complemented using the Hex inverter 74LS04 and ANDed with the 𝑅𝐷 and 𝑊𝑅
signals to generate 𝐼𝑂𝑅 (I/O Read) and 𝐼𝑂𝑊 (I/O Write) control signals. Go To Index
20.
• To demultiplexthe bus and to
generate the necessary control
signals, the 8085 microprocessor
requires a latch and logic gates to
build the MPU. This MPU can be
interfaced with any memory or
I/O.
Figure (b) 8085 Demultiplexed Address and Data Bus with Control Signals