Professional Documents
Culture Documents
25 Question - Ans PDF
25 Question - Ans PDF
wo
wo UARTS Communi (alt direth
A n UAR lonvoilelion, data
ath o-the 7he bansmiting UART htoiH Pasalt)
h
onbol ling deuite ke plpu in to
in to Seria om,
lhvh then
Donmit in Sevial to h teing URT
deta for the
lonUes mt Seria data batk in avallel
ansmit
wo Lne ave netded o
Releibiog Deilt Dnly
Belween hdo UARTS Dato loasS mom he 7x Pn
Date RT.
UART o he R pin -hu Ketiuing
of h hanmiting
UAR1 1 UART
R R
Whith mtany het
Taansmil Data a Jyrt hronou, biB
- UAR
ynthionise dutp) o
nD tbtk Signa to
Sampling bi om
tvans mitting UPRT
VART
manititg Rttiting
adds
the tyansmitting UARÍ
lotk Sianal
astead a cata
Patke bea tanufeed
Readin B
a Slatl bit i
UART
dlteH ,
lhtn h Reltiurn
BH
a1 a Kno
Ho Read hw nloming
h bavd ale xpa
Data
oto o"
h peed
Baud h a l t ' S a Meauwr
transmiting,
UNRT e bi?,
Ates ag} bit padiy
data bus hun i adds a
b, (veaing h Dada patket
Patke
and aStop at
S oupo tria),bit by bii
4)Nexi
Dala Packe
h
y bbil
dala patka)bil by
UART ea
s7 Keteiuing
a RPin batk n to
Data batk
VART hsn lonvegd h
6 7 Rtleiriog
Rembue -H las bit
bit, pay bii &
and
asale tovm
ovm
Stop bi in
UART hufeh o Dala patkeB
h Retei'ng
finafina)l1, Ketpuin end.
Palale) t Dala Bey b hu
Kno
Lath
animitled dala 'Ss nganiitr 10 o atkeH .
UPRT
lontainyIlas} bil, S 9 cata biH, an ophuna
pake
bi? and on lo1) two Atop BiK
Dasi Pake
f vemi
nomlly held
ntNallyheld
liv is
deda Tansmiion
vART
Stasi 3i Th ansmi Hing data
one
bn berin
and ntxt
n ext bes
Onu byle end
P Can' e
whe
ignal mest
ends AnA btfin. fo hu
bil J Reltive lan
he
he
in Juch o lay ha
Synrhenized Sends }han
damtte
istinge is h h biH byi
Ho be dioqvithud.
ds i e s t n ) Signals, A
7he Ayoyhvno igoning Mehe vse
Gneher bil Sohon
ignel ndilay
poke
eady 00 th othe vg nt
to be baasheved i
thanmision, th eam dala
oSyothmnou ofvellaq
yenodt pulse of
pblse Veln
totoded Sent 00 t li, and a
tloek
Dota
B77 Stopbit
I
Pi'/- AH AL
•
LJDde..
f>x BJ1 8L
Ddt-0-
CL
c~ = Cyt [: ~tra.
D~ brt DL
Shck "
'
~Po1n1er6Gl()d~n:u."x
~ .
Rar,
. '
. I \ .
l'rllf r~ CT e)
Jt <tl\af ~18 ynaclLV 1 ~YYV-1!-Wf'°CLNS2!'l0(<'~
Compt.d:r proro.m 'in ff(l.l ~ ~ T I 0,(1' .tLi.l>
t
t'tt_
'i' LLl"\nl rt°a" Of°1' ;,:flt,'a')
tt'af
.
.U rnqdL( 1.-thvr, ~7VO-Jt,a," exdu,l,u
pvorr7t11(11 t n .!Jintf- 8tcpfln~ rno::k , . .
. .
,
,'i
'9\t._cfe ${qip'1rig rrwck :u (µ..e.d- ct. dAiZt fu -eJr"6}5 ;tJ
~cowa,,-n , {! s~~kcj-~na,-·
X
t •
r
h-r& 508 s 0:w ~perra:1_
»u, p1n MNh~x
, r . i
t! i
35
1
r1i.
-
c---7'
.c:l) .po<~
'
\_ I • l
P,'n 17 CN _M2-J ~- .
~on .+1(16kaUt. i(.)1:C-'l"YVfi ffi ah,o(J).tUd e ~ ,l,\~
lnpui. . . .
H ~-2-lri-/.L~ "1ht- NM2 ('.anM't ·
fin 11 CtLK)!r
c1xk input pvovid.tJ - -ij,t_,r4 -f;o r tPl'.J QJ()q crl/ .
I.
,n~cJ Clruu±
I
I
'
Pin L(G-, N Q)
. 6rmu pl f1 , , to , fn-16Ylo.1 et'Ytltl I
I
' f ( I f
I
Mo ,
,.,. 1't1-<.fY1um Mock
· ,. :,<· t,ffl '1~
1
,,f~ Cl .:l.YVff- in
~C>S G 1, W><.d. . th! Sy.;.,, .,
ht.Fnll'YU.tm mvdcU I.IJ)(l)i · .Yn -:thL!l .' '
if V fj,t,
'-
J \ -b eorYY\LG-trd i:o r u Yi) d .
·-'
g 0~6 tv1 ,~c'lOy:n'°~O'Y <> ) 4-o f~
G\ND '---"' f\-0 . V Cc__
ADt4- 2 34 At:> 1s-
A'Dr~ 3 :)~
Air c,/E>3
AD,? 4- 3=1-
A81~/~q,
A!)n 5 3(, A9 li /.£5
At\o 3S- A·r9 /s,
ADq
-:+ 34 8Hc I~-.
g,3
tv)tJ/M){
Ab2 8 22
~J) -
-1-<D=\ y i
31 ~I Gtrb
8086
.'3()
Ro tGn;
AD, LJf"
I
ADs . ~t2..
I I,
< ~-
-
------- ...
LCD
-YTALI Poo/AD
P ADI-38
P2 A D-3
16KTAL2 Pa 3AD3-36
PuuAPy35
R S/ADs4
P6 6(ADG
RST Pa+Ao?
Pa As
P /A9 E
Pa 2/Aio
P2 2
PsEN 25-
Pa u/A2
ALE hsAI3
3 CA o5/ 6/A 14
Pa7/A15|28.
0
IC
Pa.0RxDIO
P.i0/12
P.11/T26 Pa-/Txo
P12 P3.2/1NTO
P 3/INIT 2
u7-3 P3.14/To
P3.5/T5
P5
PI P36/uR6
3 9/RDT
P
EA iS active signal- ¬xtevnal access enoble pin:
indicates that oS Can address Extevnal
EA=o
Pyoqram memOry . e i t CcnExcevte a
itial valves
VeCPoudex SuPply
-
Cottsol pins Rs, RW,E ave Conmeded to pot 3 2,314)
othe micvo(ovsbolleY. LCD
ancd PIN 1S (Backlight Sopply) of
-PIN 2(VDD) and
ond PIN (Vss) and
ave Connected to voltage 5V
ave tonnected to qround
PIN C(Backlighi ground)
trough
Connected to voltaqe (Vcc)
Pin 3(vo) is the contrast
veststoY of lok to adjust
Vaiable
a Yesistor is
the voiable
f LCDMddle leq d Conneted
to PN3
and other fuoo legs cve
(onnectcd
Sepply and Gvound.
to votage
with micyo-
Keu
4. ste about Key pad ivileyBocing
-Cotsolle
An Keypads oye inpot devices used in vatoos electhronics
ond tmbeddod projecks
hey One Used to tzuke inputs in the orms of
number s and olphabels
le ose going to inertace a 4 4 Matiix keyboaro
wi 8051 mICYOControlley.
4 matfix keypod
Belore intertang toith micolonbiolley rst we
need to Undeystand how ts to0TKS
Mohix keebovds Congists of Posh bttons ohish
intevconnedted.
(onnetted Post-1
- Micotonholey Con read he datoa enly from inpot
povt ie. P2
It Cant
Cant Cad dota tvom YO LOS So pOrtl act as cutpUL
Ahen everu any Key 1s pyessed need to qet
Me
the lotation boton means Oyes ponding yoco ano
Lolum
all
all columns oye tonnecled to Sv pouoty Supply Gnd
all rous pin Ode Conneced to qyound
Cu
u.4K
Do M
D
D M
Pors
(ovt)
D3 D PDo t 2
alweady changed.
make all Coleumns into I
micretontrolley il
Aqain
and all Y OUS make it tul except 0. YO =0 tt
SO
So
trst vow it any Key pressed in first
t Veity
Ow c0 Value will chanac
aqain and
microcontoley ill find column and Yow
S
tey and it toiu take On lcd
Tespective
i i l ind vespett
Asc and pastícular key toill display
Key
5@Oxaw the
intesfate CinCut diaqyam o AD DAC
As
As metioned .
Connect an exfernal
herefove, we have to
intenal clock: clock to pin 1o.
he Exteyna
clock Connect aCCo% ding to the
+) to a Voltage Souvce
Connect Vief
you need
aep
icp 12e
Connect the SenSor to any
analog SenSotu any
Gxound Vsef (-) and
the ADC. we have
f the analog mput Pins on
Connected aVariCble esisto to INT2 for
Pl.+ ALE
P2.4 P24 INTR CS
P2.t AB C GtND
Slepl: Set the post you Connecled to the output lines
nes
of Hhe ADC as an input Poxt
step Make the povt Connected to Coc in high
The eaSon for donghis«thot the ADC
Sends a high to low Signal when he
CoVoxsion of dota S ne
Compele. So this ine
neeols to e igh So thot the mitio Contoller
Con detect the change.
Connede to
Slep3: clea the odato hnes twhich ave
VOUt - 0
PA
MP GiND
5K
Explanalíon
device DACO8O8 We need tuoo
For wovKing o as shown in diaqram
+5V And1SV
Voltage
Voltaqe Sources
drawback whtch s eliminattd n
This
This 1s amajoY
fyom a Single poweY
modern DAC to make them work
SoUTCe ad are
ane given to the chip
¬ieht digital inpots from MSB to LSB
to be in ordey veierence
3upposed connetted as
Y eterence
8oUYCe 1s
A A+loDV poweY vefeyente
device and he negative
Voltoge for the
iS gounded
voltage
c ircuit is voltoge fsom op-amp is in
amloe analoq
. The output valut and hene DAC
otth input digit
linear elatíon DACob08 í3 ackhieved-
wit
convesfon