没有合适的资源?快使用搜索试试~ 我知道了~
IQmath使用说明.
资源详情
资源评论
资源推荐
Texas Instruments Inc., June 2002 Version 1.4.1
IQmath Library
A Virtual Floating Point Engine
Module user’s Guide
C28x Foundation Software
Texas Instruments Inc., June 2002 Version 1.4.1
Revision History
Version Date Comment
V1.4.1 June 24, 2002 Original Draft Release
V1.4d March 30, 2003 Corrected error in IQNfrac function
description
Texas Instruments Inc., June 2002 Version 1.4.1
IMPORTANT NOTICE
Texas Instruments and its subsidiaries (TI) reserve the right to make changes to their products or
to discontinue any product or service without notice, and advise customers to obtain the latest
version of relevant information to verify, before placing orders, that information being relied on is
current and complete. All products are sold subject to the terms and conditions of sale supplied at
the time of order acknowledgement, including those pertaining to warranty, patent infringement,
and limitation of liability.
TI warrants performance of its semiconductor products to the specifications applicable at the time
of sale in accordance with TI’s standard warranty. Testing and other quality control techniques
are utilized to the extent TI deems necessary to support this warranty. Specific testing of all
parameters of each device is not necessarily performed, except those mandated by government
requirements.
Customers are responsible for their applications using TI components.
In order to minimize risks associated with the customer’s applications, adequate design and
operating safeguards must be provided by the customer to minimize inherent or procedural
hazards.
TI assumes no liability for applications assistance or customer product design. TI does not
warrant or represent that any license, either express or implied, is granted under any patent right,
copyright, mask work right, or other intellectual property right of TI covering or relating to any
combination, machine, or process in which such products or services might be or are used. TI’s
publication of information regarding any third party’s products or services does not constitute TI’s
approval, license, warranty or endorsement thereof.
Reproduction of information in TI data books or data sheets is permissible only if reproduction is
without alteration and is accompanied by all associated warranties, conditions, limitations and
notices. Representation or reproduction of this information with alteration voids all warranties
provided for an associated TI product or service, is an unfair and deceptive business practice,
and TI is not responsible or liable for any such use.
Resale of TI’s products or services with statements different from or beyond the parameters
stated by TI for that products or service voids all express and any implied warranties for the
associated TI product or service, is an unfair and deceptive business practice, and TI is not
responsible nor liable for any such use.
Also see: Standard Terms and Conditions of Sale for Semiconductor Products.
www.ti.com/sc/docs/stdterms.htm
Mailing Address:
Texas Instruments
Post Office Box 655303
Dallas, Texas 75265
Copyright 2002, Texas Instruments Incorporated
Texas Instruments Inc., June 2002 Version 1.4.1
Trademarks
TMS320 is the trademark of Texas Instruments Incorporated.
All other trademark mentioned herein are property of their respective companies
Acronyms
xDAIS : eXpress DSP Algorithm Interface Standard
IALG : Algorithm interface defines a framework independent interface for the creation of
algorithm instance objects
STB : Software Test Bench
IQmath: High Accuracy Mathematical Functions (32-bit implementation).
QMATH: Fixed Point Mathematical computation
CcA : C-Callable Assembly
FIR : Finite Impulse Response Filter
IIR : Infinite Impulse Response Filter
FFT : Fast Fourier Transform
Texas Instruments Inc., June 2002 Version 1.4.1
C
C
C
o
o
o
n
n
n
t
t
t
e
e
e
n
n
n
t
t
t
s
s
s
1. Introduction……………....................................................................................................1
2. Installing IQmath library…………….................................................................................2
3. Using IQmath Library…………….. ...................................................................................3
3.1. IQmath Arguments and Data types. …………….. .........................................................3
3.2. IQmath Data Type: Range & Resolution. ……………....................................................4
3.3. Calling IQmath Function from C Program. …………….. ................................................5
3.4. IQmath Function Naming Convention …………….. .....................................................6
3.5. Selecting GLOBAL_Q format …………….. .................................................................6
3.6. Using IQmath GEL file for De-bugging ……………......................................................7
4. IQmath Function Summary…………….. ..........................................................................9
5. IQmath Function Description. …………….. ...................................................................13
5.1. Format Conversion utilitis. ……………....................................................................14
5.1.1. IQN: Float to IQN data type ……………............................................................14
5.1.2. IQNtoF: Float to IQN data type ……………........................................................15
5.1.3. atoIQN: String to IQN data type …………….. ....................................................16
5.1.4. IQNint: Integer part of IQN number ……………..................................................17
5.1.5. IQNfrac: Fractional Part of IQN number …………….. ........................................18
5.1.6. IQtoIQN: GLOBAL_Q number to IQN number …………….. ................................19
5.1.7. IQNtoIQ: IQN number to GLOBAL_Q number …………….. ...............................20
5.1.8. IQtoQN: GLOBAL_Q number to 16-bit QN number ……………...........................21
5.1.9. QNtoIQ: 16-bit QN number to GLOBAL_Q number …………….. ........................22
5.2. Arithmatic Functions. ……………............................................................................23
5.2.1. IQNmpy: IQ multiplication (IQN * IQN) …………….. ..........................................23
5.2.2. IQNrmpy: IQ multiplication with rounding (IQN*IQN) …………….. .......................24
5.2.3. IQNrsmpy: IQ multiplication with rounding & saturation (IQN*IQN)…………….….25
剩余72页未读,继续阅读
浪子寒烟
- 粉丝: 253
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0