0% found this document useful (0 votes)
10 views19 pages

MPMC Chapter4 Part 2

Uploaded by

projects all
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)
10 views19 pages

MPMC Chapter4 Part 2

Uploaded by

projects all
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/ 19

Sasal Comsmuna Cotion n 8051

Seßcl Com. ael

The Pricess f Send The p tess af


Bt
Ang deta One sendng dasta rutspl
at a tme, seuintially, bats as a whee n
Communs Catfon!
Channel chonnels

Ryy
Sende

dota Sne (one-by e Can Send a! the


eme) ts atthe s ame
’ lowu but used time
>faster but Can't
for long ckstana 3 be wsed fos lmg
dËstane

egiTelephane line eg: psntes

Basscs ef sesíal ComTuniCactTon:

Seial ommuri Cathn 4s of to tes


2) Dufler
) fun upkx.
) mplex ! ’ me-way CommnoCaeon
ans mt one ay/ vecieved one ny
TrY
:) Puplex:5Two Comru attm
4) Jalf ’ ne-chamel As aaihble
dapler half daplex

happead but sane time 4s


net porsAble

Uhameg

Be Cause f sAuge chanel Tx'n g Rin


Same t1me.
not hafpend at the
way CommuniCarn
b) Fun dupky? ’ Twr - way
¬, Channels av la ble frs toansinfs5

chonnelolRY
I xY K Chaml!-2

7 ToanSanisy Teey possble at the


Sarg tme due to multf- chaunelS
Note ckup le Sei a
Communi Cathn.

AsynchUnous

Supputt both asyn Chsous

Synchnous Cornmuní G i ,

Asymehorous trensiem Synchndus tongn

- sent data in formi send data a


of bytes(o Chaaces -fm of blocks

Chalaekrs mutt ple bytes


etters Comunaty
data
-> wattng y -’ It sealime
-to be Gone aai latle } Commun Gat.
’ ’34Rs Fast
Slow . eConomicai tsanimmSy
Sosal dda trancfeo ccheme i
-’ sial Communú Cation 4s, Segdy the
data cepuntially lone by oe/fine-by
Bne Ust ky bit
The serial cca toan mhssion happens
-two pins TXD (Tcins mât- data P3.) G
KxD (Recicved -the dta p.o)
Sosd SaPput fun- dapler sial Cmmuic
-afin ant we
use -the 3-vegfstexs/
Sial Com urúCathm, Controlled by 3-s
) sBUF seste Csestal buffeo)
2) SoN eister (Seçal cont )
) PcoN SegÁS Aer (Powee Contl)

s Bt sest.

eephon Cvia, RIP Pin) seperately


sterr wed for toan
’ seperate sBu F
-Sni ssfon a ceptin.
-’ Befoe toansnittirg.the data fon &os1
The data s stored nin sBUF Tefste
to
’ Ater secseving the dta to Sos1
ecieed dta tose n
RxD n the
S8VF <f ster
->To Confgure / (onbol the Safal Comm
-nicatorn we ned sloN veister.
Bit
addsessable veg?sAr (each st has
the rfan cetionality)
De Dy D, D
Ds D
SMO sMISMRENTEs RES TI RI|

D, D bts > SMo, SMI


-’ SMO, SMI ae mode Contol Bts.

SMO SMI Seda! Desci ption Baud


mode
Mode o

Mode 8 t UAR T Vatiabla


(Totzl lo bits)
1. Mote4bit vART Foseo
(Total 11 bts) Fos</6s
Mode 3,4 bt UART
(To9al 1)- Bt5)

Baud rate: Data toans mât/veCfe ed the bits


per se Cond o) we Can say
dt1s data speed. (oz)
No bts toansit peo Se Cond
(The baud oate s imég f
Jntmal CioCK fseg)

vaiable mlans chauge -he


’ that node
baud ate o

t shit regster Sends


s &-
dot
tfmes f Jnte
s 1th
’ Baud xate )2
-nal clock
Mode : UARTCUrivessal asynch
->Tt 1S S-bit
secieves q toansrn+tte)
-0nous
wsth -bt data n Cent
’ alng stting bit and ending b5t
we have mode 1
to bts availoble in
’ Toial

Do D DD3 D DsDe Da 1
stating & bt data Ending
Stop Brt
’ S-L5+ data, sait bit4s "o".&
íto} bitl End it s "g"
26

alrg tth stat Litand end 5t.


Totl

Do D) P3

Stast
b5
’ Tt &s Generally usedfor eser Checking
a er0r ye ctif Cation be Cause "pasty
5t 4s availa ble.
’ Baseà on Do to D7-p' 8$ update
P=l’ ayen pastg n
Do-D
P=o’ odd pay n
po-DA,
bt 9t Corrupted, you itn get
eor 5n
An toan[oni Ssion, so to gdentf.

-y e0Y An tyan smis 8ion we gofos


'p? t in mode 2 3
i
ps bit’ SM2
SMe enables muttipuesSeT Sy Stem wRta
mude2 and mode 3
tlucn
I! we Connctt multfi poce ssogS
SM21

bit’ REN (Rectevey Ehable bit):


Dy
’ Based on Progoammey dedsion, f4 gou
the data tten -REN=1
want to e eU
enabed.
REN=, secteving data
data d{sabkd
REN= O, recteing
>TBS, RBS CTaansmit Bits E Recíe
p3, D Bit -Ves bit: s)

Technially 0t 4s prJsaable
’ TB8->
ath bit an mde 2 3
(MoPE)[oth bit an espectve m
-mode o

Model stop bit 4)


Mode 2 G2 aty b5t

mode

Md e o ’
Mode ’ t o p bit, (2)
Mde 2-> Pafty Lft P
R1 5 t ’ RI Ceocrever Jnterut):>
SBUF Seistey
> RI s enabkd by
the totl data to
afr secieug -SBUF
dn be clensed by proqsamney
RI win
pwg m to get the
next data reception.
TL(-ToanSstted Jntsupt) >
Do Lit
tnabed by SBUF egf stey afty
tsinittng -the total data fsom
SBUF Teg? stes.

TI Uf| be cleared by
Pgrammey
toanrnit the
4n ISR prgam to
net byte f data

) PCoN Tegisttr CPower Contaol segfsté):>


also 8-bËt sef Ster.
Gomn
> only one-biPused for ceial
-und Catton to sekethe baud cte.

Ds D D D bo
GF)(GFo PD

(sesal Aate
mo dity bit(H 4s used t select the
baud rate )
3) (put
Do
ed RxD
SBUF
ta RRE(RecfverajnNT) Procesa
(tooansrit TI
bo
TxD
SBUF,
m
Date &os1
P3.0). RxDC (p2.)
4 TxD ns -two
SSontonsmi -seial
dat
igt happend
scheme toni-Y data Selial
:>steps
sete baud fos used bt 'ncnly
Note:
mude, Ldle TDL>
bit. down owee >p YD
puspae General GFo> GFI
it. EKta pose/Du>futte Ds, De,
Comurit+og. serial An
use not bits sestf
the 6eneraluy ’
use O’
baud frrtimes-1
timer-1 ufius
sate baud the double >To SMOD=| -
3)
Totinsnttte tx):’ TD uJed to Totnsofit
-the feial data. R-64
the data -the
Befre toanSn -t9ue
ti
egfser.
deta stoved 9n sBUF
ater
’ seialty the data Send by TxD Pin;
g-t dta toanSmi tted, SBUF segf
-Stes enaßles the TT (tansm?t gnter
-upt). (vefer the Aguse)
tnabled by <BVF to the po eSSO
’ once TI
exe Cutes the IsR
&0 the pesso
Pngam 3s exe cutes. then
adddess
clears the"T'by user.[See fn tgnext
page)
’ Afkr ceaghe TI ageân next
Jnstuction e bit data Aoged by SBUF
again Prvcess Cortinuous tn au the
lines of date tRins tted.

Toansmnst
SBUF

(TsR adds
Inderrupt
ex eted)
Sos MC Tlainsmisn
3)
Recieve CRxD)> RrD uSed to ecioves
the seial data

’ hee also after secieviu the data


to 8osd RxD P?n the dta stosed 7n
SBUF segiste seually then t moved to g
s- bt datu by sBVF, 0t
’ Aftes Gtoves the
to
fnables the RI (Recfeyes Oreteropt)
t exeCutes the
the pnlessu
addsess RI,
by prgrammr, to
RI cleated
gain line f data.
-the nent
fets cqeves

RI
exEctes s BUH

Pata
stuses

>Poocess f IR ahess exe ttrnnttoupt


exelit
(Tx RI
(EXD)
main pg Mon po
ndempt pgrm exe uterpt poyex
TI=l RI=|
Mov SBVF, A MOV As AIF
CLR TI ) CLR R
An mafn pav Contme
Van nain
On beard Communi atn nterta ces
boald CommuniCatiun gnterfa (es sefes
’ on
dtfeeut Com uni Catun buses/
-to tho Vaovs
drter onntcting tte
Channels foy
Contegatel Ciuts) and othey
Ie's
wttfn -the embedded Syctem.
PespheS

the buse s.)


Various bus Snterfaes ase:
Thce are 3
) I2c bus Cyntenal Gntegated CKt
2) sPI bus (Sssal peiphal fntesae
-e)
s) UART Cunlvessa asynchsonous
Techever Toan Sottt

)IC bus (ontemal Autegratel Grcuit us)+


Synchorá tet b-dtvechnal, halt
duplex, two-ire sesal bus.
> 1t pso Vi des the Communi Catiom betueen
qutegrated cixcuftS.
Gentyally 14 9s develo ped to easy way
i to Cnreny between a miso ContllG
Sy stem and po pheral chips fn te le viston
Sets.
+V:

Sl ScL
SDL Ssal clok
line
spL
Sestal dt
ine
Mastr slave 1c
IC

to cend deta bw t o
> t 9s genraly used masr tc bec
weCalled
Lds gnkrnaly Contrl)ed by mastto T,
-ause,s lave tc
I C bus.
An betwen we

poiphial ontespce bus):>


&)SPE bus (Saial
Send data between nico Conto
>145s used. to
sefsts
-lles E Sma) paipheals Such as
Sen SosS E SD Cards.

Tt
uses the Sepeoate cloc k and data
Choo
wfth a Select ling to
tnes alen to Comnuni Cate.
the devi Ce you wish
Sp bus ckyeloped by moto vo la, wfth
futl- dupley & syochsnous seial Cormm
- nh cation betwen maser E Slave clevices
as shown Gn below ffgure.
Sesial Cleck.
SCk
SCK MaSterout
San SPT
MOSI SL Skye
Master5n slove
mastes MISO SO

es
(stave Sso
sele) asi
SS2 SCK
SI swe pph
So

cs

SCK
SI -tlol3
3

tcs
SPI ormtn wh Slave spr's
Conneetcd. to drfertut paí phe
-aals, by usng beleo gnals.
SCh-Saral clo ck
MoSI Mases ot sok
MISo- Master An Slave o .
dnd, sqgn
Slave Select (each Save haie
SI’ slave Anpt
so’ Slave output:
cs -> Conto) sgnal.
tuni
4)UART (uriyesal asynerondu
&tuntta)?’
bttS
’ t2c bus Spz bus aJe Commuri Gatim pto
~Col S, but uAPT also a Physfct
Ciscugt Wth standalne tc.
to tsns
> Te moin puspuse f UAnT 4s
3eC9eves t e dta wshot
mt

ToHnsmtt dota asynchomously, me


’ ART docK Signal eaure
-ans hee 4S no

synchvnie output bitsfom UART, to


to anethes.

Rx

seauises b/ to
No Synchor
UARTS.

bit UART (8 bít data+ paoit)


9

DO D) D D3 Du DS p6

nimum S to q bi4s
Stat
’Pasiy (P) it used to Knw data losuption.
Cas we. dscussed An PNo 2)
Erternal Coomuni Cation fnterefacesi-’
’ Entetnal Communîatin Interfales sed
to Connet the sos wfh eatenal
devices Ke PC.
extenl Communß Catin
mtrfces wtdely used
1) RS232 standa
2) USB (univessal saial bus)

Geneally RS23 tandat upposs R


laptop.) 3+45 mYt
Yntrfa ting stndard.
we uses RS232

Pe| lapto p Bost

’ ot Supposts anput4
outfut Vo ltage levels Voltage levels ef
ase not TL(Tansf Sto
-Tsansitur logf) Conpa As TTL Com patikl
-be
TTL
’pe/(abtop, vtnye Jevels oi > Eos d S«ppots
Ht 1 -’-3 to -25 V bft 1 - 2to SV
b5t o’+3 to bfto >o to o.8V
-’-3 to t3 Vols unde-fined
Copers
’ Pellapto p
machine launguge (o'se i's
Supprts onty
VoHage teet dfference
So, theAe 45 a
Pe/laptop, So Com
TTL (Sot 1) E
Caton bla Sar1 E PC dietty not
murt
Posstble.
blk VoHage blu pe , Sor1
> so -to Conpatf le
MA 232 doivey Ie!
we dnterfce
Connectog
Connetr) to DB9
MAX
232
IC

RS232

TTL/Mser Cortso PC.


logico+itoyy
.lesc1’to-s
RS 23
Cabk
Vec
R
Pz.)
IN
232 Tx
IC
P3o
DB9
Connect

RS-23
8)
R) USB (uivesal Sosal bus):->
’ unfvesal ser; al bus Cute) onnecctoy
availaße an &os rí(oo Contboflel.
’ used -to 3ntrface blw
deyscesto ere kange -the dta.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy