1.2 8085 Signals
1.2 8085 Signals
Signals
+5V Supply (pin 40)
Interrupts(6-pins) 16-pins
Reset
, , ALE, Ready
Status:
(6+1)-pin
DMA
Clock
HOLD,
Pin-1,2 and 37
Ground (pin 20)
Power supply
40
• Pin 40: (+5V)
•Clock is the timing signal used to synchronize internal and external operations.
• and are used to connect a crystal, RC- or LC-circuit that determine the oscillating frequency.
•The output of the clock generator is divided by 2 and is available at CLK OUT pin.
• So, µP operating at 3.07 MHz uses a crystal of 6.14MHz.
• If 8085A-2 operating at 5 MHz uses a 10MHz crystal.
•Clock out signal is used to synchronize the operation of external devices whenever required.
•8085 uses a clock of 50% duty cycle. Minimum operating frequency is 500kHz.
Control Signal: ALE
• Pin 30: ALE output
•An 8-bit transparent latch is used to latch the address available only in 1st clock cycle.
• Address is available for the whole Machine cycle from the Latch.
De-multiplexing Address-Data Bus
𝐴𝐷 7 − 𝐴𝐷 0
74LS373
𝐷7 𝑂7
𝐷6 𝑂6
𝐷5 𝑂5
𝐷4 8-bit Tristate 𝑂4
𝐷3 Latch Buffer 𝑂3
𝐷2 𝑂2
𝐷1 𝑂1
𝐷0 𝑂0
Latch Enable,
Output Enable,
is de-multiplexed using an 8-bit Latch and ALE signal.
𝑂𝐸
• , are status output signal that indicates the type of M/C in progress.
• It indicates whether the processor is performing
• Opcode Fetch, IO Operation or M/C
• Memory Read, 0 1 1 Opcode Fetch
0 1 0 Memory Read
• Memory Write,
0 0 1 Memory Write
• IO Read, 1 1 0 IO Read
• IO Write, 1 0 1 IO Write
1 1 1 Interrupt Acknowledge
• Serving an external interrupt x 0 0 No External Access
request,
• Or no bus operation (Bus Idle).
𝐼𝑂 / 𝑀
• / is used to differentiate between IO and Memory operations.
• = 0, the microprocessor is performing memory related operation.
• = 1, the microprocessor is performing I/O related operation.
Control Signal: ,
•Pin 31: output Write Control
•Pin 32: output Read Control
•Used to perform read or write operation to/from Memory or IO device.
•Used along with control signal to generate
• : Memory Read
Signal Operation
• : Memory Write
0 0 1 Memory Read
• : IO Read 0 1 0 Memory Write
• : IO Write 1 0 1 IO Read
1 1 0 IO Write
Generation of control
signals
Logic
• Separate read and write signals for memory and IO are generated from , and
signal.
• The truth Table is
Input Output
0 0 1 0 1 1 1
0 1 0 1 0 1 1
1 0 1 1 1 0 1
1 1 0 1 1 1 0
𝑹𝑫 𝑀𝐸𝑀𝑅
𝑾𝑹
8085
IO/ 𝑀𝐸𝑀𝑊
𝐼𝑂𝑅
𝐼𝑂𝑊
𝑹𝑫 𝑀𝐸𝑀𝑅
𝑾𝑹
8085
IO/ 𝑀𝐸𝑀𝑊
𝐼𝑂𝑅
𝐼𝑂𝑊
We may also generate the signals with decoder.
𝑂7
IO/ 𝐴(MSB) 𝑂6 𝐼𝑂𝑊
2
𝑂5 𝐼𝑂𝑅
𝑅𝐷 𝐴 174LS138 𝑂 4
(3-to-8 decoder)
𝑂3
𝑊𝑅 𝐴0 𝑂2 𝑀𝐸𝑀𝑊
𝑂1 𝑀𝐸𝑀𝑅
𝐸𝐸 𝐸 𝑂0
1 2 3
+5 V Supply
Ready Signal : Ready
• This is a active high signal used to interface slower peripheral device.
• Initiated by an slower external device when read or write signal is received
• When Ready=0, Microprocessor enter to wait state and remain in that state
till Ready signal goes to high.
• When goes high the processor performs the read or write operation as
initiated.
• During the wait state microprocessor remains idle.
Ready=0 : Device not ready for data transfer
Ready=1 : Device ready for data transfer
• Thus the signal is used to interface slower device.
NOTE:
• Microprocessor is a high-speed device.
• Some of the IO devices operates at a low speed in comparison to
Microprocessor.
• Such devices are interfaced with ready signal.
Interrupts
• There are 5 hardware interrupts.
• Pin 6: input
• Pin 7: input
• Pin 8: input
• Pin 9: input
• Pin 10: input
• The signals are initiated by peripheral device.
• When a peripheral device needs service from Microprocessor it send an electrical
signal through this line.
• On recognizing the interrupt request the microprocessor stop the execution of
the current program, save the status in stack and execute another specific
program to serve the requested device.
• On completion of the service program the processor retrieve the status from
stack and execute the previous program from where it had left.
Interrupts:
• Pin 11: output
• This is an output signal. When the INTR interrupt is recognized, the processor
acknowledge the request through this line (goes low).
• In response to it, the peripheral device loads the load the location service routine in
the form of instructions.
• RSTn or CALL
• The processor uses the signal as a read signal to read the instruction from the data
bus.
•The Microprocessor resets if the is held low for at least 3 clock cycles. Resetting
microprocessor means:
It clears the PC and IR i.e. PC=0000H, IR=00H.
Disabling all interrupts (except TRAP).
Disabling the SOD pin.
All the buses (data, address, control) are tri-stated.
RESET OUT pin goes to high.
The RESET OUT signal is used to reset external devices when the microprocessor resets.
Resetting a peripheral device means: To bring it back to some predetermined initial
states.
DMA
DMA : Direct Memory Access
•Pin 39: input
•Pin 38: output
• An external master makes HOLD high to request the processor to release the
SYTEM BUS. The HOLD signal remains high.
• On receiving the request, the processor Acknowledges the Bus request by making
HLDA high.
• The bus is released from the next clock cycle and the processor goes to idle state.
• HOLD and HLDA remains high
• , , , , pins are tri-stated.
• On Completion of the job, external master pulls down HOLD line low indicating
that it is releasing the bus from next clock cycle.
• Microprocessor regain the bus access, pull down HLDA and resume the execution.