首页 | 本学科首页   官方微博 | 高级检索  
     

Q格式编程在TMS320F2812中的应用
引用本文:金彧,;许海洪,;金克一.Q格式编程在TMS320F2812中的应用[J].电脑开发与应用,2014(8):50-52.
作者姓名:金彧  ;许海洪  ;金克一
作者单位:[1]北方自动控制技术研究所,太原030006; [2]武汉华工新高理电子有限公司,武汉430074; [3]武汉重工铸锻有限责任公司,武汉430084
摘    要:TMS320F2812是目前控制领域先进的定点处理器之一,它有着大量地应用。然而,当其面临浮点运算时,往往会耗费更多的资源,使运算时间增加。使用Q格式,将浮点数采用定点表示,可缩短运算时间。但是,采用定点格式表示的数在范围与精度上存在矛盾,使得程序变得复杂,通用性低。正基于此,TI公司提供了IQmath库,利用该库中的函数,使运算速度快于标准C语言的浮点运算,同时具有可读性强及编程简单的特点。在介绍IQmath的基础上,以一个已经运用于实际的坐标解算程序为例,体现基于IQmath编程的优点。

关 键 词:TMSF  定点运算  Q格式

Application of Q Format Program in TMS320F2812
Affiliation:JIN Yu, XU Hai-hong, JIN Ke-yi (1.North Automatic Control Technique Institute, Taiyuan 030006, China; 2. Wuhan Huagong Xingaoli Electron Co.,Ltd, Wuhan 430074, China;3.Wuhan Heavy Industry Casting &forging Co.,Ltd, Wuhan 430084, China)
Abstract:TMS320F2812 is the advanced fixed-point processor, which has widely used in the control area. However, when it meets float-point calculation, it will cost more resource of the hardware, making the calculation time longer. By means of Q format, the float-point data could be expressed by the fixed-point data. It will shorten the calculation time. But, when using fixed-point, the data’s range and precision have a conflict, and making the program more complicated. On the basis of that,TI Company provided IQmath library, using the function in that library, making it calculate faster than the standard C float-point’s. In addition, it has characteristic of readable and easily etc. After introducing IQmath, taking Coordinates Conversion Arithmetic as an example to present IQmath’s virtue.
Keywords:fixed-point calculation  Q format
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号