MPMC Chapter4 Part 2
MPMC Chapter4 Part 2
Ryy
Sende
Uhameg
chonnelolRY
I xY K Chaml!-2
AsynchUnous
Synchnous Cornmuní G i ,
s Bt sest.
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
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.
Technially 0t 4s prJsaable
’ TB8->
ath bit an mde 2 3
(MoPE)[oth bit an espectve m
-mode o
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
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
RI
exEctes s BUH
Pata
stuses
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
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
Rx
seauises b/ to
No Synchor
UARTS.
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)
’ 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
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.