����������������������������������������������������������LakeviewResearchLLCMadison,WI53704USBComplete:TheDeveloper’sGuide,FourthEditionbyJanAxelsonCopyright1999-2009byJanetL.AxelsonAllrightsreserved.Nopartofthecontentsofthisbook,excepttheprogramcode,maybereproducedortransmittedinanyformorbyanymeanswithoutthewrittenpermissionofthepublisher.Theprogramcodemaybestoredandexecutedinacomputersystemandmaybeincorporatedintocomputerpro-gramsdevelopedbythereader.Theinformation,computerprograms,schematicdiagrams,documentation,andothermaterialinthisbookareprovided“asis,”withoutwarrantyofanykind,expressedorimplied,includingwithoutlimitationanywarrantyconcerningtheaccuracy,adequacy,orcompletenessofthematerialortheresultsobtainedfromusingthematerial.Neitherthepublishernortheauthorshallberesponsibleforanyclaimsattributabletoerrors,omissions,orotherinaccuraciesinthematerialinthisbook.Innoeventshallthepublisherorauthorbeliablefordirect,indi-rect,special,incidental,orconsequentialdamagesinconnectionwith,orarisingoutof,theconstruction,performance,orotheruseofthematerialscontainedherein.Manyoftheproductsandcompanynamesmentionedhereinarethetrademarksoftheirrespectiveholders.PICandMPLABareregisteredtrademarksofMicro-chipTechnologyInc.intheU.S.A.andothercountries.PICBASICPROisatrademarkofMicrochipTechnologyInc.intheU.S.A.andothercountries.PublishedbyLakeviewResearchLLC,5310ChinookLn.,MadisonWI53704www.Lvr.comDistributedbyIndependentPublishersGroup(ipgbook.com).1413121110987654321PrintedandboundintheUnitedStatesofAmericaISBN13978-1-931448-08-6iiiContents����������������������������������������������������������������������������������������������������������������������������������������BenefitsforUsers...................................2BenefitsforDevelopers...............................5Wha...