tag 标签: 数学函数

相关资源
  • 所需E币: 3
    时间: 2019-12-24 20:51
    大小: 652.5KB
    上传者: 978461154_qq
    ThisapplicationnoteprovidessomeutilitymathroutinesforMicrochip’sPIC16C5XandPIC16CXXXseriesof8-bitmicrocontrollers.Thefollowingmathoutlinesareprovided:•8x8unsignedmultiply•16x16doubleprecisionmultiply•FixedPointDivision(Table3)•16x16doubleprecisionaddition•16x16doubleprecisionsubtraction•BCD(BinaryCodedDecimal)tobinaryconversionroutines•BinarytoBCDconversionroutines•BCDaddition•BCDsubtraction•SquarerootThesearewritteninnativeassemblylanguageandthelistingfilesareprovided.Theyarealsoavailableonadisk(MS-DOS).Alltheroutinesprovidedcanbecalledassubroutines.Mostoftheroutineshavetwodif-ferentversions:oneoptimizedforspeedandtheotheroptimizedforcodesize.Thecallingsequenceofeachroutineisexplainedatthebeginningofeachlistingfile.AN526PIC16C5X/PIC16CXXXMathUtilityRoutinesTABLE1:PERFORMANCESPECSAuthor:AmarPalacherlaMicrochipTechnologyInc.SpecProgramMemoryInstructionCyclesPLEASENOTE:ThisapplicationnoteusestheoldSpeedEfcient3537MicrochipMathRoutineformat.Itisintendedforref-CodeEfcient1671erencepurposesonlyandisbeingprovidedforthoseofyoustillimplementingBinaryCodedDeci-FIGURE1:FlowchartforUnsigned……
  • 所需E币: 4
    时间: 2019-12-24 21:18
    大小: 503.18KB
    上传者: 238112554_qq
    ThisapplicationnoteprovidessomeutilitymathroutinesforMicrochip'ssecondgenerationofhighperformance8-bitmicrocontroller,thePIC17C42.Threeassemblylanguagemodulesareprovided,namelyARITH.ASM,BCD.ASMandFXP–DIV.ASM.Currentlyineachfilethefollowingsubroutinesareimplemented:AN544MathUtilityRoutinesAsmoreroutinesareavailable,theywillbeaddedtotheAuthor:AmarPalacherlalibrary.ThelatestroutinesmaybeobtainedeitherMicrochipTechnologyInc.throughMicrochip'sbulletinboardorbycontactingyournearestMicrochipsalesofceforacopyonaINTRODUCTIONMS-DOSoppy.PLEASENOTE:ThisapplicationnoteusestheoldThesero……