欢迎访问ic37.com |
会员登录 免费注册
发布采购

AN1063D 参数 Datasheet PDF下载

AN1063D图片预览
型号: AN1063D
PDF下载: 下载PDF文件 查看货源
内容描述: 集成的处理器与DMA USERA ????手册 [Integrated Processor with DMA User’s Manual]
分类和应用:
文件页数/大小: 441 页 / 2488 K
品牌: FREESCALE [ Freescale ]
 浏览型号AN1063D的Datasheet PDF文件第165页浏览型号AN1063D的Datasheet PDF文件第166页浏览型号AN1063D的Datasheet PDF文件第167页浏览型号AN1063D的Datasheet PDF文件第168页浏览型号AN1063D的Datasheet PDF文件第170页浏览型号AN1063D的Datasheet PDF文件第171页浏览型号AN1063D的Datasheet PDF文件第172页浏览型号AN1063D的Datasheet PDF文件第173页  
Freescale Semiconductor, Inc.  
Table 5-14. Compressed Table Entries  
Entry Number  
X Value  
512  
Y Value  
1311  
2
3
786  
1966  
Since the table is reduced from 257 to 5 entries, independent variable X must be scaled  
appropriately. In this case the scaling factor is 64, and the scaling is done by a single  
instruction:  
LSR.W #6,Dx  
Thus, Dx now contains the following bit pattern:  
31  
16  
15  
0
0
0
NOT USED  
0
0
0
0
0
1
0
1
0
0
0
1
1
1
Table Entry Offset  
Dx [8:15] = $02 = 2  
Dx [0:7] = $8E = 142  
Interpolation Fraction  
Using this information, the table instruction calculates dependent variable Y:  
Y = 1331 + (142 (1966 – 1311)) / 256 = 1674  
The function chosen for Examples 1 and 2 is linear between data points. If another  
function had been been used, interpolated values might not have been identical.  
5.3.4.3 TABLE EXAMPLE 3: 8-BIT INDEPENDENT VARIABLE. This example shows  
how to use a table instruction within an interpolation subroutine. Independent variable X is  
calculated as an 8-bit value, allowing 16 levels of interpolation on a 17-entry table. X is  
passed to the subroutine, which returns an 8-bit result. The subroutine uses the data listed  
in Table 5-15, based on the function shown in Figure 5-9.  
5- 32  
MC68340 USER’S MANUAL  
MOTOROLA  
For More Information On This Product,  
Go to: www.freescale.com  
 复制成功!