Mup Module 1
Mup Module 1
g $-6•‘fj••••••^•*- °*^
/g- b•[ ,y•o ‹x-x•m.
°‘' 'é**’
/‹- b.(-s!•
Scanned by CamScanner
z.
` awe 5g:-
films!
all ィ”… {〝 My 鮑
的
ゲら†麟
。“ 心〟 /~ Qua
ff)
e&r 冷麟璽
(an
C'Allja EPLQAOJ OT '
囃 仙 州 似 ) A.
// f
'.
ゎ仇⑬〟/ (Ha/p.
り云 Mflmo/Momyw-
左 V0 ノ皮券'りりr/r—M
タ〝 /q デ/ノ 9012/ †e 堕叫 e 孝之 I“
雛
岬, 紳 4 叩雛ノ q 〟-ん〆〝( 餅
川… ご&r 筍芳 b り・ Uwr/ 5/re 塾
m 仙鏑雛 〝麟 雛,`蒐/.
め;杓叫・ タプ 雛
mam/W. q
Id
吟り札 0 〇ゲん〉 りげ苑 fMQS
Scanned by CamScanner
Scanned by CamScanner
U
Yx '
!)(29/מ
cc. (+5 V)?
!! [`
Mow? ”:3
gap 7`4־?־־־ ! HOLD
3 % HLDl’r?
3 '
'ו
יופ
52D `?5>־־
'קמ/מז "< peseT- U"
5 6- 05:42-
, ”jg-swell,
=-3-'51> 1:-
! 6~Y-—i 7 g?
64 ;59/
-
rang—“P ?ף 33 s;
32.- 20
INTR ;3 '° ?025-
!;דואה/ ? H? 30 ALE
ADM—a” aq :. éo
l3
?!שיט a? 8 ‘—”’4'br
”) -? :! +1 ”ידכם
Ab <” '5
e
/ 4’.-
?41949 "
A-Dffi'l
,144 All
I 0
O «/o °‘^
J i3»ł ț- ••kk»4•y
waíÍt &kl-e
ODßC
s» r s z
Scanned by CamScanner
Scanned by CamScanner
Microprocessor
I'ticroprocessor is a Controlling unit of a micro-computer, fabricated on a
small chip capable of performing ALU (Arithmetic Logical Unit) operations
and communicating with the other devices connected to it.
Working of Microprocessor
The microprocessor follows a sequence: Fetch, Decode, and then
Execute.
Initially, the instructions are stored in the memory in a sequential order. The
microprocessor fetches those instructions from the memory, then decodes it
and executes those instructions till STOP instruction is reached. Later, it
sends the result in binary to the output port. Between these processes, the
register stores the temporarily data and ALU performs the computing
functions.
• Clock Speed — It determines the number of operations per second the processos
can pedorm. It is expressed in megahedz (MHz) or gigaher(z (GHz).II is also known as
Clock Rate.
• Word Length — It depends upon the width of internal data bus, registers,
ALU, etc. An 8-bit microprocessor can process 8-bit data at a time. The
word length ranges from 4 bits to 64 bits depending upon the type
of the
microcomputer.
• Data Types — The microprocessor has multiple data type formats like
binary, BCD, ASCII, signed and unsigned numbers.
Features ot a Microprocessor
Here is a list of some of the most pi-onsinenL features of any
microprocessor —
Scanned by CamScanner
Evohiúon of IiJicroprocessors
4 Bit Microprocessors
Intel 4004 as it was a 4 bit processor. It was a processor on a single chip.
It could perform simple arithmetic and logic operations such as addition,
subtraction, boolean AND and boolean OR. It had a control unit capable of
performing control functions like fetching an instruction from memory,
decoding it, and generating control pulses to execute it. It was able to operate
on 4 bits of data at a time.This first microprocessor was quite a success in
industry. Soon other microprocessors were also introduced. Intel introduced the
enhanced version of 4004, the 4040. Some other 4 bit processors are
International’s PPS4 and Thoshiba’s T3472.
8Bit Processors
The first 8 bit microprocessor which could perform arithmetic and logic
operations on 8 bit words was introduced in 1973 again by Intel. This was Intel
8008 and was later followed by an improved version, Intel 8088. Some other 8
bit processors are Zilog-80 and Motorola M6800.
16 Bit Processors
The 8-bit processors were followed by 16 bit processors. They are Intel 8086
and 80286.
32 Bit Processors
The 32 bit microprocessors were introduced by several companies but the most
popular one is Intel 80386.
Pentium Processors
Instead of 80586, Intel came out with a new processor namely Pentium
processor. Its performance is closer to RISC performance. Pentium was
followed by Pentium Pro CPU. Pentium Pro allows allow multiple CPUs in a
single system in order to achive multiprocessing. The MMX extension was
added to Pentium Pro and the result was Pentiuum II. The low cost version of
Pentium II is celeron.
The Pentium III fovided high performance floating point operations for certain
types of computations by using the SIMD extensions to the instruction set.
These new instructions makes the Pentium III faster than hlgh-end RISC
CPUs.
Scanned by CamScanner
Interestingly Pentium IV GOUld not execute code faster than the Pentium l)I when
running at the same clock frequency . So Pentium IV had to speed up by
executing at a much higher clock frequency.
Classification
A microprocessor can be classified into three categories -
RISC Processor
RISC stands for Reduced Instruction Set Computer. It is designed to
reduce the execution time by simplifying the instruction set of the
consputei . Using k1SC processors, each instruction requires only one
clock cycle to execute results in uniform execution time. This reduces the
efflclency as tlsei e at e more lines of code, hence more RARI is needed to
store the instructions. The compiler also has to work more to convert high-
level language instructions into machine code.
Scanned by CamScanner
Architecture of RfSC
RISC microprocessor architecture uses hlghly-optimized set of
instructions. It is used in portable devices like Apple iPod due to its
power efficiency.
Characteristics of RISC
The major characteristics of a RISC processor are as follows —
• “LOAD“ and “STORE“ instructions are used to access the memory location.
lnstws:!st:,a
Oata Pat.h
Iñ lcro Program
Control Cache
Nemory
Scanned by CamScanner
Characteristics of CISC
• Variety of addressing modes.
• Larger number of instructions.
• Variable length of instruction formats
• Several cycles may be required to execute one instruction.
• Instruction-decoding logic is complex.
• One instruction is required to support multiple addressing modes.
Special Processors
These are the processors which are designed for some special purposes.
Few of the special processors are briefly discussed —
Coprocessor
A coprocessor is a specially designed microprocessor, which can handle
its particular function many times faster than the ordinary
microprocessor.
For example —
For example — 16-bit T212, 32-bit T425, the floating point (T800, T805
& T9000) processors.
• Program Memory — II stores the programs that DSP will use to process
dala.
For example — Texas In strument’s TMS 320 series, e.g., TNS 320C40,
TNS320C50.
Microprocessor - 808S Architecture
8085 is pronounced as "eighty-eighty-five" microprocessor. It is an 8-bit
microprocessor designed by Intel in 1977 using NMOS technology.
Accumulator
It is an 8-bit register used to perform arithmetic, logical, I/O &
LOAD/STORE operations. It is connected to internal data bus & ALU.
These registers can work in pair to hold 16-bit data and their pairing
combination is like B-C, D- E & H -L.
Program counter
It is a 16-bit register used to store the memory address location of
the next instruction to be executed. Microprocessor increments the
program whenever an instruction is being executed, so that the
program counter points to the memory address of the next instruction
that is going to be executed.
Scanned by CamScanner
Stack pointer
It is also a 16-bit register works like stack, which is always
incremented/decremented by 2 during push & pop operations.
Temporary register
It is an 8-bit register, which holds the temporary data of arithmetic and
logical operations.
Flag register
It is an 8-bit register having five 1-bit flip-flops, which holds either 0 or 1
depending upon the result stored in the accumulator.
• Sign (S)
• Zero (Z)
• Auxiliary Carry
(AC)
• Parity (P)
• Carry (C)
Its bit position is shown in the following table —
D7 D6 D5 D4 D3 D2 D1 DO
AC CY
Scanned by CamScanner
Scanned by CamScanner
• Df4A Signals: HOLD, HLDA
• RESET Signals: RESET IN, RESET OUT
Interrupt control
As the name suggests it controls the interrupts during a process. When a
microprocessor is executing a main program and whenever an interrupt
occurs, the microprocessor shifts the control from the main program to
process the incoming request. After the request is completed, the control
goes back to the main program.
There are 5 interrupt signals in 8085 microprocessor: INTR, RST 7.5, RST6.5, RST
5.5,TRAP
Scanned by CamScanner
8085 Pin Configuration
The following image depicts the pin diagram of 8085 Microprocessor -
X 1 (a VCC
Xy 2 3t HOLD
Reset out 3 HLDA
SOD 4
3 CLK (out)
SID — •{ 5
6
36 Reset in
Trap 3s 34 Ready
7
RST 7.5 —H•{ 33
8 IO/M
RST 6.5 32
9 S1
RST 5.5 31
10 Vpp
30
INTR 11 RD
29
INTA 12
28 WR
ADD 13
27 S
AO1 14
26 As
15
ADD 25 A
16
AD3 24
17 t4
ADD 23
18 ''*•3
AD 22
19 A12
21
ADs 20 AII
ADy A10
Vss Ag
Ag
Address bus
AI 5-A8, it carries the most significant 8-bits of memory/IO address.
Data bus
AD7-ADO, it carries the least significant 8-bit address and data bus.
• WR — This signal indicates that the data on the data bus is to be written
into a selected memory or IO location.
IO/M
This signal is used to differentiate between IO and Memory operations,
i.e. when It 1s high indicates IO operation and when it is Ion then it
indicates memory operation.
S1 & SO
These signals are used to identify the type of current operation.
Power supply
There arc 2 power supply signals - VCC & VSS. VCC indicates +5v
power supply anrJ VG.? indir.ates ground signal.
Clock signals
There are 3 clock signals, i.e. X1, X2, CLK OUT.
• X1, X2 — A crystal (RC, LC N/W) is connected at these two pins and is used to
set frequency of the internal clock generator. This frequency is internally
divided by 2.
• CLK OUT — This signal is used as the system clock for devices
connected with the microprocessor.
TRAP
It is a non-maSkabIe interrupt, having the highest priority among all
interrupts. Bydefault, it is enabled until it gets acknowledged. In case of
failure, it executes as ISR and sends the data to baCkup memory.
This interrupt transfers the control to the location 0024H.
ority among all interrupts. When this interrupt is executed, the processor saves the content of the PC regi
Scanned by CamScanner
RST 6.5
It is a maskable interrupt, having the third highest priorlty among all
interrupts. When this interrupt is executed, the processor saves the
content of the PC register into the stack and branches to 0034H address.
RST 5.5
It is a maskable interrupt. When this interrupt is executed, the
processor saves the content of the PC register into the stack and
branches to 002CH address.
INTR
It is a maskable iiztei i ups, leaving the lowest priority amnng all
interrupts. It can be disabled by resetting the microprocessor.
When INTR signal goes high, the following events can occur —
• The microprocessor checks the status of INTR signal during the execution
of each instruction.
• When the INTR signal is high, then the microprocessor completes its
current instruction and sends nctive low interrupt acknowledge signal.
• When instructions are received, then the microprocessor saves the address
of the next instruction on stack and executes the received instruction.
Scanned by CamScanner
808S Addressingf Jodes&
Interrupts
Addressing Modes in 8085
These are the instructions used to transfer the data from one register to
another register, from the memory to the register, and from the register
to the memory without any alteration in the content. Addressing modes
in 808s is classified into 5 groups -
he external devices to request the microprocessor to perform a td5k. There are 5 interrupt signals, i.e. TRAP, RST 7
• RESET OUT — This signal is used to reset all the connected devices when the
microprocessor is reset.
• HOLD — This signal indicates that another master is requesting the use of
the address and data buses.
• HLDA (HOLD Acknowledge) — It indicates that the CPU has received the
HOLD request and it will relinquish the bus in the next clock cycle. HLDA is
set to low after the HOLD signal is removed.
• SOD (Serial output data line) — The output SOD is set/reset as specified by
the SIM instruction.
• SID (Serial input data line) — The data on this line is loaded into accumulator
whenever a RIM instruction is executed.
Scanned by CamScanner
WPostponement of Exsmlnatl‹