MPMC
MPMC
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
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.
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
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
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
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.
CONTROL
IJog /ow
Ag Ao s
coWNTER 251 couNTER
ouNTER
2
ouT GNTE CLK''ouT GTE CLK ouT GyATE cu
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
N|3|:|2|
#|3
Count