MC68340PV16VE Freescale Semiconductor, MC68340PV16VE Datasheet - Page 171

no-image

MC68340PV16VE

Manufacturer Part Number
MC68340PV16VE
Description
IC MCU 32BIT 16MHZ 144-LQFP
Manufacturer
Freescale Semiconductor
Datasheet

Specifications of MC68340PV16VE

Processor Type
M683xx 32-Bit
Speed
16MHz
Voltage
3.3V
Mounting Type
Surface Mount
Package / Case
144-LQFP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Features
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MC68340PV16VE
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
The following value has been calculated for independent variable X:
Since X is an 8-bit value, the upper four bits are used as a table offset and the lower four
bits are used as an interpolation fraction. The following results are obtained from the
subroutine:
Thus, Y is calculated as follows:
If the 8-bit value for X were used directly by the table instruction, interpolation would be
incorrectly performed between entries 0 and 1. Data must be shifted to the left four places
before use:
The new range for X is 0
digits of the word with zeros, the interpolation fraction can only have one of 16 values.
After the shift operation, Dx contains the following value:
Execution of the table instruction using the new value in Dx yields:
Thus, Y is calculated as follows:
5.3.4.4 TABLE EXAMPLE 4: MAINTAINING PRECISION. In this example, three TBL
operations are performed and the results are summed. The calculation is done once with
the result of each TBL rounded before addition and once with only the final result rounded.
Assume that the result of the three interpolations are as follows (a ".'' indicates the binary
radix point).
5-34
31
31
NOT USED
NOT USED
Interpolation Fraction
Table Entry Offset
Interpolation Fraction
Freescale Semiconductor, Inc.
Table Entry Offset
For More Information On This Product,
TBL # 1
TBL# 2
TBL # 3
Y = 80
X
Y = 80
4096; however, since a left shift fills the least significant
MC68340 USER’S MANUAL
Go to: www.freescale.com
(208 (64 – 80)) / 256 = 67
(13 (64 – 80)) / 16 = 67
LSL.W #4, Dx
16
16
0010 0000 . 0111 0000
0011 1111 . 0111 0000
0000 0001 . 0111 0000
Dx [8:15] = $0B = 11
15
15
0
0
Dx [0:7] = $D0 = 208
Dx [4:7] = $B = 11
0
0
Dx [0:3] = $D = 13
0
0
0
0
0
1
0
0
0
1
0
1
1
1
0
1
1
0
1
1
MOTOROLA
1
0
1
0
0
0
0
1
0
0

Related parts for MC68340PV16VE