Introduction To 8085 Microprocessor
Introduction To 8085 Microprocessor
Introduction To 8085 Microprocessor
Input Output
Memory
• Internally, the microprocessor is made up of
3 main units.
– The Arithmetic/Logic Unit (ALU)
– The Control Unit.
– An array of registers for holding data while it is
being manipulated.
• Let’s expand the picture a bit.
I/O Input /
Output
Register
ALU
Array
System Bus
Control Memory
ROM RAM
• Memory stores information such as instructions
and data in binary format (0 and 1). It provides
this information to the microprocessor whenever
it is needed.
Input/Output/
Memory
Read
Write
Address latch
Multiplexed
Enable
Address Data
Bus
Address
Bus
– Address Bus
• Unidirectional
• Identifying peripheral or memory location
– Data Bus
• Bidirectional
• Transferring data
– Control Bus
• Synchronization signals
• Timing signals
• Control signal
• Microprocessor consists of:
– Control unit: control microprocessor operations.
– ALU: performs data processing function.
– Registers: provide storage internal to CPU.
– Interrupts
– Internal data bus
• In addition to the arithmetic & logic circuits, the
ALU includes the accumulator, which is part of
every arithmetic & logic operation.
D7 D6 D5 D4 D3 D2 D1 D0
S Z X AC X P X CY
– Sign Flag
• Used for indicating the sign of the data in the accumulator
• The sign flag is set if negative (1 – negative)
• The sign flag is reset if positive (0 –positive)
– Is set if result obtained after an operation is 0
– Is set following an increment or decrement operation of that register
• Carry Flag
– Is set if there is a carry or borrow from arithmetic operation
1011 0101
+0110 1100
---------------
Carry 1
00100001
– Is set if there is a carry out of bit 3
• Parity Flag
– Is set if parity is even
– Is cleared if parity is odd
• We have already discussed the general purpose
registers, the Accumulator, and the flags.
ALE
Latch
AD7-AD0 A7- A 0
D7- D0
8085
CS
A15-A8
ALE
A9- A0 1K Byte
Latch Memory
AD7-AD0 A7- A 0 Chip
WR RD IO/M D7- D0
RD
WR