Notes For Students
Notes For Students
Temporary Register:
The ALU has two inputs, one input is supplied by the
accumulator and other from temporary data register.
These are internally used for execution of most of the
arithmetic and logical instructions.
Special Purpose Register:-
Accumulator:
It is an 8-bit register. It is extensively used in
arithmetic, logic, load and store operations, as well as
in input/output operations. Most of the times the result
of arithmetic and logical operations is stored in the
accumulator.
Register
Flag Register:
It is an 8-bit register, in which five of the bits carry
significant information in the form of flags.
S (Sign Flag):
After the execution of arithmetic or logical operation, if bit
D7 of the result is 1, the sign flag is set. In a given byte if D7
is 1, it is viewed as a negative number, else it is viewed as a
positive number.
Flags
Z (Zero Flag):
The zero flag is set if the result of operation in ALU is zero and
flag resets if result is non zero.
CY(Carry Flag):
This flag is set if there is an overflow out of bit 7. The carry
flag also serves as a borrow flag for subtraction.
Instruction Register:
The CPU stores the opcode in a register called the instruction
register.
Program Counter:
It stores the address of the next instruction to be fetched.
Stack Pointer:
It is the reserved area in the RAM where temporary information
may be stored. It is used to store the address of the most recent
stack entry.
Arithmetic Logic Unit
The 8085’s ALU performs arithmetic and logical functions on
eight variables. The arithmetic unit performs bitwise
fundamental arithmetic operations such as addition and
subtraction. The logic unit performs logical operations such as
complement, AND, OR, EX-OR, rotate and clear. The ALU also
looks after the branching decisions.
PIN
CONFIGURATION:-
The signals of 8085 can be classified into seven groups
according to there functions:-
Power Supply and Frequency signals
Data bus and address bus
Control bus
Interrupt signals
Serial I/O signals
DMA signals
Reset Signals
Power Supply and Frequency Signals:
Vcc: It requires a single +5V power supply.
Vss: Ground reference.
X1 and X2: A tuned circuit LC, RC or crystal is connected to
these two pins for generating clock cycles.
CLK OUT: This signal is used as a system clock for other
devices. Its frequency is half the oscillator frequency.
Data Bus and Address Bus:-
AD0 to AD7:
♣ The 8-bit data bus(D0–D7) is multiplexed with the lower
half of the 16 bit address bus(A0-A7).
A8 to A15:
♣ The upper half of the 16-bit address bus appears on the
address lines A8 to A15. These lines are most significant
8 bits of the 16-bit address lines.
Control and Status Signals:-
ALE(Address Latch enable):
The latching of lower half of an address bus is done using an
external latch and ALE signals.
/RD and /WR:
These signals are basically used to control the direction of the
data flow between processor and memory or I/O devices. A
low on RD indicates that the data must be read from the
selected memory location or I/O port via data bus. A low on
WR indicates that the data must be written into the selected
memory location or I/O port via data bus.
Control and Status Signals:-
IO//M, S0 and S1: IO//M
indicates whether I/o operation or memory operation is
being carried out. S1 and S0 indicates the type of machine
cycle in progress.
READY:
It is used by the microprocessor to sense whether a peripheral
is ready or not for data transfer.
Interrupt Signals:-
The 8085 has five hardware interrupt signals: RST 5.5, RST
6.6, RST 7.5, TRAP and INTR. The microprocessor
recognizes request on these lines at the end of the current
instruction execution.
This input signal is used to accept serial data bit by bit from
the external device.
HLDA:
This activate high signal is used to acknowledge HOLD
request.
Reset Signals
RESET IN:
A low on the pin, Sets the PC to zero and Resets the interrupt
enable and HLDA flip-flops.
RESET OUT: