pdf

TI的IQmathlib库

  • 1星
  • 日期: 2016-01-18
  • 大小: 614.29KB
  • 所需积分:2分
  • 下载次数:26
  • favicon收藏
  • rep举报
  • 分享
  • free评论
标签: TIIQmath

介绍TI DSP中的IQ用法

文档内容节选

C28x IQmath Library A Virtual Floating Point Engine V15c June 6 2010 Module users Guide SPRC990 C28x Foundation Software Texas Instruments Inc 20022010 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 info......

C28x IQmath Library A Virtual Floating Point Engine V1.5c June 6, 2010 Module user’s Guide (SPRC990) C28x Foundation Software Texas Instruments Inc., 2002-2010 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., 2002-2010 2 Trademarks TMS320 is the trademark of Texas Instruments Incorporated. All other trademarks mentioned herein are property of their respective companies Acronyms C28x+FPU: Refers to devices with the C28x plus floating-point-unit. IQmath: High Accuracy Mathematical Functions (32-bit implementation). QMATH: Fixed Point Mathematical computation Texas Instruments Inc., 2002-2010 3 Chapter 1. Introduction ............................................................................................. 6 1.1. Introduction................................................................................................................. 6 Chapter 2. Installing the IQmath Library .................................................................. 7 2.1. IQmath Package Contents .......................................................................................... 7 2.2. How to Install the IQmath Library ............................................................................ 8 Chapter 3. Using the IQmath Library ........................................................................ 9 3.1. IQmath Arguments and Data Types ........................................................................... 9 3.2. IQmath Data type: Range & Resolution................................................................... 10 3.3. Calling an IQmath Function from C ........................................................................ 11 3.4. Calling an IQmath function from C++ ..................................................................... 11 3.5. IQmath Section and Lookup Tables ......................................................................... 12 3.6. Accessing IQmath Functions in the Boot ROM ....................................................... 16 3.7. IQmath Naming Conventions ................................................................................... 19 3.8. Selecting the GLOBAL_Q format ............................................................................ 20 3.9. Using the IQmath GEL file for Debugging ............................................................... 21 3.10. Converting an IQmath Application to Floating-Point .......................................... 23 3.11. The IQmath C-Calling Convention ....................................................................... 23 Chapter 4. Libraries Available ................................................................................. 24 Chapter 5. Function Summary ................................................................................ 25 5.1. Arguments and Conventions Used ............................................................................ 25 5.2. IQmath Function Overview ...................................................................................... 26 Format conversion Utilities ............................................................................................ 26 Shift to Multiply or Divide by Powers of 2 ....................................................................... 26 Arithmetic Operations ................................................................................................... 27 Trigonometric Functions: ............................................................................................... 27 Mathematical Functions: ............................................................................................... 28 Miscellaneous ............................................................................................................... 28 5.3. C28x IQmath Library Benchmarks.......................................................................... 29 Chapter 6. Function Descriptions ............................................................................ 31 6.1. Conversion Utilities ................................................................................................... 31 IQN ............................................................................................................................... 31 IQN ............................................................................................................................... 31 IQNtoF .......................................................................................................................... 33 atoIQN .......................................................................................................................... 34 IQNtoa .......................................................................................................................... 35 IQNint ........................................................................................................................... 37 IQNfrac ......................................................................................................................... 38 IQtoIQN ........................................................................................................................ 39 IQNtoIQ ........................................................................................................................ 40 Texas Instruments Inc., 2002-2010 4 IQtoQN ......................................................................................................................... 41 QNtoIQ ......................................................................................................................... 42 6.2. Shift to Multiply or Divide by Powers of 2 ............................................................... 43 IQmpy2, 4, 8…64 .......................................................................................................... 43 IQdiv2, 4, 8…64 ............................................................................................................ 44 6.3. Arithmetic Operations .............................................................................................. 45 IQNmpy ........................................................................................................................ 45 IQNrmpy ....................................................................................................................... 46 IQNrsmpy ..................................................................................................................... 47 IQNmpyI32 ................................................................................................................... 48 IQNmpyIQX .................................................................................................................. 51 IQNdiv .......................................................................................................................... 52 6.4. Trigonometric Functions........................................................................................... 55 IQNasin ........................................................................................................................ 55 IQNsin .......................................................................................................................... 56 IQNsinPU ..................................................................................................................... 58 IQNacos ....................................................................................................................... 60 IQNcos ......................................................................................................................... 61 IQNcosPU .................................................................................................................... 63 IQNatan2 ...................................................................................................................... 65 IQNatan2PU ................................................................................................................. 67 IQNatan ........................................................................................................................ 69 6.5. Mathematical Utilities ............................................................................................... 70 IQNexp ......................................................................................................................... 70 IQNsqrt ......................................................................................................................... 71 IQNisqrt ........................................................................................................................ 73 IQNmag ........................................................................................................................ 76 B .................................................................................................................................. 76 A .................................................................................................................................. 76 6.6. Miscellaneous Utilities ............................................................................................... 77 IQNabs ......................................................................................................................... 77 IQsat ............................................................................................................................ 78 Chapter 7. Revision History ..................................................................................... 79 Texas Instruments Inc., 2002-2010 5
更多简介内容

推荐帖子

电源的PWM与PFM区别
科技的发展产生了很多的电源设计者,从事开关电源工作的工程师们,说到PWM与PFM两种控制技术应该是在熟悉不过了。他们分别在开关电源里面起着怎么的作用,占有怎样的地位?   开关电源的控制技术主要有三种:(1)脉冲宽度调制(PWM);(2)脉冲频率调制(PFM);(3)脉冲宽度频率调制(PWM-PFM).   PWM:(pulse width modulation)脉冲宽度调制  
fish001 【模拟与混合信号】
CC2630 TIMAC协议栈低功耗问题
项目功能: 采集5s数据发送——休眠5s——采集5s数据发送,循环往复 平台: CC2630 协议栈:timac_1_05_02_43299   问题描述:  在休眠5s的过程中,整体电流在7,8ma,只比数据发送低1ma,这是不科学的。验证没有event在跑的时候   是可以到3,400ua的电流消耗的(主要是板子上的传感器功耗)。   看了TI的
fish001 【无线连接】
霍尔电流传感器在电信整流器和服务器电源中的应用
电信整流器和服务器电源单元(PSU)中的功率因数校正(PFC)电路和逆变电路都需要将高压侧的电流信号检测到位于低压侧的控制器,因此要用到隔离式电流传感器。隔离式电流检测有多种实现方式,例如电流互感器(CT)、隔离放大器和霍尔效应电流传感器。其中,霍尔效应电流传感器因其简便易用、准确、体积小且具有直流检测能力,成为比较理想的选择。 电流互感器是基于变压器的原理对电流进行采样,使用CT可以检测M
alan000345 【微控制器 MCU】
STM32L151读取W25Q16的ID错误,请帮忙看看是什么原因
使用STM32L151的SPI2读取W25Q16的ID错误,返回总是0xFFFF,请帮忙看看代码是什么原因。代码参考的是正点原子的。 void SPI2_Init(void) { SPI_InitTypeDef SPI_InitStructure; GPIO_InitTypeDef GPIO_InitStructure; ////SPI Set PB13,14,
dianhang 【stm32/stm8】
走线不走心,迟早会返工
作者 | 姜杰(一博科技高速先生团队队员)   走线熙熙,汲汲交期;走线攘攘,亟亟归档。 项目伊始,高速先生的内心其实是抗拒的,因为实在看不出仿真的必要:目标信号是DDR3L,数据速率最高800Mbps,地址控制类信号走线拓扑为一拖二、T型拓扑。信号普通、速率寻常、拓扑简单。 架不住客户的一再坚持,加上前期项目介入阶段,客户言辞闪烁,提供PCB文件时也不大爽快,似乎有难
yvonneGan PCB设计
TM4C123GH6PZ单片机烧写HEX文件错误
用JFLASH烧写时出现如下错误:   End of preparing flash programming  - Start of determining dirty areas in flash cache  - End of determining dirty areas  - CPU is running at 15844 kHz.  - Start of erasin
kbbwww1 【微控制器 MCU】

评论

登录/注册

意见反馈

求资源

回顶部

datasheet推荐 换一换

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版 版权声明

北京市海淀区知春路23号集成电路设计园量子银座1305 电话:(010)82350740 邮编:100191

电子工程世界版权所有 京ICP证060456号 京ICP备10001474号 电信业务审批[2006]字第258号函 京公海网安备110108001534 Copyright © 2005-2020 EEWORLD.com.cn, Inc. All rights reserved
$(function(){ var appid = $(".select li a").data("channel"); $(".select li a").click(function(){ var appid = $(this).data("channel"); $('.select dt').html($(this).html()); $('#channel').val(appid); }) })