3 8085 CPU Architecture
3 8085 CPU Architecture
Microprocessor architecture
⟹ a layout of the main functional units that make up a µp.
All the functional units are connected to the system bus (data, address and control bus).
A µp is mostly described in terms of the size (no. of bits ≡ no. of wires) of its data bus (aka data bus width/word
length) → it is the number of bits that can be carried to and from memory and I/O devices.
Description according to Data range (in dec) Data range (in hex)
data bus width
8-bit µp → 0 – 255 → 00 – FF
16-bit µp → 0 – 65,535 → 0000 – FFFF
32-bit µp → 0 – 4,294,967,295 → 00000000 – FFFFFFFF
64-bit µp (modern laptops
→ 0 – 18,446,744,073,709,551,615 → 0000000000000000 – FFFFFFFFFFFFFFFF
and desktops)
Of importance also, is the size of a μp’s address bus, as it determines the number of addresses that a μp can
generate → the so-called address space.
The address space of a microprocessor has a direct bearing on the number of memory locations that a
microprocessor can access.
The address space of a microprocessor with a 16-bit address bus is 216 = 65,536 ⇒ the microprocessor can
access a maximum of 65,536 memory locations.
NB: Supplement your learning from the lecture and lecture notes by independent study and discussions.
Page 2 of 8 SPC 2314: Microprocessors and Interfacing Lecture Notes
1. Storage unit
‒ Consists of registers → they act as temporary memory locations.
‒ Classified as,
i. General purpose registers → their functions are not defined in advance.
o B, C, D, E, H, L – all are 8-bit.
o Can be used to temporarily store 8-bit data or can be used in pairs (BC, DE, HL) to temporarily
store 16-bit data (the first register contains the higher-order byte while the second register
contains the lower-order byte).
o The HL register pair can also be used to hold a 16-bit address of a memory location → address
pointer.
o W and Z → 8-bit registers that are not accessible to a programmer (microprocessor registers).
At an appropriate time, the op code stored in the IR is fed to the instruction decoder, which decodes
it, and gives the decoded information (such as operation to be performed, source of data to be operated
on, etc.) to the timing and control unit.
The timing signals are generated by a clock generator circuit that is connected to an external quartz
crystal.
o Its function is to provide precise timing for synchronization of data transfers.
NB: Supplement your learning from the lecture and lecture notes by independent study and discussions.
Page 3 of 8 SPC 2314: Microprocessors and Interfacing Lecture Notes
o It is provided by an electronic clock circuit that produces pulses in form of square waves – a train
of binary pulses.
o The clock circuitry is normally connected external to the μP through the clock input pin (ϕ) of the
µp IC.
3. Processing unit
‒ Consists of:
i. An 8-bit arithmetic and logic unit (ALU) → performs 8-bit arithmetic (addition, subtraction, etc)
and logic (AND, OR, etc) operations.
ii. An 8-bit register – the accumulator (reg. A) → holds the initial data to operate upon, the
intermediate results, and the result of an operation.
iii. An 8-bit temporary data register → used internally by the μp, and cannot, therefore, be accessed by
a programmer.
iv. An 8-bit register – flag register (F reg.) → indicates the status of an operation (did the result yield
a zero, did it have a carry, etc.). Also called the status register.
Only five of its bits are used, the remaining three (marked as X in the figure below) are unused.
The five bits that are used are known as flags → they indicate the status of an operation. They are
abbreviated as shown below.
By default, or upon reset, all the bits are at logic state 0. Thus,
NB: Supplement your learning from the lecture and lecture notes by independent study and discussions.
Page 4 of 8 SPC 2314: Microprocessors and Interfacing Lecture Notes
5. Serial I/O control unit → allows and controls serial data transfer.
Note: All the CPU registers can be as either general-purpose or special-purpose. The number of registers in a
CPU varies from one CPU to another.
NB: Supplement your learning from the lecture and lecture notes by independent study and discussions.
Page 5 of 8 SPC 2314: Microprocessors and Interfacing Lecture Notes
Note: The PC (Program Counter) does not have much use in programming, but acts as an indicator to a
programmer – stores the address of the next instruction to be executed, thereby indicating the number of
instructions executed.
NB: Supplement your learning from the lecture and lecture notes by independent study and discussions.
Page 6 of 8 SPC 2314: Microprocessors and Interfacing Lecture Notes
Additional components:
o Increment/decrement address latch → a 16-bit register that increments/decrements contents of the PC
and SP registers.
o 8-bit unidirectional address buffer → drives (increasing the driving capacity of current) the higher order
address bus (A15 – A8).
o 8-bit bidirectional address/data buffer → drives multiplexed address/data bus, i.e. lower order address
bus (A7 – A0) and data bus (D7 – D0).
NB: Supplement your learning from the lecture and lecture notes by independent study and discussions.
Page 7 of 8 SPC 2314: Microprocessors and Interfacing Lecture Notes
NB: Supplement your learning from the lecture and lecture notes by independent study and discussions.
Page 8 of 8 SPC 2314: Microprocessors and Interfacing Lecture Notes
NB: Supplement your learning from the lecture and lecture notes by independent study and discussions.