1. 首页
  2. 课程学习
  3. 嵌入式
  4. 快速整数平方根

快速整数平方根

上传者: 2022-10-11 21:12:50上传 PDF文件 182.06 KB 热度 20次

Oneverycommonandrelativelyquickmethodforfind-

ingthesquarerootofanumberistheNewton-Raphson

method.Althoughthismethodisquickintermsof

mathematics,italsorequiresextensiveuseofdivision

toproduceresults,usuallyiteratingmanytimes.Inthe

PIC18CXX2microcontrollerfamily,thoughnotdifficult,

divisiondoesrequiresseveralbasicoperations.How-

ever,withthehelpofthesinglecyclehardwaremulti-

plier,oneofthemanynicefeaturesinthePIC18CXX2

andtheuseofatechniquedifferentfromtheNewton-

Raphsonmethod,divisionisavoided.ThefollowingTB040FastIntegerSquareRootalgorithmdemonstrateshowthesinglecyclemultiplierAuthor:RossM.FoslerisusefulincalculatingasquarerootandatthesameMicrochipTechnologyInc.time,saveprocessortime.THEALGORITHMINTRODUCTIONUsingthebinarynatureofthemicrocontroller,theOneverycommonandrelativelyquickmethodforfind-squarerootofaf

用户评论