Page 13 - Making PIC Microcontroller Instruments and Controllers
P. 13
indcpcndent distribubrs al1 ovcr the $orld. Thc llrst haifof bolh books are simil.f in
thal ftcy both concenlralc on lhe proledies of thc nicrocontfoller. bul the first book
lvill be much easier for you i[]ou are a norice. This sccond book is targctcd at readeN
who tind ny Tnotul a d Resourc? Book.l)r the LAB Xl too btNic for lbcir needs
Though this book covcls the b sic propcrtics ofthe 16f877A. it does nol li gcr on
lirndamental expl.malions and techniques. This lcxt delves inlo advanced techniqucs
nd grciltcf integrution and so is more suilablc lbr thc advrrced engirccr the univer
sily slLldcnl. the techniciln, and lhc amateuf enginccr/hobbyist.
j
(o
ol
This booli is not ciesigrl,rd rnrkc you xn expcn nrichine hngurgc progritnrming
11 is dcsigned to gi!e
to preparc yolr to becont a lcohnical cxJ)elt on ['IC l ricioprcccsso|s.
you n solid u dcKtandins of lvhal lhcsc logical engine\ cln do tbr you in fic l$out l/
llcld and to show you how you crn usc (hcrn 10 do it. I will covcr cvefything i r non-
rnalhcnraticrl. evcn so cwhal nontechnicll lo n.rL. so if yotr halc a lrrininrnl Ltndcr
(o
slirnding ofthings bolh Incchanical and elcctRtlic. you can usc lhcsc rnicrocontrcllcrs
do usclul work. With this i0 rnincl. I hrve conccrrtrirlcd on using lhc PICBASIC I'RO
Couipilcf providcd by lhe InLrnulrclurc|ls ol-lhc borl(l lo gcne rle thc rlrscnrbly-lclci
il:rchinc codc nthcf thiu spcn(l liluc tcnching yoLr how lo usc lNsenlbly hnguagc lhc
.llld vcry
conpilor uscs u dirlcct oI BASIC lhrl is c.rsy to urxlcrslrrn(l Powcdll in thal il
docs Ncfylhing you nccrl Llonc in lhc corrlcxl o l- pr\)gfunrn irrg thc l)l(l urio()p()ccssors
Thc codc gcncflrLcd is hoth conlplLcl Lrnd liNl. Thclc fc tinrcs whclr rsscnllty liugLlrrgc
suhrl)u(irrcs can bc l(ldc(llo lhc p()grlnnmiug lo nrulic nrr osPccilllly cilicrl trlsk oxcctrlc
lirslcr, and il you rrcc(l () (io this.lhc conrpilcr irlk)ws il rn(lollofs llnrplc irllb n li( on
rhc subjcc(. This workbook docs nol covcr rsscurbl], lllngu.tgc of lhc C' langurlgc.
'l'hc
sccon(l pn ol lhis book lcrrchci you dboul building brsio nlicr1)conlrcllcr
you
nrrd coDt()llofs
basc(l insr|rrmcnLs by showir)g how lo build cighl scParaLc dcviccs
dcsigned lo hcll you (lcrl wilh tcal-wo d silulltions i rd clch
Thcsc cight pfoiects.trc
o|lc conccntlales on ()l)c ilspcct ol lhc LechDiqucs uscd to nlrkc cLrlllfollcfs ltnd instl'tl
mcnts. Scnsoft of vllious ki ds rrc ulilized lo scc holv thcy can bc trscd with micra!
contrcllcrs 1o gct rhe rcsulls you want. A detlilcd discussion of lhe pfolrlcnrq th.tl rvill
be eDcountcrcd, holv they Dray bc sol!cd, afe includcd.
ancl
The workboLrk sLar'rs out wifi thc constnrclior of a Prcgr nrrnable trlohorrolcr tll.l1
cotrnling
tcrchcs you nbout lhc mos! fundamcDtrrl lcchniques used in microprocess(ns:
pulscs. lt nlso colers thc Lrsc of seven-seg cnl displrys. so you $ill be coDrfort.lblc
usirg thcm since they ar! usually the besl solulion lb nininral displays Hrving n:rs
ercd thc lcchniques covercd in this cxcrcisc. you will bc,rblc to inted ce lo all scnsoN/
sources thal prolidc pulsed signals.
The ability to rcid rcal-wofld inputs and control fe.rl-workl outputs is conbincd 1(l
lirst cfcate simple inlcraclions. and then norc lophisticlted oncs. An enlite chaPlcr is
dcvolcd io feading input\ oi all kiods. In this chaptcr yor will lind tlc infofnadon
nccdcd to intedace your MCt-l to the kinds oflhings you find in your hone rnd olice.
as wcll as in the engirccrirg labofatofy. Both rc ,tnd dc signals arc corcrcd so you can
bring thc infofrration into thc MCLJ no maiter $hallhe source.
Anothcr cntjfe chrpter is dclolcd !o contfolliDg outpuls of rll kinds. The chapter
gives you |he infbrmation you need lC) control the real world with .u MCU. Both low-
cunent TTL deviccs and high-cutTent solid slatc switches trnd rcla,vs are colercd