Unit 3 - Set 2
Unit 3 - Set 2
Trichy MIE8791/MECIATRONICS
Lecture No - 24
Topic(s) to
becovered
LAnalog e Digikal Cenuertoy Iitbjanig
LOI
LO2
LO3
L04
Lecture Notes
Contal EOC
8-Channel Timing
Multipezer Unit ond
and 8AR
Anale? Compaabr Outpe 8bit
Soithes latch Oilpuls
25h RRitey
3bit Atte tehTOe Output
Vcc CiND RyRe Enable
Im
logical O oukput Volbage
Pinragram e AD 808
IN3 IN4 IN NE W7Soc EOCopK ecKj ope8
17P channob, &o bsal
*Ape 0808/ot09 has 8 Berd 3 t
dasrd 1/P chame, tAnecs@g to
ADC o8 08/0609 addros DnABL Inps
channel ZSent h maltipera
Altros d desrd
aldress inpit tro vs
port pins.must beleth
tti address
atlast sons,
IN2 r
i B ALE DBI6 ` 4 REF D2
0
Analeg p Acdress Digitd Bit Bt
Stot of lonversion SO)
25MS,
by 8onding ALE Aapal A t nata
*This can achibued be Conesion proces
be sent hzk 4 ton de to stat
Stanal must
0808/0gD aes End of Conurson(EOC)Aigral Thep
*To tndicatë end f oasion ADC aterEo
Conerked digital word t h tre dat bur l enaba openabe sigrl
Ston Can read
is aclivat as e Conwrsion techrigue, It does
nat rqure exanel
t ws Buaesie qprOXimalion
maltpkatar4onparior
Zeas l adjustmest. NoTaminal avuesheble forsanpkehold boleco
nTERFAInNC OF ADC o808p8 09 wilk &pR
IN
Outpt ortA
clckhu
AP
749oC1o
Outpu
|Enubie9 To
5ydc ADC MicrofrreRsor
LVcc 1 o808
7 OC pER
5vREFVREE12
13 22
25 24
AfBA aPorde
1LoY
LChannel elect Peo
Iophts bn Outpyet
bit (LSB), bi= Mastigoiticant
bit MSE)
The bn Bte last sigithcant mSB Ai Az As A4 As As A7 A8LSB
PAC 140
(mSB)
CDL
VEr T, OP A A
As A L I I I -
Current SJithe8
Conhbl R2R Lader Basic araE2 ND
It Cons~ti ta rdenne
currost arplfio. hipk spe
Un K2R Lallr and 8
Current ustthes.
lLSB which conbol te pasiliens
l t hos g putdata lenes AMSB)thregh d g
oOurretithes
Voc
2-SK +SV xlt reguins 2m referonce carront fur A.l
Az-
w Vn ale inpul f Lpouer spples Vec =+Sv
Ki4
AsDAC 2-Sk
nd VEE =-ISV.
2sk
T-Vrd44i4S
IPP
ISV
Input Ai trough. Ag Con be l r 0 (or)!. pi hpical ct ret fall-eale Currat
Can be giwn a,
256
El992mA
t zhows tfa tro full scale olPcureit is alnayps I LSB les llon ho ralerene Curant
Baure 2mA Tris Outprut current is Convertal inlo valtege I t Veonwiee
Vo-1-992x2-S K = 4:98V
The Circt operatn Can be obw rud for 3 ntlens
Condton 1: For binay ~nputloo H)
bz0 Dreto his current
Whan bina iopat_is 00H, te oilpt aront Toat pin 4Vs=-s
lang thooigh Ke (ImA) Jlows trogk R guing
Condton Fox binay laput Caret loat pin4h Ind ByapigkCLat
wWhon biny input a pH, te outpt
nade A,uegot, -TB +To+I1 =0 ahi,blaliag valuo, e}Tp T, uozot
-ImA)+(imA)+14 =0 Y-06i. oupt valtego i zene
Condiion 3: fer Bim Input FFH
Whan binany input is FFH, o uont lo at pin4» 2rA. By 9phg HCL, at nod
uegt, TB To tT4=0
mA)+4= btbbuliigtTe 4Z, uegat
e
ImA) H2mA) +4=O
imA) HH2 4=-ImA
outpd Voltage t5V ue haue 2 FF etn 0o4portA t 8 2
logeneva 8uere uaYe Hirst output
onnectid to 2AC, O308 Aordig to jezuong requsenet dley
Outpt for 82s (A)
boteontte outpus
2port
providdi
Prozram
dLXI SP 27FFH Initat stzck Pointer
MVIA, 8DH Indialize 8285to Cortigunall
OUT 03 Ports as Oudpupo to-25 VOulput
LOoP MVI A, 00o Lod AwidK,digitel datà CorrespOnds 0E 08
OUT 00 Send dgital data to lnput of DAC
CALL DELAY Wait for
vr dSpeciied1ine t t2:5 Vodt
MVI A, FF digital data orre po ndb ttt2:s
Correponds VO
Lod A witk to PAco8og
OUT 0 0 Send digital doti input t
CALL DELAY Wait for specitied Lne
JMP LOOP Kepeat
Qday Ho3 ram
MVI B, 08 Lod dely Caunt ih vegis
BAC& DR B ecrenot lount
JNz BAkk ;
CheckCount=D okruwie Kepeat
RET
M.I.E.T. Engineering College, Trichy ME8791/ MECHATRONICS
Lecture No - 25
Topic(s) to
becovered
STEPPER MoTUR CoTROL
Lecture Outcome (LO)
LO1
LO2
LO3
LO4
Lecture Notes
PAo
x2
PAI Y12
PA
PAs 74o
döactin doactan
motor n clockuiie
otat e usehae
don
mtafe motor
in CCU seguence
lo
to e x c e
motor D a
Yevnse
mobr has
Step XX
8Bunca dr Alegper
citloo unolirg endns
due b charye exct 2
many
changa to dsrd
it k not
pas7He 83rmultaraad 3
Houwvee &ame widirg
rds ot e unndirg m a
o t te mofor
Caneels
e fuw i
Ths
lockigsgtin mst
he
domage
aunid tisy dizitnl
To
designe
t12V
8tp XX Y Free Wheolg
dicce MoteY
windigs
Re
6
O Roritane
Halt Steo Exct tation Sejene Ercitalion Cire:t wik Sories Kositance
For Full Step, eitalion ends tpae are, chargd h one step LI8 per Exczbrlan]
For HalyStp, excitlion ers o taks tosTPs }o change t the phe.[o.9°J
3thpp metr á stoppd tom se poiten t h nazt by chorgig te arok tongh
hells te malbr in aurot and the pat kmt on e slpig rat
Windg indicine vpps0 te choge
For hih 8sppir ralis4 moe
toyue, banecessay tauekgo voege soure faret
milirg veibrs
uwedecreae LYR Ene bastant, whih alss e aret
P adlig Sorie resitane,
Change more rapidl sindi.
in
A0e reitbr, but dasga hasto Compaemie pethan Buer4 ped
Troe sa paui.laus acrss
roga lonhol prgran
Stepper molor Cade deguene for olacksise ntlibn
coo H Exce-Code DB 03H, O6 H, 04H; OCH;
motr clockuwbe by 360
b rptine to,ntats a 2tepper
Set t e Counb
SDo
MVL C 82H e t epetizn Count fs
START MVIB, O4H
LXI H, bo0oH
COunts ezcitallon 3aene
Initaltze Poînt
BACKI MoV A, M Cnst be Excil -ode
OUT PORTA Send Exa -Code
CAL Dl Wait
INX H Increnert pointe
BR B Rpeat 4 nes
JNZ BACk 1
Ropect sDn
Jwz START
RET
M.I.E.T. Engineering College, Trichy
ME8791/ MECHATRONICS
Leeture No -26
Topic(s) to
becovered
lomperaliae Control
LOI
LO2
LO3
LO4
Lecture Notes
From PortA
Pee2PP
MIcroProco ssorTTo
vt Clavor) 8PAS Plant
BoCk iagram- 8v85pP Tanpevaliore orbiol
Wori ot Temperatoe Coibrol
The branadacer (Sorspy measues Cerrent toperatve and ls anpktfiel bg
anplyier which gah aonerd o haa dezial dtgttal value a AØe.
Ths value isCompaher oilk a b a sot desBd alue, ihfe micoproasa
and te Ouelt ef Compision Aan etor signal.Lo) nuld
meaing tto toperatove has obe increasd bi a heoter
*error may he positive
orangement
the topeilre hss erdual by soecode aat
Error mey be nNgaie
means
has
t bodore degai he sontiy a i 5
is no enor, to nopraesshs
l4 tore maintatn tongortie
e dore repaatally dor oitnuouy dvr 82s5 (PPI)and
suitk
urtk micæpraeuar,
conbal syten
Ferinlofa dy tap
Sensor outp
micnprocosb0r,
Connecte
betoeen
T , +T2+T3
ahe
ADt
J
Tp -I7
tinnad onloFFgt
VRt, which be
o-87S n4 can
Va h tplacal by bit, as
wtrge nanber of b A r r o l o d1
Whoe iput n e r a l i z efor
ag
zottches l a r o t Lo
Canb
An7 Whoe,A
4The
outpat T =[+A2+ 2
Poinlö
Hogram Initilize 8tack
SP, 2800 H Inibialize 8255
xI t lur
andga hzd
MVIA, 98 H
OUT 83H (CWR) charnel IN.3
:Solect
03H
MVI A,
START 82H (PORTC)
OUT A, 03H
MVI CPoRTC)
OUT checks EC
82H (PoRT); checks EO
to L1
L1 IN 82H EOC=1?1fno knJunptarpenatore (t1)
RAL 18 yato Rad
LI (PORTA) EOC= 1? l&
TNC 9DH 18 LI ato B rezister
realigp START
IN ae
Junpo
MOV ATA IS -TI$14os tan
tin Junp
o OFF
Topic(s) i0
becovered
Tralie iht_Coatnl Jahnhacig
Lecture Outeome (L0)
LO1
LO2
LO3
LO4
Chalk &Talk/ ICT Too! / Any other Listen /Participate /Discuss /Peer to Peer
Learning /Quiz /Role Play / Any other
Lecture Notes
TraHieift, which ney also be knasn as Sthpli,tnthe leps, tntic sianl,
eboi or) Serraphore, 2a ignalit douicespostangd at raad ntueclörb, Tdstrla
Crossrys and ofolocalbns to conFol Cornptig flas t
tratrc
Aht Conlrial liit of a Ztl
Coloos traficaltarnat fe rigkt of ef raud uwes by diplying
Tratic lihs a urieual colorcede.
Yollou-lArmbs gree) uig
Color Kd, à tdbectan darotd
prt-esd
Seguence lalt allutbs raldic to f f e bdoso prpane stp
D n i nalon et groen
liht donohgs
plesr/ambe
iD unhnalian af
intersecion, and precdog
short Fe e rd Bins prohibas arg trabHc Fron
ai) Muminaton hues and ke greenLzlt o n t a
2ome orarje
n s
Uualy, Rd contains rad-gracn colorhlzrndnes, fCma
people lk
3ome blue, for berftt of on a yollur likt
t a t blue lerses
aneas atre
skts Bo mang susstkad
tte d crnssings can be auknaltia.lg
Talhc tzkts placed at micoprocesorsyslon
n Tve desired 30uene usirg tke
ON/OFF
Mr.S.SATHISH KUMAR, AP/MECH 1
using So8S as CPU The s4ten
has EPROM memory for sato
Ssten hes been deveepel
pronam ADYaN a RAM mmory for Stack operalion
RS ADHDA
8253 Latch hpPI
D D
N
SystunBus tmsusbs
EPRN RAM
Koy79
board Ange Dri
Drplay
ControlL
Decola
Keboard -Cathele Oria
Conbiol a Kayboard faue haan pmvldd. uill e holphul r qperalion
lt, tortm
X For monual
r n e flo"is diyplagad daiy rannel kAts
bto ztth olOFF t e KdYalodCmen
tt dbeiten
Prinag fundln of p nto sglen LS3245] #Prb
in he speihid seguoNe to he zystin biegh bferl be n
The LED% are ikrtaied tirnad oNlDFF sing h i n
82SS schene e lzkacanhe
implenotalin
In e
prachcal
plazed ot tt
placed
hral,
transilors f relay drien bnsilor
ba connelel ko tfe
ith onFF LzltLzlt
bufer Can soi F F
the oulput af t r a n i i s t o r
canheuel
Celletör of te line o
suritch on t lihe
sods HiaH 5o g
a part
micpresor
The te lzkt. diten a t
t suitch olf sallosed in one
and las tnfie
aumad that e n d l n kety nrn R2
In tha s
stis
uone,
DN Conilon 4
OOFF
1preoa
tne
a
te l t yor adolle 1etou4
Can atput
Procassor
t s~tkiy
cades por
tne
dolag Tve pro.aMDY otht e Cods bor seheheI
Ma specizied
b Qach achudue, praesor Cantait
I.
or>pezhial Tone, Af Shedile Llast), Preo
rurned to Sechalle
Can agah rodlies is suticiert gorimploreig 12witle
le eleavel tet hose sheet doby
oitkat esing FR FL kt
Syslin Canke designod uig
to)
202econdk
W vansition for
E 4Eo
Ezamples
wt
DAllor dom d5 seconds. Yollo
transiion peniod 20snds
) Cnie Sto) dor
tratic Jom No 3ecmds
(Yollos)
3 Allco pOriadaf S
Cnive transilien
4
S)hpeat to pocOss in oneirs
N Prins LigktPins Ligkt
PAo R PBO R
PAL PBI Y3
W PA2 C PB 2
PA R2 PB R
PA4 Y2 BA YA
2 PASCn2 PBS| Cnh
s2 112V
P L 230VAC
SDHZ
ADo Do PAo w- B 547
ADT PAI
PAL
PAs
PAL
Ao PAs
A PBo pt+12V
PB1 FYee
1OR RD PB Wheelir
O W WR PB3
ete
P
RESETOUT RST
Pbst M
4
88 Yop
S