0% found this document useful (0 votes)
7 views

MPMC

Uploaded by

traderboy5577
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

MPMC

Uploaded by

traderboy5577
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

17. 05.

2024
Name- Mitai Pradhan
Sec - B
Roll No 228TCSE 40
Subjeet :- MPMC
AsszaMENT
With the helt of a neat oiagram, discwss the arehi teetue (Block'
aiagran) af B255 and dis cus ite intergacng with &ot6. Also,
diseuss the io mode of opevations.
Aehtteeture t &25s Leloo
lhe funetimal block diagran o essA PP1 is shown in
contaims blohs
D Data bue
2) Read ] write control

B contrel

(4) Port A and Poyt B


(5) Port c
PowER StsV
SUPPLIES GRoup A
PORT A PA - PAo
(8)
B1DIRt CTJDNAL
DATA Bus GROUP A
CONTROL
DATA Bus
BuFFEA
GRoup A
PORT
K uPPER
READ
(4)
WRITE
CDNTRoL

LDGTe PoRT C
LOWER
Ag GRDUP
RESET, CoNT ROL
GRoue
K PORT B
Data Bus
Buts
’t i a thi- sate e- bt bidirectional budke.
ed to
’wsed itintace he wmierovoceser thsesh dta bw.
intrutions by the cPu
CPU.
veeeied
ctatus mformatioo
also
’ The bus s m tistate ohen the c t slect oiglCs is not
astine wtte leie
hehen ead e attevate t thrami date to the
dta w.
* When wite b aetivated, t tratmitr eeenes data from
data bus.

Read W-ite cotrel legie i


the intenl y estenal
data l control ttus word
t hom the Cpu atdress an eontd Loses, amd
in turn isues commndto both the contol
SThe fumetion of tert stmale aito ciated wtth the block.
this inpuct pin emables the
te Chib Selet (Ts)- A® "Low' n this
Comnmiention betuen the 825s and the Ceu.

to this pn
s Wite (WR?-A" Lovo" t s enput þin enabes the CPu to
write olata e eont w into the 255. Thee ToWR contol
s connotd to this pin.
RESET -A bn tis pt eset the bessA.
Tt Reet Control Wod Register and al Porti. Au pot worh
as bane nput povt.
Povt Select Oand Port select 1 (ho sha)

the
t Ao on Ag input ot the chit.) otthen adess lines medto
ldes aTD device ae uscd toto qenenst
e chit select ciqnal
The input in thee lines elet n Tlo pot or the eontolequter.
Reat,wite conthal oignal penfoms eat an otte operatt
selected prt. Wrtng to oontel wd megiuter à auppoted ut
ot utpnted. The
Condition u hewn 'n the ta below.

CS A Ao RD WR Result Remark
PORT A Data Bu Tnput Operatim
PoRT B Dta By
Reedthe addessed
PORT
PoRT c Data Bu

Data Bus PoRT A Dutput Operation


Witeto
1 Data Bu PoRTA PORT
Cs 0,
RD 1 Ad WRo
1 0 Data Bus poRT B
oData Bus- Contol Reguter Woite to controd word
4 Control word cait be nead.
Data Buw n Iistate. Both contred cigmala
denctivated.
-B comtroi
This devic & p the Procesor by
wd to Contol' n thee

bloch to contve a
spoible for port Aany Post c Upp
(P4 -PC)
2.
aup b conthol is openi forpot Bany Pote Lower
(Pg - PCo).
Port A, Port b and Port Cir
PORT A: (PA-PAo)
Port A has e 10 Rnes laleled as PA - Po.
1t cam act as an &-it atehed buthred oo and an e-bit vp
lateh
t Can be pregrammed in 2 medes: Mede O, Made 1 am Mede2.
PORT B:(PB - PBo)
PORT p has .O inee ubelle as PB+ - PBo.
Can t a
data
to operate either in mede oam mode 1.
PoRT C: (PC+ - pCo)
This yeportPORT to tuwD past with 4 ine in
C lbueer: PCa- PCo
t PORT C upeen: PC - PC4
The tw parto
ctpt Lees in Mode-t
* PORTC upper is wsd t r PoRT A Contol
and Moe-a.
Mode-l.
PORT B Cotel Les n
et or eset in BSA ede amd
ts mdividu bit can be
TO mede.
independent
Interfacing &a55 with the Pocess os
$2S Can beteraeed wtth logs as
to the b to Do f system
The data op lines the ehi ae conneete
data bus.
eleeted n emen addres as data ae
a.The addesses o port re

thnh lowe brter dta bus D to Do.


Trmemed
3.o Ao io
4. A Ag U6- Lt adde
Ag (-bit addes) Ats to Ag
S. U high order bt A to
are se ot thes ci.
ae conneetef to R nd WR tnpt
G. 10RD IDWE eiqal extenal deviee. a
7.The data o lines ot bu .
These nes are clled ocal
e involed t may be Conntef
t'the eeepondne pin of conmeete otc.
Ob n PoRTc iu tb anm itevrust input,
a.he INTR prreetor am
drinen data tranee btween
t interrupt
deviee.
J|D Mede ot operati.
4qune belov
follows:
1. Dg - Whn th bit Da a4 then Tlo mode is soleete.
WhenDD, then BsR mod s clected.
wey to
The decml nue the to Lt ts th cedeeted' mode s
bperation.
2. Þu amd Dg Du b weed to Conepert a Ds to
as

The
Leleeted mede ok osratin
Mode 1
perate
5. Di md Do - Da s wed to
Lntit ( bit 1) os eutput (bit 0).
conig,bD
I/o wode
D

PA PCu GB Mbde Pe
1 GA Made Pa
Da Do
PCL

Made Leletio
00-M6-de o
B
-PB.)
Port B (PB
4X- Mode 2
-tbct

Port A(Pha-PAo)
Mode eleeti or
1-Inpudt
4- Mede 4

(PC4-PcA

1- Irpu
0- Outut

Wo modee eotral word forat


diayram, discuss the aTehiteetune (Plock
2) With a neat
o4 &253 | &254 and diseuss ite interfacing
aing
with &oG. Discuss
abeut the control wod formnat n alo dies the dit ere
medee o epeatio.
tu Arehitectue blocks
mthe below.th
The arciteetwe t 82514 a shewn
S254 Ae
1 Data bs

DRITE Legic
2. REMD/WRITE

3. Conthal Wd Reste
4.Cout D, cowtu 1 and Coute
CLKo
DATA
Bus couNTERk
BufPER

BUs
INTERNAL
RD
READ CouNTER
WRITE kATE 1
Ao
Ad

CONTROL CouNTE A
WDRD GATE
REGI STER

Data Bu Butte i
D'irdiretional e -bt btte.
intenel data bus 8264 witth the ten data bu o
imtentacee data Lstusen
phocestoL an s4.
The read wte Legie contols the destion 1 date bkte
RD, OR contrel input.
READ/WRITE LDGIC i
The RERo) wite Lgle acept nput fom the system bs and
gmet cotel siyna tos' the othen fnmettonal' blocku
2254.
A4 An selet a contr or the
Can be witten nto
RD, WR, CS bees.
RD WR Funetion
None
Read operatioo
tte oetin
Cs celecto the chit hon dste traer bttueen the timer and uf.
RD, We ae low actine nead and wite contol entt.
CONTROL WORD REGISTER:
The cONTROL WORD REGISTER i seetd witb A 1any to >1.

he bt pogram pct eaded detemnes how thc Gpefey


counter operates.
atioo
The Contrelhord Regiter can only be oni ken and cat lae
Houener, the antomatin Gtntus Registe
with the Rend- Back Commnd
Ceunter-0, onter -1 an Cont-as
Al cemtre are indepentent in opections Lut identeel in
Drganisation.

Cownt ahe "conte


wd'andinite comt"
’ the vlue tsom which contng
the control wod to it
AThe counter ha too Enbuct clK, GATE and one otpt ouT
hThe cowtir cownt domwnwand at the
intut.
a The GATE Enut contob the csnttr.
be wse to wn o Gtef the eomtr.
be wsed to Lead ele tiu cot

Tnterfacing 82s4 with &ot6


ADDRESS Bue 46)

CONTROL
IJog /ow

Ag Ao s
coWNTER 251 couNTER
ouNTER
2
ouT GNTE CLK''ouT GTE CLK ouT GyATE cu

&55 with &otG,


date bws
5Syetem addreer bus.
Addesy bus

The chit Aeleet Coneete to cs tatut.


IORD control lynal ib sont omected to RD intut
10WR Contra b connect to WR inpat.
Contro Word Fovmat;
Control word
Da Da Ds D bDi Do
|Sca SCo RLeRLo Ma MeMo BCD
Codey Rendsitee MedeBinwy
SC: seleet Conte
$hese t bt

SC1 SCo Function


Seleet Cotu-O
Seleet cConta- L
1 Seleet Comtu-2
Red Back Command (e2s4 my)
RL: Red L0ad wite)
* Both MSB amd LSB oL he conter hs same. adres and the vae is nát

’ The Read Wite bt


t Lele fntomd.
RLA RLo Function
Conter Latch Comman
Read ) Wtte SB ly
Read Wate MSB oul
Readwoite LSB first then mBe
M: Mode
"The opertin mode u selectd by these bit
M2 M Mo MODE
MODE O
MODE 1
MODE a
MODE 2
MODE 4
MODE 5
4

BCD .
Indieate the count type
0: BIN ARY coumt
1:Beo Cout
Ditert made ot epetioue
MODE O: Lnterupt on Terminl cont
+ ied to generat'a time hia
be wed to the P
MTmitil cownt io Lended at nentaple ftr landing
inttial count.
The cont stat deorementing t -ne edye s cLk after inttal
Jhe to k s coutting
**The1.to0
edethisis as GATE
has no
CKnon itial CLK WR OuT titialval ->Sp becomes Output yATE Ceunt
yAEhas no MODE CLK hmA
cont Teminite
1:cont 1
Hadre Fig: cowntiny nao O gces
LSB3
an enables eaded
Operation
u cont lro
leaded o e7bectemain NHmes
the-neAt when couttingprovided
Re-triaeabe comt when
in
ta neleaded on the
comter
MODE Inti the trom
O. and cotr m ATE
ctate GATE =4
(ie - start comt whil here .94
t hotne is -0
the s GTE
Coutng disalles
it
a otpt.a -D,
at
ciin
Resumes
GATEwhen loadet. ame4 t iu
evtues conthes legt, cowttinsy
1.
LSB ws
couNT wit MDDE toO
whethe totone - ntial etot
h
deermented when
eont ATE
state.my
cont
wode tod 4ees m
GATE for nest
fro
*he
OUT
tueTh uttial
-The
Cant ouT GATE CLK
GATE expires, cont |ucttut Output
MDDE Ater ilae dtion he
o,eminw
he t
TE=4 etrig. ttheutA
Cw2 elendi
a: the the nuw mede actut
enable te TLsB mdthe ow
Rate eent cemt Hhe
b Low
divide edy nloih gees witil
LSB=2 inkal
h peiedie.
i
uttiny
t
yeneatorlhrigge) me
that higb when when
tialcount.
wtten the ot
by ee-hot
ehot coutng
-N cae, count
whenProgmey
emds.
comte,
m ple The
sotsLieseni high the
to chotcout tt
isthe pulse
TE
pule is
Con
comte not end.
-0 her Comter N- (ohn to
y cunghar n Lital tines outpt oleck
btput Mode
disalles N, ectse a 1.
cont wtil
dingy oyole
u leaded
the can
coutne oyele
clock
next th wwder
fuittal relened with
be ttr^
Low. t trigkening
uwith nuo
t iciad
Value
te tie.
couuct cont
at conter
he when -e |tor
hes
()
* OUTGATE-1 bcqinnig
comt.the The Mede 3: OUT CLK a-w N, The Qutpt
Leo Relonds
nttinl 9ceus Vale
cloch N IN]N|NNS|12\s|3||3
IN]N|NN|1Y1318s| LSBg
Cw19
CW4LSS e
the
iutal
for cutput cont
atter otes
(N-15/2 nelended
is cot high
HIGH elens
cetdeenit
value ohen
clooh o at
st An
the the made
to
coyoles.
peuio"dom g has Modea. as value.
nevs Coundt
higb Qutct
Pudseto neo attnd
set
the .Dnitial
ceut, s yele
elook N- rester
for e by
Cunent the
(Nt)/2 cemt the wtmg
ount
ca theco
UNT=4(CR.
thnwe and þersd.
neuo but
clock to
is rleade cout cool
Low intial
eeut an

when will regite


othe beeloed
cout ne oneloal
att *ATE- o
eThe *gATE-1 9ATE fATE
MODE 4:
Thecontcotiny Ottiitia
IN|NN]S121:|a|]31 ceuntngThe C-16L$8
whenmtal
elendd
comt intial
GATE
1cont relendi A con
enables neo mables Fintyel
ta comt the
t beeomes
sLogt usane stast
high esmes s comt tial at
londe4 is the conttng
decnem ne elock,
net bn
lok ne when
eotiny 1. neuo 1 CyelNexte
new demt eot to |BecendCy
the it
entin comt, nTE wna
GA'TE- at comt atteet
eowdea am val
eloekne .
where tom nent t cyel
GTE 1. Mode. he -Oeen
olock the to
whm u ne
phogrmt t lse nest
CLK cnt Auabes and atr
in
yele is 0
cont cont pue comt EVEN: JttalCont "N"
lett
disales then nitial
Cont"N"
when negistr. contny. ittal
2 when after w cemt
0.Then
emiti, cout
oUNT GTE lading
(-
we be
dowy
mede the
t fomnit
t
io H oy nlue
ee he
0.ecomes
anysaa in .
(Plens
to foy tial londed.
2,
*Qutt GATE |CLK qATE CLK
0.Bo, tThe Cowtny GATE aenenate
heAe,tbut ININ|N|N||i|8
yeo).
gees t (Pee fom This uitialMODE
expici.
otutcewmt b has o
cowt 5: LSBS
when
qeeshighitinl medeHandeneTrigged SB3
note proees, qATE
gces b s13|$121i1:151
value I) lende
a-neelock
ww-tiggeAable.it
fr again. t
eloads
cotingie
Comitng count
heebutL, rege
me odtut.
Mede
eter cout
o clock the
6ne 9 (Re-
the
cyel (cE) CourT=0
beele
when
to mitial tm trigger
Mades 3eo )
ohen comt contines
vobhethe
fiagat
CouNT-o. and
CouNT
whn u m
rmain
ohen tait
the
Couit
ig
OUT 4ATE CLK OuT GATE
IN
INN]N]N|NN:|1:#1 N
LSWB
N|N

N|3|:|2|

#|3

Count

You might also like