文件名称:TxNBModIQ
介绍说明--下载内容均来自于网络,请自行研究使用
在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