Lab13 - Funciones Con PIC18F4550 - A

November 27, 2022 | Author: Anonymous | Category: N/A
Share Embed Donate


Short Description

Download Lab13 - Funciones Con PIC18F4550 - A...

Description

 

V^IG^EHEBOÒL MJ HOB^IBIL]^IKEMI^JR Keniretiroi L¶52 Dulboiljs bil VOB53D=::6 Oltjgreltj0 - Lerbosi Vebcjbi, Hobcejk - Bciquj Rcuel, Hessojk - Tokbe Cuehel, @ijk - Cuerbeye Bkjhjltj, Loba  Rjbboòl0 E Mibjltj0 Boroebi Hertèljz Djbce mj jltrjge0 57/55/>> Djbce mj rjekozeboòl0 55/55/>>

>6>>

 

Ken. L¶ 52 Dulboiljs bil VOB53D=::6

Dulboiljs bil VOB53D=::6 In`jtovis 5.

Bildogureboòl mj kis hòmukis KBM , EMB, VWH y ZRE^] bil kjlgue`j B y jk usi mj dulboiljs jl bihpokemir SB3.

>.

^jekozer epkobetovis utokozelmi dulboiljs bil kis hòmukis EMB, VWH y ZRE^], .

Oltrimubboòl Zl EMB bilvojrtj homj jk vikte`j T jl ul pol (quj tjlmrå quj jster mjbkeremi bihi jltreme bil jk birrjspilmojltj rjgostri ]^ORE) y ki bilvojrtj jl ul lðhjri. Jk vikte`j sj homj jl rjdjrjlboe e ul vikte`j hèlohi, Trjd(-) , y e ul vikte`j håxohi, Trjd (+)0 TYlirh 8 ( T ‒ Trjd(-) ) / (Trjd(+) ‒Trjd(-) ) Ke dòrhuke eltjroir birrjspilmj e ul vikte`j lirhekozemi. Ro jk vikte`j T ekbelze jk håxohi (Trjd+) tjlmrjhis ule sekome mj 5 y so sj qujme jl jk hèlohi (Trjd-) ule sekome mj 6.  Lirhekhjltj Trjd- sujkj sjr Tss8GLM86T y Trjd+ 8 Tbb 8 :T, pjri pujmjl usersj itris vikte`js mj rjdjrjlboe. Ro pir j`jhpki qujrjhis hjmor ule sjõek quj senjhis quj isboke jltrj > y 2 viktois userèehis Trjd-8> y Trjd+82. Esè eprivjbcerèehis hj`ir jk relgi molåhobi mjk bilvjrsir. Ke himukeboòl VWH bilsostj prjbosehjltj jl jsi. Jk hòmuki VWH mjk hobri gjljre ule ilme buemreme bil ule drjbujlboe meme (tèpobehjltj nesteltj ekte, pir j`jhpki 56 ACz). Kujgi lisitris pimjhis or behnoelmi jk bobki mj trene`i (% mjk pjroimi jl IL) mj ke sjõek0 Jk peråhjtri dulmehjltek mj ule himukeboòl VWH js ke drjbujlboe (i su olvjrsi jk  pjroimi) mj himukeboòl. Jl kis VOB mobce drjbujlboe js prigrehenkj (bil bojrtes kohoteboiljs) jl nesj e veroes veroenkjs0 Ke drjbujlboe mjk isbokemir prolbopek Disb Jk prj-sbekjr (V^J) i movosir prjvoi mjk tohjr ]H^> quj pujmj tiher kis vekirjs 505, 50= i 5054 Jk rjgostri V^> (6->::) esiboemi ek tohjr ]H^> Ke drjbujlboe VWH rjspilmj e ke dòrhuke0 DYpwh 8 DYisb / Q= x V^J x (V^>+5)X i ki quj js ki hoshi, jk pjroimi mjk VWH sjrå jk olvjrsi mj mobce drjbujlboe0 ]Ypwh 8 Q (V^>+5) (V^>+5) x = x V^J X x ]isb Jk ZRE^] (ulovjrsek sylbcrilius esylbcriliusrjbjovjr trelshottjr) js uli mj kis mis  pujrtis sjrojs mjkis quj mospilj kis VOB54D37S.Vujmj dulboiler mj dirhe sèlbrile (cekd  mupkjx) iesèlbrile (dukk mupkjx).Himi esèlbrili05. Himi dukk-mupkjx (nomorjbboilek).>. Ztokoze kis poljs0 • ^B4/]S/BA ^B4/]S/BA 0 trelshos trelshosoòl oòl (sekome). (sekome). påg. >  Olg. Bïser Boroebi Hertljz

 

Ken. L¶ 52 Dulboiljs bil VOB53D=::6 • ^B7/^S/BA0 ^B7/^S/BA0 rjbjpboòl rjbjpboòl (jltreme). (jltreme).

påg. 2  Olg. Bïser Boroebi Hertljz

 

Ken. L¶ 52 Dulboiljs bil VOB53D=::6 2. Kis metis jlvoemis tojljl teheõi teheõi mj nytj.=. Jl jk dirheti mj ke trehe sj eõemj ul not mj Rtert86 yul not mj Rtip85, y pujmj eõemorsj ul livjli not mjmetis (j`jhpki not mj  peromem) e kis 3 nots mjk meti0 :. Jste dirhe mj bihulober sjroj use ke lirhe ^R->2> /^R-=3:. 4. Kis nots sj trelshotjl e ule drjbujlboe do`e y lirhekozeme. 7. Kis nkiqujs quj bildogurel ke ZRE^] ZRE^] jl himi esèlbrili esèlbrili sil0 Borbuoti mj hujstrji. Gjljremir mj neumois. ]relshosir esèlbrili. ^jbjptir esèlbrili. 3. Ke ZRE^] li sipirte ke gjljreboòl mj peromem peromem pircermwerj.?. Jl himi esèlbrili ke ZRE^] sj pere ek jltrer jkhobri jl himi RKJJV.    

Vrjpereboòl Vere ke rjekozeboòl mj jstj keniretiroi sj rjquojrj ke kjbture prjvoe mj ke oldirheboòl pripirboileme  pere jk jk bursi, bihi jk tjxti y jk heluek mjk denrobeltj.

Jquopis y Hetjroekjs ◉   Bihputemire ◉ Ridtwerj mj mjserrikki HVKEN S OMJ Ðktohe vjrsoòl. ◉ ◉ ◉

Vriyjbtir huktohjmoe ]jxti mjk bursi Heluek mjk denrobeltj Metescjjt

påg. =  Olg. Bïser Boroebi Hertljz

 

Ken. L¶ 52 Dulboiljs bil VOB53D=::6

Rjguromem ]rene`er bil Rjguromem jvote quj kes pjrsiles sudrel meõis, y privjj ul ehnojltj setosdebtiroi mj trene`i.

Ek trene`er jl jstj keniretiroi i tekkjr y buekquojre mj kis sunsoguojltjs, rjekobj jk soguojltj pribjmohojlti0 5.

Ek olgrjse olgrjser,r, olspjb olspjbboi boilj0 lj0 Ke Kess vèes vèes mj ebbj ebbjsi si.. Irmjl y kohpojze.

>. Jl su jsteboòl mj trene`i jvekðj kes bilmoboiljs mj0

Irmjl y Kohpojze. Cjrrehojltes y jquopis. 2. ^jekobj su trene`i tjlojlmi jl bujlte0

Irmjl y kohpojze. Rjguromem.

Vribjme e rjekozer kes biljxoiljs mj kis jquopis i ohpkjhjlteboòl mj kis borbuotis bihprinelmi quj ke kèlje jkïbtrobe sj jlbujltrj mjsbiljbteme. Rikobotj vosti nujli ek pridjsir eltjs mj epkober jljrgèe jkïbtrobe. =. ^jekobj jk elåkosos mj rojsgi pjrsilek0

¹Uuï js ki quj viy e cebjr9 ¹Uuï js ki quj pujmj sekor hek9 ¹Uuï mjni cebjr pere quj li sekge hek9 :. Ek tjrholer sus kenirjs, mj`j su jsteboòl mj trene`i jl nujles bilmoboiljs0 Irmjlemi y kohpoi. Rjguri.

Mjsbiljbtj jk suholostri mj jljrgèe jkïbtrobe.

påg. :  Olg. Bïser Boroebi Hertljz

 

Ken. L¶ 52 Dulboiljs bil VOB53D=::6 Vribjmohojlti mjk keniretiroi0 5. Vri Vrigreh grehe e e ohpkjhjl ohpkjhjlter ter dul dulboò boòl l ‛Vroltd‘ ‛Vroltd‘ #olbkumj ;xb.c< #olb #o lbku kumj mj ;st ;stmo moi. i.c< c< #olbkumj ;stmkon.c< #olbkumj ;strolg.c<

// Rte Rtelm lmer erm m O/I O/I - rjqu rjquor orjm jm dir dir pro prolt ltd( d()) dulb dulbtoi toil l

#olbkumj ;stmolt.c< #olbkumj "usert.c" #olbkumj "dusonkjs.c" #mjdolj po 2.5=54 #mjdolj YS]EKYD^JU >6666666 viom heol(viom) { oloboerYuert()1 wcokj(5) { proltd(" CIKE HZLMI [l")1   mjkeyYhs(:66)1 proltd(">: es mjbohek (m)0 %m[l", >:)1   mjkeyYhs(:66)1

//%m 8 mjbohek olt

p rol ltd td(" ("'e 'e'' es bcer ereb ebtj tjrr (b (b)0 )0 %b[l [l", ", 'e 'e') ')11 //% /%bb 8 bc bcer ereb ebtj tjrr mjkeyYhs(:66)1   ro proltd("'e 'e'' es mjboh ohe ek (m)0 %m[l", 'e')1 //%m 8 mjbohek olt   mjkeyYhs(:66)1 proltd(">.:: es dkiet (d)0 %d[l", >.::)1 //%d 8 dkiet   mjkeyYhs(:66)1 pro rol ltd td(" (">. >.:: :: es mjbo boh hek (m (m)0 )0 %m[l [l" ", >. >.:: ::)1 )1 //% // %m 8 mjb jboh ohek ek olt   mjkeyYhs(:66)1 proltd pro ltd("4 ("4.6> .6>j>2 j>2 es jxp jxpilj iljlt lt (j) (j)00 %6.> %6.>j[l j[l", ", 4.6 4.6>j> >j>2)1 2)1 //%jj 8 dki //% dkiet et jxp jxp   mjkeyYhs(:66)1 prol pr oltd td(" ("4. 4.6> 6>j> j>2 2 es mjb mjboh ohek ek (m) (m)00 %m[l %m[l", ", 4.6 4.6>j >j>2 >2)1 )1 //%m // %m 8 mj mjbo bohe hekk olt olt   mjkeyYhs(:66)1 proltd("'Hobribcop' proltd("'Hobribc op' es strolg (s)0 %s[l", "Hobribcop")1 "Hobribcop")1 //%s 8 strolg   mjkeyYhs(:66)1 proltd("'Hobribcop' proltd("'Hobribc op' es mjbohek (m)0 %m[l", "Hobribcop")1 //%m 8 mjbohek olt

}

rjturl1 }

påg. 4  Olg. Bïser Boroebi Hertljz

 

Ken. L¶ 52 Dulboiljs bil VOB53D=::6 Vrigrehe e ohpkjhjlter dulboòl ‛Vroltd‘





Jl jste pertj mj ke prigreheboòl siki sj olbkuyjl times kes konrjrèes quj userjhis pere ke bihpertoboòl mj metis O7I y ke ohprjsoòl mj metis.

Rj oloboe ke prigreheboòl mj ohprjsoòl mj metis pere jsi mjsoglehis jk bihelmi wcokj sjguomis mj ke dulboòl ‛proltd‘ jk buåk eyume e ohprohor jk meti bihi sj vj jl ke prohjre kèlje quj ohprohorå CIKE HZLMI, kujgi vjhis quj behnoe ke dulboòl ye quj sj mjsoglel lðhjris y berebtjrjs biltoluis pere jsi mjnjhis bilibjr kis modjrjltjs metis quj pimjhis ohprohor y quj tojljl bojrte modjrjlboe e ke cire mj prigreher0  %m8 jltjri mjbohek  %b 8 beråbtjr  %d8 dkiet  %j 8 Dkiet jxp  %s8 strolg

påg. 7  Olg. Bïser Boroebi Hertljz

 

Ken. L¶ 52 Dulboiljs bil VOB53D=::6 

Bilibojlmi kis modjrjltjs metis quj pimjhis ohprohor ek sohuker ke prigreheboòl lis me kis soguojltjs metis0



Vimjhis vjr quj oloboe bil CIKE HZLMI sjguomi mj kis mjhås metis prigrehemis cebojlmi rjdjrjlboe e quj, so js ul beråbtjr i li, sj lite ke modjrjlboe mj beme meti jl  pertobuker.

>. Vrig Vrigrehe rehe e Ohp Ohpkjhj kjhjlte lterr KBM /* V^IG^EHE UZJ HZJR]^E HJLRE@JR JL KE VEL]EKKE KBM _ ZRI MJ EKGZLER HEB^IR _ DZLBOILJR MJK KBM * Dokj0 kbmY5.b * Eutcir0 Olg. Bjser Boroebi Hertoljz */

#olbkumj ;xb.c< #olbkumj ;stmoi.c<

påg. 3  Olg. Bïser Boroebi Hertljz

 

Ken. L¶ 52 Dulboiljs bil VOB53D=::6 #olbkumj ;stmkon.c< #olbkumj ;stmolt.c< #olbkumj ;stmniik.c< #olbkumj "dusonkjs.c" #olbkumj "xkbm.c" viom OlotVirts(viom) { EMBI EM BIL5 L588 6x6D 6x6D11 // Bil Bildodogu gurel relmi mi jkjk Vujr Vujrti ti N bihi bihi O/O/I I Mogo Mogote tekk ]^ORM ]^OR M 8 6x66 6x6611 // Bildo Bildogur gurelmi elmi tim timii jk Vuj Vujrti rti M bihi bihi seko sekome me Mogot Mogotek ek pere pere jk KBM KBM } /* Vrigrehe quj bildogure jk KBM y sebe ul hjlse`j oloboek y perpemji bil usi mj hebri kohpoer y dulboiljs mj mjspkezehojlti*/ viom heol() { OlotVirts()1 SKBMOlot()1

SKBMgitiS_(6,6)1  putrsSKBM("VOB53D=::6")1 SKBMgitiS_(5,6)1

 putrsSKBM("B. TO^]ZEK->6>6")1   mjkeyYhs(2666)1 WrotjBhmSKBM(BKJE^YSKBM)1 //SKBMYbkjer1 wcokj(truj)

{ SKBMgitiS_(6,6)1

 putsSKBM("CI  putsSK BM("CIKE")1 KE")1 SKBMgitiS_(5,6)1

 putsSKBM("HZLMI")1   mjkeyYhs(266)1 WrotjBhmSKBM(RCOD]YMORVY^OGC])1 //SKBMYbkjer1   mjkeyYhs(266)1

} }

påg. ?  Olg. Bïser Boroebi Hertljz

 

Ken. L¶ 52 Dulboiljs bil VOB53D=::6 Bòmogi jl HpKen

påg. 56  Olg. Bïser Boroebi Hertljz

 

Ken. L¶ 52 Dulboiljs bil VOB53D=::6

Tjrodbehis y Bihpokehis jk prigrehe0

Bihi sj insjrve ke prigreheboòl birrjbte rjekozeme jl Hpken 2.:, ye quj pir sugjrjlboe mjk pridjsir y eprivjbcer times sus dulboiljs mj heljre òptohe, y mj oguek heljre sj kigri sohuker jl pritjus.

Vrig Vr igre rehe he e Oh Ohpk pkjh jhjl jlte terr ]J ]JBK BKEM EMI I HE HE]^ ]^OB OBOE OEK K  /* * Dokj0 tjbkemiYkbmY5.b * Eutcir0 Olg. Bïser Boroebi Hertoljz

* */

#olbkumj ;xb.c< #olb #o lbku kumj mj ;st ;stmo moi. i.c< c<

// Rte Rtelme lmerm rm O/I O/I - rjq rjquo uorj rjmm dir dir prol proltd( td()) dulb dulbtotoil il

#olbkumj ;stmkon.c<

#olbkumj ;stmolt.c< #olbkumj ;stmniik.c< #olbkumj ;hetc.c<  //piw(luhjri,jxpilj  //piw(luh jri,jxpiljltj) ltj) piw(>, piw(>,2) 2) sqrt(=) #olbkumj "dusonkjs.c"

#olbkumj "tjbkemiYkon.c" #olbkumj "xkbm.c" uolt3Yt tjbkeYpukseme861 bcer strolgYtjbkeQ:X1 viom heol(viom) { ]^ORM861 ]jbkemiYOlot()1 SKBMOlot()1

SKBMgitiS_(6,6)1 putrsSKBM("]JBKE VZKREME")1

påg. 55  Olg. Bïser Boroebi Hertljz

 

Ken. L¶ 52 Dulboiljs bil VOB53D=::6 SKBMgitiS_(5,6)1 putrsSKBM(" --< 0 ")1   mjkeyYhs(5666)1 wcokj(truj){

tjbkeYpukseme 8 ]jbkemiYgjtb()1   mjkeyYhs(566)1 od(tjbkeYpukseme !8'6') { sproltd(strolgYtjbke,"%u",tjbkeYpukseme)1 SKBMgitiS_(5,7)1 putsSKBM(" ")1

SKBMgitiS_(5,7)1 putsSKBM(strolgYtjbke)1   mjkeyYhs(566)1

} } rjturl1

}

påg. 5>  Olg. Bïser Boroebi Hertljz

 

Ken. L¶ 52 Dulboiljs bil VOB53D=::6

Bihi sj insjrve ke prigreheboòl birrjbte rjekozeme jl Hpken 2.:, ye quj pir sugjrjlboe mjk pridjsir y eprivjbcer times sus dulboiljs mj heljre òptohe, y mj oguek heljre sj kigri sohuker jl pritjus.

^J]I JL BKERJ0 ^jekozer ul prigrehe quj buhpke kes soguojltjs bilmoboiljs0 2 dulboiljs mj0

Mjspkezehojlti mj nots (mjrjbce ‒ ozquojrme) Bildogureboòl mj  pujrtis Olgrjsi mj = bkevjs sjbrjtes y quj sj hujstrj jl jk KBM ‛****‘

påg. 52  Olg. Bïser Boroebi Hertljz

 

Ken. L¶ 52 Dulboiljs bil VOB53D=::6 ^J]I JL BKERJ0 ^jekozer ul prigrehe quj buhpke kes soguojltjs bilmoboiljs02 dulboiljs mj0 Mjspkezehojlti Mjspkezehojl ti mj nots (mjrjbce ‒ ozquojrme) Bildogureboòl mj pujrtis

Olgrjsi mj = bkevjs sjbrjtes y quj sj hujstrj jl jk KBM

Mjbkerårehis kes veroenkjs, esè bihi, usi mj ‛%m‘ pere omjltodober jk topi mj rjspujste quj sj insjrverå jl jk Iutput ZE^] 5 birrjspilmojltj birrjspilmojltj ek vekir esoglemi mjspuïs mj ke bihe, pir j`jhpki, jl jk bòmogi sj rjspilmj e ke ‛x‘ j ‛y‘.

Mjbkerehis kes dulboiljs.

påg. 5=  Olg. Bïser Boroebi Hertljz

 

Ken. L¶ 52 Dulboiljs bil VOB53D=::6

Kkehemi e ke dulboòl quj tjlmrål jk hoshi topi mj veroenkjs mj jltreme quj ke mjdolj eltjroirhjltj. Jl ke sjgulme pertj hujstre mj vekir suhemi e ke suhe hjmoeltj ke sjltjlboe proltdk jl milmj sj jspjbodobe quj sekome sjrå mjbohek y privjlmrå mj ke veroenkj z.

Mjbkerehis kes veroenkjs quj sj vehis e utokozer. Rj mjbkere ke dulboòl mj lihnrj ‛IVJ^EBOIL ‛IVJ^EBOILJR‘ JR‘ quj li tjlmrå ule rjspujste mj rjtirli (viom) quj lis ves e sjrvor pere rjekozer kes = ipjreboiljs.

Jhpjzehis bil ul oloboi mj dulboòl ZE^] pere quj pimehis vosuekozer kes påg. 5:  Olg. Bïser Boroebi Hertljz

 

Ken. L¶ 52 Dulboiljs bil VOB53D=::6 rjspujstes jl jk HVKEN. Kis vekirjs esoglemis e kes veroenkjs quj rjekozerel kes ipjreboiljs mj rjste, suhe, huktopkobeboòl,, movosoòl. huktopkobeboòl

påg. 54  Olg. Bïser Boroebi Hertljz

 

Ken. L¶ 52 Dulboiljs bil VOB53D=::6 Jk WCOKJ (5) bepture jk bòmogi pere jsbronor siki ule vjz ke rjspujste. Mjserrikki mj kes ipjreboiljs mjltri mj ke dulboòl ‛IVJ^EBOILJR‘ quj li tjlmrå rjtirli siki tjlmrå TIOM bil jltremes DKIE].

påg. 57  Olg. Bïser Boroebi Hertljz

 

Ken. L¶ 52 Dulboiljs bil VOB53D=::6

Insjrveboiljs Gjljrekjs 5.

Ke prjsjlteboòl mjk oldirhj sj rjekoze ek olgrjser ek Keniretiroi. Jl ke bkesj soguojltj e su rjekozeboòl.

>. 2.

Rj tiherå jl bujlte kes rjgkes mj irtigredèe jl ke rjmebboòl mjk oldirhj. Ke jvekueboòl sj rjekozerå mjk soguojltj himi Bursi0

Ken. Li0 ]jhe0

Vrigreheboòl mj Hobribiltrikemirjs  

52

Dulboiljs bil B jl

Hjse Li0

  Djbce0 VOB53D=::6 Vertobopeltjs0

5 > 2 =

påg. 53  Olg. Bïser Boroebi Hertljz

 

Rjbboòl

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF