Electronic Components Datasheet Search
  English  ▼

X  

TMS320F Datasheet(PDF) 90 Page - Texas Instruments

Part # TMS320F
Description  CPU and Instruction Set
PDF  389 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  TI [Texas Instruments]
Direct Link  http://www.ti.com
Logo TI - Texas Instruments

TMS320F Datasheet(HTML) 90 Page - Texas Instruments

Back Button TMS320F Datasheet HTML 86Page - Texas Instruments TMS320F Datasheet HTML 87Page - Texas Instruments TMS320F Datasheet HTML 88Page - Texas Instruments TMS320F Datasheet HTML 89Page - Texas Instruments TMS320F Datasheet HTML 90Page - Texas Instruments TMS320F Datasheet HTML 91Page - Texas Instruments TMS320F Datasheet HTML 92Page - Texas Instruments TMS320F Datasheet HTML 93Page - Texas Instruments TMS320F Datasheet HTML 94Page - Texas Instruments Next Button
Zoom Inzoom in Zoom Outzoom out
 90 / 389 page
background image
Direct Addressing Mode
6-6
6.2.1
Using Direct Addressing Mode
When you use direct addressing mode, the processor uses the DP to find the
data page and uses the seven LSBs of the instruction register to find a particu-
lar address on that page. Always do the following:
1) Set the data page. Load the appropriate value (from 0 to 511) into the DP.
The DP register can be loaded by the LDP instruction or by any instruction
that can load a value to ST0. The LDP instruction loads the DP directly
without affecting the other bits of ST0, and it clearly indicates the value
loaded into the DP. For example, to set the current data page to 32 (ad-
dresses 1000h–107Fh), you can use:
LDP #32
;Initialize data page pointer
2) Specify the offset. Supply the 7-bit offset as an operand of the instruction.
For example, if you want the ADD instruction to use the value at the second
address of the current data page, you would write:
ADD 1h ;Add to accumulator the value in the current
;data page, offset of 1.
You do not have to set the data page prior to every instruction that uses direct
addressing. If all the instructions in a block of code access the same data page,
you can simply load the DP at the front of the block. However, if various data
pages are being accessed throughout the block of code, be sure the DP is
changed whenever a new data page should be accessed.
6.2.2
Examples of Direct Addressing
In Example 6–3, the first instruction loads the DP with 0 0000 01002 to set the
current data page to 4. The ADD instruction then references a data memory
address that is generated as shown following the program code. Before the
ADD instruction is executed, the opcode is loaded into the instruction register.
Together, the DP and the seven LSBs of the instruction register form the com-
plete 16-bit address, 0000 0010 0000 10012 (0209h).



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