Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
28 views13 pages

MCA Assignment 3

Uploaded by

Meet Bhatt
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)
28 views13 pages

MCA Assignment 3

Uploaded by

Meet Bhatt
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/ 13

4usec

msec 5 wsec64
= 4 lo Ton
abn oh time Count
oy calculate
dho he lo
a5MHZ Time
sec
MHz Qu6MH2- XTAL-
4 0 fvcquency
4 = Instzucton
ycle
MHZ (0XTAL Not
mseC 05 loge=
merc.lOnO5
Jmsco
on
Imsec sec=-0-00T f
1kHz faequencya the fashed
at lens As
=0X05H
00000lol 100N
Poescala given
|.64 Cas preselas as
TOSPS2TOpsi
TOPS0 PSA TOsE TOCS TMROON|
8bit TO
lapnesCa
of n and l0Mtzfzeqieny : dsilatoz ystal
mode. biE TimexD
l6în Use TkH2 toequenty
oL
ata eRI connected
to aleD toflcash p09 a(Nite 01.
Hssiqnhzent
No3
MCA
Date:
TEo clean TMRoIf
0; = bts. INI(ON
Tímenb ffTuxno0;/ TMRO0N=TONCONbÍs,
TMROI¾
0) =(INI(ONbtS wbile
Time) /Tozn
on TMRoON=I DLts 1OCON
TL6 Load |l TMROL=
39
THO Moad Ff
TMOOH =
sols l:64 ade16bitm Wmeo0 OX05 10CON=
Delay To
Void
mode 16bit TimeO, I
RB1 LEDa4 blink || =IMubit
C1) leohi
port output PoxtB =0: JRISB1 bits TRIS
(Goid) main yoid
RB4 bîts PoRTB mbiE fine de #
Cuoid) Delay ToVoid
f4580b Iude
<PisPoogD0m #C
39) CFP 65337’ 65356-19: OR
EFFE upto Cant
îs can Timex0 (ount maxiDinD Ihe
A(13)H. (oupts - ()
56
0-02 xIO-3 a56
05 05
64 X0-6 04
Date:
Date:

Etopeaaions
LCO Has been
Hais is tte to
inding cidespnead tse gcQiacing tt Ds.
4
he
he intea focing OL al6 chaAOeO X2 line LCO madules
oith the micooorolles PIcI8F458-ThÇ dala line a8e
Connecte to PastI of PIC LR£4 58 The odtol data fne
Ue ODDected to Pat 1 o PICIBF4 68 - The conto)
ne RS, R/W and E aNc adoiven by P3.2, P35 and P34
he valtage The vclkage aiat Ve pîn sadfusted by potto
DeteD to adiust Contast of LCD
Thls aisplay Can be cOntoclled bå.
by giving aapaigte
GOnm2and codes to the Lc moule: he comnànd codes
cann be Ued to display oo fosce the cuurSNo
posiion oo blnk catsos

Da 6choxocte x 2line
RA3 LCD
RA4
RAS O'sploy
RA6
RA?
-Mgdyle.
RS
PIC18E468
Vcc VEE Vss

RC2
Date:

Cnmands Re A/N D8,D8,D8, DB,DB, DB.D&.


PB. Descoicicn
Cleon TLclers the
aisplay Laxd set
display dota
LRAM adtes
Aetun tameo Tt se+ the
oaplay daa
RAM Gddoc
too1t otyns

haze posircD
Enas Madeo -Þ O1: D
SIt set the
Ldaection fo
12) = 0 decoement lCooSs Qnd
S= 1accnponies display sift. Speciffes
He shift.
of dfspigy
Oisplay on/000 0 0 1DCBTtsets #e
off cotol
letie dfplay
onloff.Cosod
nlofrco)
ond binkof
chatacies
8.
Dato

sT S/C=OcUOsco nnoye
.9d dlplay shins
R/LQ shif to the lefi
.diploy cato hta
FucHion IA set Iieofate
9/c 1dsplas Shift i3:data lengtbCoL).
Eumteo of
doto InesCL)
$ALL DL= 1,8 bits ond chogoClex
DL =O4
btsF=.0:5X1 7dos1fo'CE)
N= |2 line F=II5X I0dots
N0,1 line
Set cG
RAM Sels #heCharoct
gueootco RAM
oddoessCACG :.CG RAM ddoss) addoess. The
(haoacieo
oaáicteo geicvat
RAM dota issept
RAMI an ecciyd one
A1sfscting is
done.
Set Do 1 ADD
RAM Sets thedsplay
daBa RAM addoess
addoess
(Osplay Ihe.
AAMcsplay
data daia
dota and dcevied
RAM) gfteg this sting:
Date:

BPAC Reods busy flog


Elag abd
icdicafnq
AcdoessAC: addoess coute fog Ca ond îmeanafopeatep
DD RAM addoAss abelcg done.and
aOds addoess
instaLcHion Icofnte ontentS
in irteonal opcoaHon
itedak 1 Noitc dota to

Aead.dato I 1 O d data Reads data foo


RAM
RAM

lo.displa amesage gntbe lcD_nadule, +Ps. essetfal


to ntall the LCDmodule bgoaifng 09oies O commard
codes in the ommand ocqis% îp tbeappaopoiate
Geg ueDCe. The îrtialfzaHon încludes copmand codes fua
lcléoning display, octorping home and sbA4ing scuYD•
Qudhmaically sex OChonoter s cor4+en
Date:

3Woite ashootnoteS o
Seven segnent LEÓ toteozacing oith pIC8
mioo ContoollcH
Seyen aeqnient dsplaus ose d4enusedahen the
Smbedde& paoductS peéds to ieplay eso dl¡itS ord
nouqh auaehttoorye aseENi Sgmet dsplaya
pollpoatos fs adkicable as hese may be some
a onmhcn-cathóde sevep
he buffen chip g4 HC244 sogmept dleplcy thocug)
930Leach
LAAAA
AAMAA b f

Commn cathade

Whenon'applfcaBon needs to dfsploy lHiple 8C0 cligits.


he 4meaHiplexing technique is ased In #is methads
each dfsplas gtous on Goe tine and all otheas aae ofr
Te onlymcispla isoniat on gien irstut Put becauke
dispays ase giuing tgcheaiHeiace fit Îs necessaQy.
that he Ckk me Shoulo be muh less thon the
Date:

off tipe shovld be nuchless Hnn he esis tonce of


visiop time
Steppea mtoo pieaxacfg ith PIcL8:nicoooLtoolle
ASteppe moton 3 gdevfce tho+ taseo elecfoca
eaead putse
to:mechanloal pu tse- It sused-în applfcoHon like.
poboticS, ot mnataiX intog, dsk -doiye foo positon
COtooF Steppea matos MayE QpeDmoned magnetaa
SuOUded by astpo Genely the Stepper potoas
aye fus satro-sindigs that ase pained oitha
COMmOD Certd tap aßSuch steppex mobo Ps calkd
as. fow phase o unipolon Stepper notoÝ Nith
he belp o cetoe tap the Cooet. doecHeh În cach
a he kaÑ coilS can be changcd cobenauinding is
qaounded This gesW+s naptanity chage f shtro
A1
(OM
A2
A3
COM
A4

The:stotao Ps aeSonsble. fos the.doeotori o statoh


bythe statoo poles he steppe Mota has.6 leads,
4eods oepoesenting fcuy sta toa qoinding and
leadsfoz 2 cotons ox the 2c tapped leads.
Thexe ase many Seqcere ton sotation: fach scqverg
bas diffneDtdegnee o prsecislon

ULN2003
18F458
0ots Stedher Vnipoloe 4:724.7
stakia enenazc +
5V. he to
uid 'sS003: DLN like adsire HenreGuirdnqs.
motte steppea to.doive
Hhe UndCDt sucieDt haye
nob doeSiBE458 The Pe3.: P8,0= byipoot1
biks"
Dolled ae, ndging tatoo thteads.cj
e FouD the
motoo steppes înteofocinq
toi ConnecHion F468 PIC1 7
se
Ttock
4
1 1.
o.
ofse 1 2
Clock
onte lindíing
A+ 1 A.Widhg
Aa o Winding 1
Date:
catal mostmotodtheomsishe
sepotate
poovided
Supplesmotod PI-0
DCmotot
polcOContooley by to Noticemotaz:
MotesNifcconda motoa
f tatdonoge
MaTOR
COEOted vsed
fe
yse the bit
óp oipaio
palbeupplies cacvit
inmony Yaaptofcootco PlC)8 motoà
pcueO thedoging
aCXOSS
Date: 9simple
HDarctsio d'rctio
EMI Shouldop by +12V
ssibility voltage
PICL8indispe£oble d ondok capaita
contoo
paueDIheonneCHcn Coated
foom
singk
aincioe.
sepaaoatiohby
to MOSEET notox
aith ConDecHon an po high on 8AA
+12
potected Hhe EMIswitched OPTOISOLATOR
the the adecouping
inÀesfacinq' usinga
ando Sepaxoting The
Sepasate
pouTeg
pply isome
coNo a a
îs sedure The aSe he
is Pacteoton
fsolatoo
isolotoa bs
applicatHons:Ihe
PICI8
clan ko the Ciocuity. supplies: is +5V 1
bushes the seduce
bÉpbà fsolbtoa
Hons.oîlh use
Coirtoo]and opto allaws motoo
moto RBO
opto
q logic amoto. help
USingmotoo opplPcaCondaol
Opto paueyaoe
the
The
The Hba and lsohatHfs
DC
to by
uaye O-0053ee
lGbit TOPS0
a'squa3e 6MHZ he
Tihe0AnTOps)CT9ÖN) TimpeoiodkoL
SqLaHe ounts
tFOveci-^oi01sec
Qeieaate
Date: geneoaie 0:01 H
TOPS2 97 (65,26a),o(ECB)
10otz,=
Oßeoahe argiseailot142 =
P3A to pulse sÉEEE
to a-6MHz 65
Iimeo0 4 CODt 47:
Mtz: TOSEcailYal faequency= locw
= mCi
Tiongf l 1R8198 4x0-6 COUpt
fro 10 Tocs
Tinex0 high 5X1072 0006Q
0
Jaa TimeD0
pooqom gie cycte he use O05 65356-97:
(Eosc TO8bit calcaloaie foa l0:4 IMROH=
FE TMOL
=
EB
LOMHZ JnsticHon
Intoucton
iHs ount
'al cqcencyTMROON op Sms
04|Waite XHL Io Va Max
)
a) 3) 4)
Or
E =41fSmsec
fearercy
engoade400H2 TOPSD a.5MH2
cscitlatoa
of
Tipezbtrescaleo
TOPSI
=
0-001a
msec
4us
-:0-
l0eMHz= O-0025
Date:
coUStal TOPS2
400
Hz
2-6MH2
The
pSA cycle-éqvency=
4
-- pulse
gnd Tose . cCunk low
mode time.
To
lCMHz TOCS
Cprognam mes highl Counts
.24..
6bit ucle XI0-3
6|.5 IQ4.4
TO8bit 1ØMHZ
XTAL
1oMHz
= fo
Jnst1cHon
InstacHon CkolculaBe
inis ait
4cquency
AOON TOCON
a éd holf
Woite
opesot ’5oln:
TM 1o 3)
-
B O5
2
()i delay
67toggle
RA
bit ~pORTB
BS R83 Bbits. PORT
C1) ohtlc
b! put Cut R83 Il =0; TRIS83TRISBbs.
Cvoid matn Vold
Flaq TMROLE cleap l TMROIE
0= bits.JNICON
Tmeo0 Stop | ON=1 TMRO bits TOCON
010Veo
MROIEto es0)1/|o?t
foo ClNICONbits.TMROLE (obile
Tfmeo0 Staot TMRO0N=1 bits. TOCON
TMROL Load /L94: IMROL=
OX
TMROH LLoad 0XFE: TMRO
HE
poesco
ko :ROX06/TmeO,16
8 mode bit T0CON
delay) yeld
<PIC18E468
h> ncltde #
CPoogoQm
34LMROL
TMROH=
PE
>CEE34)n
(66992)1o 65356-
24 O
(94)0 EEEE-
count
9 Ti0.
meo Covnts Max
Date

You might also like