IQ格式说明

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

©TexasInstrumentsInc.,June2002Version1.4.1IQmathLibraryAVirtualFloatingPointEngineModuleuser’sGuideC28xFoundationSoftware©TexasInstrumentsInc.,June2002Version1.4.1RevisionHistoryVersionDateCommentV1.4.1June24,2002OriginalDraftReleaseV1.4dMarch30,2003CorrectederrorinIQNfracfunctiondescription©TexasInstrumentsInc.,June2002Version1.4.1IMPORTANTNOTICETexasInstrumentsanditssubsidiaries(TI)reservetherighttomakechangestotheirproductsortodiscontinueanyproductorservicewithoutnotice,andadvisecustomerstoobtainthelatestversionofrelevantinformationtoverify,beforeplacingorders,thatinformationbeingreliedoniscurrentandcomplete.Allproductsaresoldsubjecttothetermsandconditionsofsalesuppliedatthetimeoforderacknowledgement,includingthosepertainingtowarranty,patentinfringement,andlimitationofliability.TIwarrantsperformanceofitssemiconductorproductstothespecificationsapplicableatthetimeofsaleinaccordancewithTI’sstandardwarranty.TestingandotherqualitycontroltechniquesareutilizedtotheextentTIdeemsnecessarytosupportthiswarranty.Specifictestingofallparametersofeachdeviceisnotnecessarilyperformed,exceptthosemandatedbygovernmentrequirements.CustomersareresponsiblefortheirapplicationsusingTIcomponents.Inordertominimizerisksassociatedwiththecustomer’sapplications,adequatedesignandoperatingsafeguardsmustbeprovidedbythecustomertominimizeinherentorproceduralhazards.TIassumesnoliabilityforapplicationsassistanceorcustomerproductdesign.TIdoesnotwarrantorrepresentthatanylicense,eitherexpressorimplied,isgrantedunderanypatentright,copyright,maskworkright,orotherintellectualpropertyrightofTIcoveringorrelatingtoanycombination,machine,orprocessinwhichsuchproductsorservicesmightbeorareused.TI’spublicationofinformationregardinganythirdparty’sproductsorservicesdoesnotconstituteTI’sapproval,license,warrantyorendorsementthereof.ReproductionofinformationinTIdatabooksordatasheetsispermissibleonlyifreproductioniswithoutalterationandisaccompaniedbyallassociatedwarranties,conditions,limitationsandnotices.RepresentationorreproductionofthisinformationwithalterationvoidsallwarrantiesprovidedforanassociatedTIproductorservice,isanunfairanddeceptivebusinesspractice,andTIisnotresponsibleorliableforanysuchuse.ResaleofTI’sproductsorserviceswithstatementsdifferentfromorbeyondtheparametersstatedbyTIforthatproductsorservicevoidsallexpressandanyimpliedwarrantiesfortheassociatedTIproductorservice,isanunfairanddeceptivebusinesspractice,andTIisnotresponsiblenorliableforanysuchuse.Alsosee:StandardTermsandConditionsofSaleforSemiconductorProducts.:TexasInstrumentsPostOfficeBox655303Dallas,Texas75265Copyright©2002,TexasInstrumentsIncorporated©TexasInstrumentsInc.,June2002Version1.4.1TrademarksTMS320isthetrademarkofTexasInstrumentsIncorporated.AllothertrademarkmentionedhereinarepropertyoftheirrespectivecompaniesAcronymsxDAIS:eXpressDSPAlgorithmInterfaceStandardIALG:AlgorithminterfacedefinesaframeworkindependentinterfaceforthecreationofalgorithminstanceobjectsSTB:SoftwareTestBenchIQmath:HighAccuracyMathematicalFunctions(32-bitimplementation).QMATH:FixedPointMathematicalcomputationCcA:C-CallableAssemblyFIR:FiniteImpulseResponseFilterIIR:InfiniteImpulseResponseFilterFFT:FastFourierTransform©TexasInstrumentsInc.,June2002Version1.4.1CCCooonnnttteeennntttsss1.Introduction……………....................................................................................................12.InstallingIQmathlibrary…………….................................................................................23.UsingIQmathLibrary…………….....................................................................................33.1.IQmathArgumentsandDatatypes.……………...........................................................33.2.IQmathDataType:Range&Resolution.……………....................................................43.3.CallingIQmathFunctionfromCProgram.……………..................................................53.4.IQmathFunctionNamingConvention…………….......................................................63.5.SelectingGLOBAL_Qformat……………...................................................................63.6.UsingIQmathGELfileforDe-bugging……………......................................................74.IQmathFunctionSummary……………............................................................................95.IQmathFunctionDescription.…………….....................................................................135.1.FormatConversionutilitis.……………....................................................................145.1.1.IQN:FloattoIQNdatatype……………............................................................145.1.2.IQNtoF:FloattoIQNdatatype……………........................................................155.1.3.atoIQN:StringtoIQNdatatype……………......................................................165.1.4.IQNint:IntegerpartofIQNnumber……………..................................................175.1.5.IQNfrac:FractionalPartofIQNnumber……………..........................................185.1.6.IQtoIQN:GLOBAL_Qn

1 / 73
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功