MPMC Lecture1
MPMC Lecture1
UPCIE501
By
Ananya Dastidar
Assistant Professor
Department of Instrumentation and Electronics Engineering
For
As per
CET, Bhubaneswar (Autonomous) Syllabus
INTRODUCTION
In large computers, a CPU performs these computing functions. The Microprocessor resembles a
CPU exactly. The microprocessor is in many ways similar to the CPU, but includes all the logic
circuitry including the control unit, on one chip. The microprocessor can be divided into three
segments for the arithmetic/logic unit (ALU), register array, and control unit.
ALU REGISTER
ARRAY
CONTROL UNIT
Microprocessor
Microprocessor is not a standalone unit and needs to be interfaced with memory modules and I/O
devices (Intel/ AMD/ ARM/ Motorola). A standalone unit consisting of a processor, memory,
I/O and other peripherals included in a single IC is known as a Microcontroller (Intel/
ATMEGA/ PIC). When we design a system using these processor/ controller ICs interfaced with
other peripherals, we get a Microcomputer system.
MEMORY
MICROPROCESSOR MEMORY
MICROPROCESSOR
INPUT/ OUTPUT
DEVICES
INPUT/ OUTPUT
DEVICES
MICROCONTROLLER
Microprocessor Interfacing
The Intel 8085 is an 8-bit general purpose microprocessor that can address 64K Byte of memory.
It was introduced in 1976. It is an LSI IC that has 40 pins and uses +5V for power. It can run at a
maximum frequency of 3 MHz. The pins on the chip can be grouped into 6 groups: Address Bus,
Data Bus, Control and Status Signals, Power supply and frequency, Externally Initiated Signals,
Serial I/O ports.
Architecture of 8085
Registers
The 8085includes six registers, one accumulator, and one flag register, as shown in Figure. In
addition, it has two 16-bit registers: the stack pointer and the program counter. The 8085 has six
general-purpose registers to store 8-bit data; these are identified as B, C, D, E, H, and L as shown
in the figure. They can be combined as register pairs - BC, DE, and HL - to perform some 16-bit
operations. The programmer can use these registers to store or copy data into the registers by
using data copy instructions.
Register Organization
This area of the microprocessor consists of various registers identified by letters such as B, C, D,
E, H, and L. These registers are primarily used to store data temporarily during the execution of
a program and are accessible to the user through instructions.
FLAG REGISTER(8)
ACCUMULATOR (8)
S X Z X AC X P CY
B (8) C (8)
D(8) E(8)
H(8) L(8)
STACK POINTER (16)
PROGRAM COUNTER (16)
Accumulator
The 8085 microprocessor is an accumulator (A) based microprocessor, Accumulator register
must be the one of the operand in Arithmetic and logical operations. The accumulator is an 8-bit
register that is a part of arithmetic/logic unit (ALU). This register is used to store 8-bit data and
to perform arithmetic and logical operations. The result of an operation is stored in the
accumulator. The accumulator is also identified as register A.
Flag Register
The Flag Register is used to represent the status of the result held in the accumulator.
D7 D6 D5 D4 D3 D2 D1 D0
S Z X AC X P X CY
System Bus
Typical system uses a number of busses, collection of wires, which transmit binary numbers, one
bit per wire. A typical microprocessor communicates with memory and other devices (input and
output) using three busses-Address Bus, Data Bus and Control Bus.
Address Bus
The Address Bus consists of 16 wires, therefore 16 bits. Its "width" is 16 bits.
One wire for each bit, therefore 16 bits = 16 wires.
Used to access a certain location in the memory (read from it or writes to it).
Data Bus
Data Bus: carries „data‟, in binary form, between μP and other external units, such as
memory. Data Bus also carries instructions from memory to the microprocessor.
Data bus is used to transmit "data", ie information, results of arithmetic, etc, between
memory and the microprocessor.
Data Bus is bi-directional.
Typical size is 8/16/32/64 bits which determine performance of μP.
The 8 bit Data Bus typically consists of 8 wires which allows 2^8 possible combinations
of binary digits.
Size of the data bus determines what arithmetic can be done.
For a 8 bits data bus the largest number is 11111111 (255 in decimal) and the lowest
being 00000000 (FFH to 00H in hexadecimal).
In order to process 16 bit data larger the data has to be broken down into chunks of 255
(8 bits). This slows microprocessor.
Control Bus
Control Bus are various lines which have specific functions for coordinating and
controlling µP operations. Eg: Read/ Write line.
Control whether memory is being „written to‟ (data stored in mem) or „read from‟ (data
taken out of mem).
May also include clock line(s) for timing/synchronising, „interrupts‟, „reset‟ etc.
Typically μP has 10 control lines.
Cannot function correctly without these vital control signals.
The Control Bus carries control signals partly unidirectional, partly bi-directional.
Advanced Processors
Advances microprocessors, like 80386, 80486 have much larger busses.
Present day Laptop (Intel i5/i7/ i8/ i9) usually 64 bit system can access 264 memory
addresses, i.e actually 18-Quintillion bytes of RAM with over 5 GHz frequency.
Example of Samsung Galaxy Smart Phone uses ARM processor with max around 2 to
3 GHz or more frequency is also a 64 bit system.
Typically 16 or 32 bit busses, which allow larger number of instructions, more
memory location, and faster arithmetic.
Depending on additional functional capability of a processor/ controller numbers of
control signal and hence control lines will also be more.
Task
Name of Device Processor Name Memory Frequency
Capacity
Laptop/ Desktop
Smartphone
Smart TV
(optional)