MCA Assignment 3
MCA Assignment 3
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:
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:
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