Theembeddedsystemsworldisfilledwithsensingand
measurementtechniquesthatpresentnon-linear
outputresults.Ifthesensingtechniqueiswellcharac-
terized,amathematicaltransferfunctioncanbeused
tocorrectandlinearizethesensoroutput.Inmany
cases,thesefunctionscontaincomplexpolynomialand
exponentialfunctions,placingagreatburdenonthe
programmemory,RAMandexecutionspeedofmost
low-costmicrocontrollers.
ThisapplicationnotewillexploreasimplePiecewise
LinearInterpolationtechniquethatisoftenemployedto
linearizeasensor'soutput.Thistechniquehasmany
advantagesinfasterexecutionspeedusingasimple
look-uptableandsignificantlyreducedprogram
memoryandRAMrequirements.However,this
techniquecanintroduceaconsiderableerrorcompo-
nentwithcertaintransferfunctions.Therefore,the
designengineerneedstounderstandthebenefitsand
limitationsofthistechnique,whichwillbeexplainedin
thisapplicationnote.AN942PiecewiseLinearInterpolationonPIC12/14/16SeriesMicrocontrollersEQUATION1:STEINHART-HARTAuthor:JohnDayandStevenBibleMicrochipTechnologyInc.1=A+B(1nR)+(1nR)3TKSolvingfortemperatureindegreesCelsi
暂无评论