现代电子技术
現代電子技術
현대전자기술
MODERN ELECTRONICS TECHNIQUE
2013年
17期
163-164
,共2页
单片机%复杂函数计算%插值法%查表法
單片機%複雜函數計算%插值法%查錶法
단편궤%복잡함수계산%삽치법%사표법
MCU%complicated function calculation%interpolation method%look-up table
单片机在移动设备中的应用越来越广泛,要求单片机具备的数据处理能力越来越强。但单片机的资源有限,如何让其能够解算复杂函数变得非常具有实际意义,也成为困扰许多专家的难题之一。介绍了一种在汇编环境下如何利用插值法与查表法相结合进行复杂三角函数运算的方法。利用这种算法可使三角函数的解算精度达到0.0001,存储空间减小了97%,对有关内容进行了比较全面的阐述。此方法计算精度高、应用范围广、易掌握。
單片機在移動設備中的應用越來越廣汎,要求單片機具備的數據處理能力越來越彊。但單片機的資源有限,如何讓其能夠解算複雜函數變得非常具有實際意義,也成為睏擾許多專傢的難題之一。介紹瞭一種在彙編環境下如何利用插值法與查錶法相結閤進行複雜三角函數運算的方法。利用這種算法可使三角函數的解算精度達到0.0001,存儲空間減小瞭97%,對有關內容進行瞭比較全麵的闡述。此方法計算精度高、應用範圍廣、易掌握。
단편궤재이동설비중적응용월래월엄범,요구단편궤구비적수거처리능력월래월강。단단편궤적자원유한,여하양기능구해산복잡함수변득비상구유실제의의,야성위곤우허다전가적난제지일。개소료일충재회편배경하여하이용삽치법여사표법상결합진행복잡삼각함수운산적방법。이용저충산법가사삼각함수적해산정도체도0.0001,존저공간감소료97%,대유관내용진행료비교전면적천술。차방법계산정도고、응용범위엄、역장악。
Since MCU is more and more widely used in mobile devices,its stronger data handling capacity is required,but the resources of MCU are limited. Therefore,how to make it resolve the complicated functions becomes very meaningful,and it also becomes one of the problems puzzling the experts. A kind of algorithm for operating the complicated trigonometric functions is introduced,which uses interpolation method and look-up table method in assemble language. The computational accuracy of this algorithm for the trigonometric function can reach 0.0001,and its memory space reduces 97%. The relevant content is elabo-rated fully in this paper. The method has high computational accuracy and wide application,and is easy to master.