文件名称:TxNBModIQ
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.71kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
在sinx函数实现的时候,请注意以下几点:
假设输入数据x=tπ时
2. t的范围为(-1,...,1),即输入角度为(-π,…, π),对应在dsp中用(8000h,...,7FFFh)表示。根据sin函数的单调性,将(0——π/2)等分为128个间隔,计算出各个离散点的sin值存于表_SinTab,最后根据输入的t值查表找到最接近的值得到输出结果。
3. 判断sinx输出值的正负情况。t的范围为(-1,...,1),对应在dsp中用(8000h,...,7FFFh)表示,可见最高比特表示角度x大小为(-π,…,0)或者(0,…, π),因此可以由输入值的最高比特对第2步的数据进行处理:当最高比特为1,sinx=-sin (x̃ ),否则sinx=sin (x̃ )。
-When implemented in the sinx function, please note the following: Suppose the input data x = tπ Time 2. T the range of (-1 ,..., 1), which enter the angle (-π, ..., π), corresponds to the dsp using (8000h ,..., 7FFFh) said. According to the monotonicity of sin function will be (0- π/2) and so is divided into 128 intervals, calculated the value of each discrete point of sin exist in the table _SinTab, the final value of the input of t is worth look-up table to find the closest to the output. 3. Determine the output value of the positive and negative situations sinx. t in the range (-1 ,..., 1), corresponding to the dsp using (8000h ,..., 7FFFh) that can be seen that the maximum bit size of angle x (-π, ..., 0) or (0 , ..., π), so the maximum value can be entered on Step 2 bits of data for processing: When the highest bit is 1, sinx =- sin (x), or sinx = sin (x).
假设输入数据x=tπ时
2. t的范围为(-1,...,1),即输入角度为(-π,…, π),对应在dsp中用(8000h,...,7FFFh)表示。根据sin函数的单调性,将(0——π/2)等分为128个间隔,计算出各个离散点的sin值存于表_SinTab,最后根据输入的t值查表找到最接近的值得到输出结果。
3. 判断sinx输出值的正负情况。t的范围为(-1,...,1),对应在dsp中用(8000h,...,7FFFh)表示,可见最高比特表示角度x大小为(-π,…,0)或者(0,…, π),因此可以由输入值的最高比特对第2步的数据进行处理:当最高比特为1,sinx=-sin (x̃ ),否则sinx=sin (x̃ )。
-When implemented in the sinx function, please note the following: Suppose the input data x = tπ Time 2. T the range of (-1 ,..., 1), which enter the angle (-π, ..., π), corresponds to the dsp using (8000h ,..., 7FFFh) said. According to the monotonicity of sin function will be (0- π/2) and so is divided into 128 intervals, calculated the value of each discrete point of sin exist in the table _SinTab, the final value of the input of t is worth look-up table to find the closest to the output. 3. Determine the output value of the positive and negative situations sinx. t in the range (-1 ,..., 1), corresponding to the dsp using (8000h ,..., 7FFFh) that can be seen that the maximum bit size of angle x (-π, ..., 0) or (0 , ..., π), so the maximum value can be entered on Step 2 bits of data for processing: When the highest bit is 1, sinx =- sin (x), or sinx = sin (x).
(系统自动生成,下载前可以参看下载内容)
下载文件列表
TxNBModIQ.asm
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.