Microprocessor Master Notes
Microprocessor Master Notes
S20330sgo83iM
) A micoopvo ce.SSOY. s a mulipurpose, progamnable
clock diven, Negister based ielechonic evice thg4
Yeads binaby instucign om a otage device
caled memoy ocessor is Digital Device
MikvoPr
Menog
MICo
Pxocessox ATAC
|o Device
980
ehve
") Tnput nig blay
biag dato oo
ProcessK Data a ccording to instucHon.
Result as aa output
n maimum mode.
oPerrates
ots, In this mode Conhol signaS are gonetaBe
Bus COmolle
oit the help of eternoa
D.S
Bamks
D) So8.6 provide
) The enie memog each, in
2 baks 0f 5)2 k8 0de to tansfer
1o Ev,
oo ne bamks ae called
AH AL
3086 supports memoy seg mentation. A rithmahc
22ueso1 X 28asbp foemgea oPeraHoos ike logi cal decsement 6hif. operaHon
289skbp poled9 PesfornSeot Iip ariDco o Hcsocs ro
ExBCuHom Unit(EU)o
Rreieiokraot
the locaion at opezond Regster
BohlchfosMS , t e BTÚ abot DataSto be 9rtiscal6bit 7egls+er e9 sedby the conhho&
Obich the n e tStTucHo o
JOgister to hol d the operad
tne
tempoT(Ti ly
progTamor.
pd Tismot, available to
from the queue Sn B,
7 Tt fetches imsbucHoms (Se
’
decodes & eecutes them o foreqo 909up 9dT bollpo o2lp 2i od bbo
Dataternal RegisteS :
aith maic, Jogic
t8amser OperatonS. puTpOSe egstes
to the
gnads
modules, Susup 9ds ( lgbled AH,A,BH,Bl, CH,CL, pH& DL
acess dne teNHal
folocoingfuncH ond
So050
oised ndi vËdualy
) these registrs can be
)ExRCion um) b CoDS6t op the
tor teopotazy Storage Of 8bit data.
inshucion decoders ) tse ALigeqìster Calleaccum latrr.
> Conto
)Flag eglstex. "> ALU - Arithmaic logic onir ") paiaS f dhe6e Aeneal puPose Tegsters
be used
">Genesa prPase Yeglster Cam together to sto e l6 -bìt
AatoSqch aS An, B*} Cx, DX
In 8086
Banking MermosSegnertahonp
Memod to LCess ) segmenta tion mean[ dividig the memory into
memog dogicaly different parts, cqled segsrt6.
> SORG uses
in oe cycle.
l6 bit data 8086 has 20-bìt addtes buS t can access 2 1 MB
is divided to +ag Banks
20 bit Phy sicad address,
ProVldes 8 brtg. ohoisA byte compat ble numbor.
Cach bamk 20 bit addzsss C22 by te) is mot a
trat l0compat ble mymtor0e cre ate
> To aVol de ooking \th oltth 16 bit adress.
Contajas a. Vittuay moded oP Denoo2utDta -a
chlps, Hence each chipA Data, Ezha.
6 Di~ÁeTeut divide Jnto 4 3egmerts: code, Stack,
A0FsorOgo ocaionb10(19r096 t09196To2qddrs
all evon calledcthe
0ne bank Contajs the other bamk calJed od Code
ohle CS
(e Augrn ban k code sement
all odd addgss.
conkaining Totapeh brosogol OFPSet
ADD
)6 bit o PeraHo the evn ban k provide
dne odd tank prov)d8S the higner S}ack scgment SS ’ Stack segmont
stack po)nte’s
byte-DT poror , qlso
glealbd thete logor bqnk' Base poiT40Y’ p
") Hen ce the even bank s
nighor bamk»
7 odd bank às also called dhe Data
Segnent pS Data segment
16 bjt
|cON ROL Fiags
8- CoBo Hagsyh
) 6-status Flags >t S used to Set +ace rDode. imstruCHOn So that
ate affected b the
) up iS dnterupted after every
) staBu one instrucion E4ecute
oT sAPrOgam can be debugg ed Done by
aftex eVEry avth meic
Aive status of de
cuorent Result. Toteupt Eoable Aag (E)
Cdisable) oryn maske
to Çonbal the opeaion: t iS used to eee maske
> the conbol Hags used Cenable) be NTA Iteupt
3THE
dne proarammer
chenged DecHon
Quto- decTMEnHng
s atus fiags: F ohls Hag is Set, sT DI qrse in
mode in s i g operatons.
Ttis Set, OhemeVer there S a Cat
OCarTy flag
ca the SOSult
or bortoO out. of the MSB of TM
CPEJ
the Resu H has eVon party
LopisiV
CS
8bit Jatch
(8) > 3 latches ase needed i) a
System, as adaress
Clk ALE STB Oho bus is 20-bit.
RES 2) baay
8284 Reset ) ALE iS the address Jatch enable. it ls g10em by
noReadgß 9noRRvdsb2d 8282
Larch
Cu) Bo86 to 8232CLatch)
") The data s doven though 8286 8 bit
43anstecei v6r
a9
>8036 iS bidiaecioTa buper &also Knon
data ampli erS
TNTR separate the Vald data Pro m
") They ae used to
8286 muliplened ddd |data bus.
meeded becouse the data
HoLD 7 t 0 taa0s XEcOers a3e
DEN
LbA sobus ss l6 bit long:
(2) DEN Signa.
" 2 8236 emabled though the Comhrolled b the
the data bus
Disection of data om
Vcc MN/M wk RD M/1 -0 then 2eceive
DT/R Slgnad. DT/R-| - Tzansmit
Vcc
for all operatons
ls
") ContrO . Signoa RDOR
Aig - Ao
74138 qenerated b decodimg
-
-Ao\ ALE
o De codor MEMA RD Read
Ds Do memog
MBMU memoy ite
F|o Redd
Ap1s - ADo
gTite
pe cod ed b 88Decode,
") M /RD,WR
,
Maximum Mode
7074138.
Request CDMA) maimum mode cCngao0
bobivoss el ools
HLDA Signals. (P2o2\f802 ) 2302 ot aDeea3o
esponse to
8O86, pfld
") TNTA
trd-oe
than. mazimum modo
sìmplrmul+iprocessi
SQppot &l 21A RES 22 atb 3282 BME
) The (oofpJDN9s& 8284
21
C3) Atg-Ae
bt does mob oom MDReset 22s2 3 bit
Ready ST6 Latch. 20
Reset
Te 9603
TEST
1:MR MwTC
AMwTc
Dtbb (KercbrT 282ORc
BUS
ConlkALO
RD
DEN
Max) mum mode,ohen MN)MA 0
can
ConDect mOTe BuS sequest is doe usiDg R IGT Sires Sntefaced
Im ma)msm
mode c0e coith R086
(8o87 /gogg) yTNTA is given b 3238 BUS Con noller, `n Responsc
ProcesSos to 8086
g284 c)ock generatoy, to a int. o INTR Sine of 8086.p
> clock provided by
P a t of the maimsm modo ) ma mode ci8cui4s S moe comple than min mode
signiicant
") the most bus con rollex but supports multi procesSing hen e alves betieyost
CTcuìts he 238
pesforman ce.
by 8288 1nmaimum
) ALL Bus combolled
ohis mod e
") 8282 8 bit latch used
busis 2o-bit
qe meeded as adesS
") tne dat a bus is diven thoougn 8286 8 bit
toansoe ceiue, t0o e asTeel y@y meeded
da+a bss às l6 bìt. T23T
") A \oteoupt
that halts dhe p
coditon
tempoas
event
make3 Stack is used Cstack)
to Store
Return qdd-?
Pushes
OTo get JSR address 0 to FSR n nemo.
Duoing FSR
dhe PoPs.
should ) 0T l0esdirecHom to the up to go to tre5R
Stored
quad to No. 0f .) The adress of UT 1S Hxedt is alays
get Same addre qt dhe addsss 0000oH CPA)
then
for
> The Si2e oP TUT 0s thee
Pusb foPDo
me TRET
heo oH at the TP CS- dddess
Store io Stack. "} One imteypt has
Lond d4u8tti D of 20rbbre TP Cl6 bin) + CS Ck bit) = 2, bytes.
Laddess
-address ls
s aloay S im dhe foom o
aloays 2 bjtes
} TSR 256 iMt Erqpt
Offset address.
addoesSd SR of INT 4 iS
Pe of Branches
6000|1|2fTPH
00002H
same code scgmen
boanch 00003 4| CS H
boqaCh anothe code Scamor o0004+ INT
Intorseqmem INTA -single.
steP 00
9
Resey ie
TNT-31
Soludon 99991
RAM:
0001
() EPROM Requized = 128kB
AVailab \e = 2 KB
Requized = 32kB Reauised 128 -4
Avaj la ble = |6KB NG.of chipS 32
4 chips
NO. Of chìps Requited (2) 2 ehips RAM.
for calculaHon o
Staoing ADDRESS of EPROM chìp Size Required
Address ime
32kB - Requised Si28 - 32x1K -
32k6 = 25 xgl0
the chips
2l5 -Address line, put mside
15
15- oDe's
RA M- Set 00000H e
F I5 0ne's give one u staring Add.-
oFFFE H
eVen chip End. Add.
PAM Addo00) Ho
End addeSS of Memory PPFPFH staing
RAM O0006H Godd chip End Add. 40000H
EVen chip
End. Add.
StaxHng Add.
|Des)g:
End. Add
odd chìP
anlt b RotM RAM RAM RoM
MAA
3
H)
F8000
|FFFEnRAM
MermoA
Ao-A13
Da-b7
P7 AA4
Do- Do-b Ao-Ai
10000
H
Address A-, Ao
MeM A-S
Aj-A Ma
A
Ay oldplioVA
As
Ay
RAM RAM ,RoM
4
Do-D7 Ao-AB
So-i4 Do-D Ao-Ai4 -Da
Do
JA-sME MO M0Me
eA4
1||1 A
A19 beriupo
741383:3Decode
G2h
(BAnk
RAM
PAM
(H A18
L
Po
mininym mode Slm
based :. starting Peaui red
8oR6
DeSigo qn the. foloc)ng 128 IK
QO
ab GMHe hauimg 32 KB chips,
I28 KB EPROM as)ng G4 KB Chips.
128 KB
RAM simg 1111311111J1113
Solukop :
SRAM: 128
KB No of chips = 64
Requlted - l28
KB
Available = G4 - 2 chips
RAM Chìp
singte
c64 KB
-2l6
l6 Adess imes CA, - Als)
EPROM6
Required: 28ke
Available:32kB
No. of chips -|28
- 16 Advess Jines
CAj- As).