Motorola Espresso Maker MC68340 ユーザーズマニュアル

ページ / 441
5- 30
MC68340 USER’S MANUAL
MOTOROLA
Two additional examples show how TBLSN can reduce cumulative error when multiple
table lookup and interpolation operations are used in a calculation. Example 4
demonstrates addition of the results of three table interpolations. Example 5 illustrates use
of TBLSN in surface interpolation.
5.3.4.1 TABLE EXAMPLE 1: STANDARD USAGE. The table consists of 257 word
entries. As shown in Figure 5-7, the function is linear within the range 32768 
 X 
 49152.
Table entries within this range are as given in Table 5-13 .
Table 5-13. Standard Usage Entries
Entry Number
X Value
Y Value
128
*
32768
1311
162
41472
1659
163
41728
1669
164
41984
1679
165
42240
1690
192*
49152
1966
*
These values are the end points of the range.
  All entries between these points fall on the line.
 
X
16384
32768
49152
65536
INDEPENDENT VARIABLE
DEPENDENT VARIABLE
Y
Figure 5-7. Table Example 1
 
   
  
F
re
e
sc
a
le
 S
e
m
ic
o
n
d
u
c
to
r,
 I
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 
Freescale Semiconductor, Inc.
For More Information On This Product,
   Go to: www.freescale.com
n
c
.
..