Freescale Semiconductor, Inc.
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
32768
41472
41728
41984
42240
49152
Y Value
1311
1659
1669
1679
1690
1966
128*
162
163
164
165
192*
*These values are the end points of the range.
All entries between these points fall on the line.
Y
16384
32768
49152
65536
X
INDEPENDENT VARIABLE
Figure 5-7. Table Example 1
5- 30
MC68340 USER’S MANUAL
MOTOROLA
For More Information On This Product,
Go to: www.freescale.com