0% found this document useful (0 votes)
1 views19 pages

Module 5 Notes

Microcontrollers notes 5

Uploaded by

vileshkiran20
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
1 views19 pages

Module 5 Notes

Microcontrollers notes 5

Uploaded by

vileshkiran20
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
Medult - 2 C @ 5 leper stot. anteyedty worth ee _5 Stepper mos. 8b Q coiolely uped device tat Horblatig olethical pudbes Proto mrechantial move menls _ bed Ry applicectton Such OF , Hise olasvers , dot wet Printer, bots ete. 5 Upec| Adc pea snetoss have Foc, Mate winding, thet aw fabad wlth Cerrer tapped — Corrmen, SUCH motoré ce Coded 08 cfour phase @ Unto SPE moth. 5 cep Org 15 defined 0 The — mdnimuny cleric @ oration with 4 Alngle Sep. : O No mH SHph PA soveluuh> ~ 260] rep orgs © spe PO secord ~ (xp x HepR Pex rouclubiey | ¢ 0. & je SteP ange=a?, No of SH Per woboluct ay 1 Sd (ex apn Cee ee Clore wh pe AR ection 4c od acilals 6 bicep We G a ob 5 ? Rys Trbeyaces to epPEL root @ Welte an C PY am -fo yotee He SEPP oto} Clocew Pee Convinucus! witty AW AHP Seqento . => Bo Paclude Vota rofn f ble () YP corrouuly yee 7 Pl= 0x66) , abut delouy Ged, step Y ist Pl= OxX334, dele G-00)s Pl= o%@S clay (aed) Pl= oACC! ' cledoug C800)3 Void delay Cursiqned Chas Vebun) 3 Vogtgqned fat iy > | ny Fe (x-0b 413004 5 tg p Sea (yros YS Valu! ¥ +H yrs tke CUrecHep, a } ) . 6° Soiich t& Connected to ply PY. UWBdte An C Prog 4p pron he | Stechus Of the. Guo - SY Gw=0 , goto moos Choacuside Ceol roth moves Ant} locces'£e - x, guo= PAF Se, cloonustar 3) = 0X66 , OX3, 0X99 , Oxcc QUE! , CtertycLen cute G = CL bE, OX, OXGT , OXB3, ; 4 Prelude Svegs) by gyre sepa >rs void mesa ©) { Swrrs vonile CD x fe (Swe 2 Pjeoree> alelong (100) ° Pl= oxdas elerg CLon);, PLE 0x995, Addo Ct0d)s pe off Ss delay Cis t cb ; 2 P) oxt6s Aetouy 09); Pa = OLQO dey Cte): Piz 0x99 ebony (1t00);, PLE OX 34, deleny Cio): \ Notd doloy (Cueatgned Chex Volue) $ urnigned tot 0 Po = K = 0%, KK 3.0007 44)’ BA CYrOs Yovee YI! D Table 12-2: LCD Command Codes Code Command to LCD Instruction (Hex) Register 1 Clear display screen 2 Return home 4 Decrement cursor (shift cursor to left) 6 Increment cursor (shift cursor to right) 5 Shift display right 7 Shift display left 8 Display off, cursor off A Display off, cursor on Cc Display on, cursor off E Display on, cursor blinking F Display on, cursor blinking 10 Shift cursor position to left 14 Shift cursor position to right 18 Shift the entire display to the left 1C Shift the entire display to the right 80 Force cursor to beginning of 1st line CO Force cursor to beginning of 2nd line 38 2 lines and 5x7 matrix Note: This table is extracted from Table 12-4. => Led foteyarcthg +o BSI mideoconbroller @ Lop tN goS\ ar }——— wo | _—+ wl Rr @si “By "0 andejactrg a Led to Gost = © ad a Sosl C Psegrary to Send eter E & tc +o LOO using dlelouys sols” Ab Mclude Str Idata Oxo + ebh RG= p2ros Ieegestr a sen sau cbt eO= 2417! Reach? © wasie lO te ghee E> tas LP — sgh Votd Ledcmal Ceunsigned chan. 1) 8 Teta cured ME, 2 void delay Cursigned ° Yotd meta C) Lop : tdemd Cox363 1 & Hoes 5 5x9 sredkrte dommoand detoy (20)2 Leolemel Coxo8)ll AP5Pleg on, Ca otouy (950) 5 tedemd Coxol:| Cleas olsephy, Screen Clelcwy Caso) + teclurd (0x06): Increment Canses deleug (ad); od blinking Lccl cand —- Yutel PostHen fo ik: duiey so lcd a Ct e “ye yp aterpley Cher 'e) (aso) } - Leoldecta ('O: y display Chas © deleng (850) tora Lcolernal (ins saned ey , adota= velue 25-0 sfsetet Coromaned XY) Commer J pronon ewe =0 sl worse tp Led } ( = detox cs } E-0! outurn 4 Nord tecldata Cun'gned Chay vate) $a deta = Values Voai; Iselect cleda reg eiores If wale fo Lep } Erl) dole . Heindsed doy); i E=O; gututn: |/Setum diay Subrubhy . void deleug Curbed tnt count) f Uns tel Bde qved a | vis Pe ( Pres Fewurds Pt) Prk 48 (Jos Se2c@0s S44); % } © conte oo Bos] C Prigran fo Send mesege HELO” tp LCD Lofthoet usfiog cfelays Gold! oe Frncludle Cregsi xcly b> Ser data =0x90! cht RS= Fa%oy ope RD= PAS: spet = PA Notd leclemd Curbigned hag £); vord leddecta Cunsignec char 0): votd delay Cucsiqned Choa: Nord matin O F tedlerndl (0x38): keel cind ( 0x DE); Leclerel Co xo): led cro (©x08)! tedemd COK%), tcddata CH’): teddata Ce’): Loddlata ('L"), Ledoloda C'L): teddate ('o'): Ledlennd Cuenlgmect Chea. volt) idata ~ valu + RE=05 Rw =05 eE=U debory CY 4 eto: Sechuurn} 4 Noted ‘ord — Leddata unbigned Char value) {eee ts ew=05 Ext delery C) ; E=0; Sturn 5 } Vofd eal 0 olelew Cunssgnec/ fot Count) Urrigned fot P35 Ba (i205 2 court y Peay FA i035 Szao004 fry: an Of oo) D> wha ot £ ne Pec) rex se oe “am ware a BLP to Mnkcyce org 0000H - CV 6, #28: PULL COMmNWRT 2 pple. DELAY? mov 6, HOEHs BCALL Cormnoet 5 comtinucd AcALL DELAY: L mov 6, HOlH: ACeLL Comn WRT: Goer AcpLL DELAY: 1.8 mer mov PEPYS mov ® Hoeks SET PA:OS pcp Loco wRTe CLR Pals peer DELAY: coke ceTR PA.8) _mov BH CHWS po} PLAL DELAY; Pio Comnwets 7 CLR PA ALALL DELAY) a fen B HIN: oa does call OATPWeT: DELAY! mney 2tforrb Corot ACALL DELAY + eQ 4 1 . L[t tov OF FL pct mov &, #0'Y 3 C AcALL DATP WRT: Las byN2 Ra, LL PceLL ~DEL AY; oelosy pyn2 RIL) pypin STOP PYPIN; a ReT coranwkr: raov PLP & END ULR F210 5 7 cre fal: : GETR PAA Commend ecpu DELAY: woane CLR PIR! Peg Ret v Lep Fak erfecce 40 SSI m fro lonboller ee O worrle Cw) is) C Prqram to Send &) clfspleg wort” by frbaaahg LeP oltsplay to Gost anv‘Crecanheles aX Hele Lop a 3 she pe molt PS Avotha wtdlly uped dlewtce rot srarsiotep eleddcatd pubs foto mechanical movement. D> molwr has Q leads wve ¥ -ve, Conncets +o A HC Voltage supply moves meee lo One directo >* DC mote, moves Com -nuously . 4 TO Steppe, CREAR +he oo of Shep (an be counyed while Pr PS rot POBbIbe Py pc Trotettlon ankictececs Clover Me hy DE moist rotatbon ai —— {we batdye snotdi owiesatin) oh : of 44© snot oot Running HO - leerTixe he chveetion 4 +L aes Commie cuxetaiec +i) : na ee +g Invaled Stat (char cet) 7 “Bqaas Bhp ne He badge took. Confige ~yetlon , TH sors 08 Sux Avoltchep aod taped © Ave Claging ard opening oy These Aotthe. she ea ertper mrotali 8 clotsuofse = dtrectton. @ ant?clockwibe By A Switch \b Conmeeted Jo P?o pa. Wodte On EP prom to MOMMA the — Slacks OF Seo Ryd The — KolLocofn @ 4 qox0 , The BC wove Clockeotfe- © GQ, SW=1L the, MDISL KDOVEd CouMIt, LOCH 6 AN, ORG, 00H : nate cle eles Sworreh | Ae Pl) soter> UR PL2! switchs Q Pla! chy = Pa a auch tonnedel fe PAD monirpe. IN@ Par, CLocnvor SE seve PIO ———=— i Ts Ss pac Lrkeactng ® 7 THE Algal tog OO] CrveeL COBL tH a clewieg Wesley tcl $0 convent digitay Pubes ty Analog BM qnoals, > PACBOE, the digital opus ean ag Crvesteo +> Cusaent (Tour), & by Comme eHeg CL weassaot to -He Tout 9p, Convert try echo to Nolte. THE weyercote — easenr Croat) 1% oven by Mt Oe +Ds Duy oO} ol ap sat ty, OOH Be ha + Scope Voub=O dtp [ov BS)_NnicrotonbolleL __ Ste wave Use, DR [Link] a Gene recting 4 eo Program '_ tt Pnttucle Sey DACDATA = el; vod mati) Uebigned char Waveveis Dia= fie, 19, BBB, RIS ABE , 19, RE, 64, 19,0, 1,64)» vogiqned Chak Xs while Co { aA (xro. XC 1d. 5 X44) £ ppconm = wavevervELA)® } yo. ‘ soo & KH © Erpefo BAC FrLoyack wh a tod Bera amd ako wtle a Prey Fo Genero Grateaase Wove fein o. E S29 cretrcope axe oh Bo 5 ERE. Now 28S/e eas -> So, “he Rerenren OF each step PH SI. | WoT. FT > ata te peeattnues 6% Melua th Heached rye otpes dopa FO 2010 4 ne met uyes shoud . cw. EQv PO-0 eRG coco geTs SD, wo an RUE PAK CHECK: OY CSL trove Sto Fe ORY ore TC down toov B ,ttoo A=00, & 4o Pl moor PLAS DCPLL DELAY 1, TuH delay prog Hop Ail 4» cdd Sl to Jet vest Step mov PI, 8 3 atet Vertue to Pott | Aca peLPYs Adtey Pry ce ass. ReTH] “Cheue Hf B= 355) If rot Smnp CHEM ere down 4 END. coov & +0 Ol. RPT: @ peray . mov Ro, orth 1 RNOV et, hore b ul La: mo Ra, FOr i“ » DINE RQ, E 2 Delay Pr°GrAn» DNZ a, LQ DNZ RO LI RET END. @ when sw=!, Ane ‘mt ocetput_ gives a_phangutat Gl quo EGU PDO eavetvhnn ee Ry c000H 2ss ceva Sw CHECK, mow Cc, Sw Jo TRIANG pnov &) HOOK. TRING: mov AP, #00 Incr, mov pl A Inc # 1 Fou CINE Pr) HASS LINER | Cheb 8 ASS PE not por eit SHEP. verrent & FOL upwasd trarksian DECR: mov PLLA pec # CINE PA, Hoo, DEcR + clecremerr # Ae. low comp CHECK. oad cheek it Io eke create until) END. gto “ AOC Int eqace => wey with neat deagiam corte an assemby @ Larnquage Pregrcin tp Prteydte Poe koe to Gost mf Croconhvl/e_ eocowy |*™ Sot) BD. tn om pe RY eS ed 4 1. 08V. ae yi ; a A a _\ = forest uy ~~ L K———]oniR 8 Ge © HAs gosh Cone) 40 poles Lb Sey Usceing —— ORE, c000H eo eat pas PD eto we Bar PAL Tak RU 0. eoyomrs egy PL Pre so PLA — Bo-Ps Clerk roov pl FEO > MOKA prs frpud Pd sere ENTR COR OR SETH WOR HERE: TH INTR, HERE aR RD caoy , PAYDATH 5 scad data. ASCALL CONVERS ON sinex to PST Cond, DePLL Dap prspLAy » Aaplay +e clerk SETB RD 4 mate Wet pr ee comp BACK ach lode, Back!

You might also like