Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

MC68340 Datasheet(PDF) 171 Page - Freescale Semiconductor, Inc

Part # MC68340
Description  Integrated Processor with DMA User?셲 Manual
PDF  441 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  FREESCALE [Freescale Semiconductor, Inc]
Direct Link  http://www.freescale.com
Logo FREESCALE - Freescale Semiconductor, Inc

MC68340 Datasheet(HTML) 171 Page - Freescale Semiconductor, Inc

Back Button MC68340 Datasheet HTML 167Page - Freescale Semiconductor, Inc MC68340 Datasheet HTML 168Page - Freescale Semiconductor, Inc MC68340 Datasheet HTML 169Page - Freescale Semiconductor, Inc MC68340 Datasheet HTML 170Page - Freescale Semiconductor, Inc MC68340 Datasheet HTML 171Page - Freescale Semiconductor, Inc MC68340 Datasheet HTML 172Page - Freescale Semiconductor, Inc MC68340 Datasheet HTML 173Page - Freescale Semiconductor, Inc MC68340 Datasheet HTML 174Page - Freescale Semiconductor, Inc MC68340 Datasheet HTML 175Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 171 / 441 page
background image
5- 34
MC68340 USER’S MANUAL
MOTOROLA
The following value has been calculated for independent variable X:
31
16
15
0
NOT USED
0000000010111101
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:
Table Entry Offset
⇒ Dx [4:7] = $B = 11
Interpolation Fraction
⇒ Dx [0:3] = $D = 13
Thus, Y is calculated as follows:
Y = 80
+ (13 (64 – 80)) / 16 = 67
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:
LSL.W #4, Dx
The new range for X is 0
≤ X ≤ 4096; however, since a left shift fills the least significant
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:
31
16
15
0
NOT USED
000010111
1
010000
Execution of the table instruction using the new value in Dx yields:
Table Entry Offset
⇒ Dx [8:15] = $0B = 11
Interpolation Fraction
⇒ Dx [0:7] = $D0 = 208
Thus, Y is calculated as follows:
Y = 80
+ (208 (64 – 80)) / 256 = 67
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).
TBL # 1
0010 0000 . 0111 0000
TBL# 2
0011 1111 . 0111 0000
TBL # 3
0000 0001 . 0111 0000
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com