0% found this document useful (0 votes)
35 views25 pages

Microprocessor - 8085 Internal Architecture

Microprocessor Slides (Dr. Mohammad Ali Soomro (Assistant Professor) , Department of CSE, QUEST Nawabshah)
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
Download as pptx, pdf, or txt
0% found this document useful (0 votes)
35 views25 pages

Microprocessor - 8085 Internal Architecture

Microprocessor Slides (Dr. Mohammad Ali Soomro (Assistant Professor) , Department of CSE, QUEST Nawabshah)
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1/ 25

Quaid -E- Awam University of Engineering, Science and

Technology Nawabshah

Lecture # 7

MICROPROCESSOR AND INTERFACING

Department of Computer Systems Engineering


8085 internal architecture
8085 pin diagram
8085 architecture
Control lines

 Clock lines
 Read/Write lines
 Input / Output lines
 Interrupt lines
 Reset lines
 Bus control lines
Pin categories

 Power supply and clock signals


 Data bus
 Address bus
 Serial I/O ports
 Control and status signals
 Interrupts and externally generated signals
 Direct memory access
Address bus category

 The address bus has 16 lines; it can carry 16 bits at a


time. However, out of 16, 8 are multiplexed with the
data bus and the leftover 8 are separately shown by
pin number 21 to 28 in the pin configuration.

 These are used to carry the address of memory

 It is unidirectional in nature.

 These are denoted by A8 to A15 that represents the 8


MSB of the memory location or input-output address.
Data bus category

 The data bus of the 8085 microprocessor is 8 bits.


 These 8-bit data bus lines are multiplexed with the 8-bit
address bus.

 These are shown by pin number 12 to 19. The address bus


is denoted by A whereas the data bus is denoted by D.

 The pin configuration denotes the lower order multiplexed


address and data bus bits from AD0 to AD7.
Power supply category

 VCC –An external power supply of + 5 V is provided at


this pin.
 VSS –This pin shows the grounded connection of the
microprocessor.
 X1 and X2 – These 2 pins are connected with a crystal
to maintain the internal frequency of the clock
generator.
 CLK (OUT) – It acts as the system clock that keeps
the record of time duration required by each
operation to get completed.
Control and status signal

 ALE is an acronym for address latch enable

 We know that 8 lower order bits of the 16-bit address


bus are multiplexed with the 8-bit data bus.

 This pin gets enabled at the time when the address is


present at the multiplexed address and data bus.
 Otherwise, it gets disabled showing the absence of an
address on the bus.
Control and status signal
 RD:   Low signal in this pin shows the read operation
either from I/O devices or from the memory unit.
 Thereby indicating that the data bus is now in a state or
position to accept the data from the memory or I/O
devices.

 WR:  Low signal in this pin represents the write


operation at the memory or I/O devices.
 This indicates that the data present in the data bus is to
be written into the desired memory address or I/O
device by the processor.
Control and status signal

 IO/   Indicates the selection of a memory


address or input-output device.
 This shows whether the read/write operation
is to be carried out at the memory location or
at the I/O device.
 The low signal at this pin shows that operation
is performing over memory location.
 As against, a high signal at this pin represents
the operation at I/O device.
Status signal

 S0 and S1  – The pins S0 and S1 represent the status


signal.
 These signals show the type of recent operation of
the microprocessor.
 The table below represents the status of the data bus
under different conditions:
Status signal

 RESET IN –  An active low signal. This signal is used


to reset the microprocessor by setting the program
counter to zero.
 Program counter is reset to 0000H.

 RESET OUT –  This signal is used to reset all the


connected devices/ peripheral devices when the
microprocessor is reset.
Ready Signal

 READY: This signal indicates that the device is ready


to send or receive data. If READY is low, then the CPU
has to wait for READY to go high.

 If READY is high during a read or write cycle, it


indicates that the memory or peripheral is ready to
send or receive data.
 If READY is low during the read or write cycle, the
CPU interprets this as a request to enter the wait
state.
DMA SIGNALS
 HOLD : indicates the CPU that an another device want to use address
and data bus.

 Once the CPU receive the HOLD signal , CPU will complete current data
transfer on the busses.

 Internal processing can continue.


 The processor can regain the bus only after the HOLD is removed.

 HLDA: Hold Acknowledge: Indicates that the CPU has received the
HOLD.
Serial communication Signals

 SID - Serial Input Data : The single bit of data on this


line is loaded into the MSB position accumulator
(bit 7) whenever a Read Interrupt Mask (RIM)
instruction is executed.
 SOD – Serial Output Data : The Set Interrupt Mask
(SIM) instruction loads the value of bit 7 from the
accumulator into SOD latch.
Hardware and software interrupts

Software interrupt − In this type of interrupt, the


programmer has to add the instructions into the program
to execute the interrupt. There are 8 software interrupts in
8085, i.e. RST0, RST1, RST2, RST3, RST4, RST5, RST6
and RST7.
Hardware interrupt − There are 5 interrupt pins in 8085
used as hardware interrupts, i.e. TRAP, RST7.5, RST6.5,
RST5.5, INTA.
INTERRUPTS

 Interrupt is a process where an external device can


get the attention of the microprocessor.

 Interrupts can be classified into two types:


 Maskable (can be delayed)
 Non -Maskable (can not be delayed)

 An interrupt is considered to be an emergency signal,


The Microprocessor should respond to it as soon as
possible.
 When the Microprocessor receives an interrupt signal,
it suspends the currently executing program and jumps
to an Interrupt Service Routine to respond to the
incoming interrupt.
INTERRUPTS

 INTR is a maskable interrupt, can be enabled and disabled


by software instructions.

 The INTR interrupt jumps to an address dictated by


special instruction received from peripheral devices when
the INTRA output is activated.

 RST5.5 is a maskable low priority interrupt. When this


interrupt is received the processor saves the contents of
the PC register into stack and branches to 2CH
(hexadecimal) address.
INTERRUPTS

 RST6.5 is a maskable in saves the contents of the PC


register into stack and branches to 34H (hexadecimal)
address.
 RST7.5 is a maskable in saves the contents of the PC
register into stack and branches to 3CH (hexadecimal)
address.
 TRAP is a non-maskable (high priority interrupt) saves
the contents of the PC register into stack and branches
to 24H (hexadecimal) address.
 All maskable interrupts RST5.5, RST6.5 and RST7.5
interrupts can be enabled or disabled by executing set
interrupt mask(SIM) instruction.
8085 registers
8085 registers

 Accumulator:
 Program counter
 Stack pointer
 Flag register
 ALU
 Instruction register
8085 flags

The bits of flags register are affected by the arithmetic &


logic operations.
 S-sign flag : is set if bit D7 of the accumulator is set after
an arithmetic or logic operation.

 Z-zero flag : Set if the result of the ALU operation is 0.

 AC-Auxiliary Carry is set when a carry is generated from


bit D3 and passed to D4 .
 P-parity flag : is set , if the result has an even # of 1’s.

 C-carry flag: is set when a carry is generated .


Allah Hafiz

You might also like