一种查表与插值法在微控制器中的实现  被引量:1

Implementation of a look-up table and interpolation in micro controller

在线阅读下载全文

作  者:史永胜[1] 胡双[1] 许梦芸 王喜锋[1] 

机构地区:[1]陕西科技大学电气与信息工程学院,陕西西安710021

出  处:《陕西科技大学学报(自然科学版)》2015年第2期148-153,共6页Journal of Shaanxi University of Science & Technology

基  金:陕西省教育厅专项科研计划项目(12JK0494);陕西科技大学博士科研启动基金项目(BJ08-07)

摘  要:在微控制器中断程序中,大量的长时间计算是不可取的.为了提高计算效率,提出了一种在软件上将调用编译器中函数库求解复杂函数的方法,改为查表与插值的方法.这种查表插值方法的引入,在理论上能提高编译器在该段程序的编译效率和程序在微控制器中的执行速度,具有高效性.本文以STM32F407VGT6微控制器为硬件平台,设计了控制变量法的对比实验.结果表明,该方法能有效减少程序运行时间,适用于大多复杂函数,并且适用于不同主频的微控制器,从而验证了该方法的通用性与高效性.A huge amount of computations with a long time are not desirable in micro controller interrupt program.In order to improve the computational efficiency,a method is proposed that calling the compiler function library for the complex function is changed into a look-up table and interpolation in the software.The introduction of the look-up table and interpolation method can improve the efficiency of the compiler in the program and the program′s execution speed in the micro controller,it has a high efficiency.In this paper,the micro controller STM32F407VGT6 is treated as the hardware platform,and it designs variable method of the contrast experiment.The results show that the method can effectively reduce the running time of the program,and it is suitable for most complex functions and micro controllers with different frequency,it verifies the method′s universality and high efficiency.

关 键 词:查表 插值 微控制器 计算速度 计算精度 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论] TP332[自动化与计算机技术—计算机科学与技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象