データシートサーチシステム
  Japanese  ▼
ALLDATASHEET.JP

X  

ST9 データシート(PDF) 34 Page - STMicroelectronics

部品番号 ST9
部品情報  USER GUIDE
PDF  146 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
メーカー  STMICROELECTRONICS [STMicroelectronics]
ホームページ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

ST9 データシート(HTML) 34 Page - STMicroelectronics

Back Button ST9 Datasheet HTML 30Page - STMicroelectronics ST9 Datasheet HTML 31Page - STMicroelectronics ST9 Datasheet HTML 32Page - STMicroelectronics ST9 Datasheet HTML 33Page - STMicroelectronics ST9 Datasheet HTML 34Page - STMicroelectronics ST9 Datasheet HTML 35Page - STMicroelectronics ST9 Datasheet HTML 36Page - STMicroelectronics ST9 Datasheet HTML 37Page - STMicroelectronics ST9 Datasheet HTML 38Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 34 / 146 page
background image
34/146
ST9 USER GUIDE
ld
r5,#Num_loop
; number of elements to move
loop:
lddd
(rr2)+, (rr0)+
; transfer of one byte
djnz
r5,loop
The lddd instruction is coded using 2 bytes and executed in 14 cycles.
Here are the four possible data transfers:
These four instructions improve the performance of data block moves (frequently used in C
programs).
As you can see in the table above, the data move can be between data and program seg-
ments. Here’s an example of a data move from a Data segment using the DPR register to a
Program segment using the CSR register:
ld
rr0,#Source
ld
rr2,#Destination
; initialisation of the pointers
ld
r5,#Num_loop
; number of elements to move
loop:
ldpd
(rr2)+, (rr0)+
; transfer of one byte
djnz
r5,loop
The data load with rr0 comes from the data segment selected by one of the four DPR register
values depending on the rr0 value and then are stored in the program segment selected by the
CSR register value.
(Please refer to the MMU Section 3.1.7 for an explanation of data and program segments).
3.3.1.2 Test Under Mask
These instructions, tm and tmw, perform a logical (bitwise) AND between the two operands,
but do not store the result. They only set the Z and S bits of the flag register for a later condi-
tional jump on zero or sign. The mask is a value in which the bits that are set to 1 select the
corresponding bits of the value to be tested for non-zero. As an example, in the following in-
struction:
tm value, mask
Instruction
Moves data from...
...to
lddd
data segment (uses the DPR0-DPR3 registers)
data segment
ldpp
program segment (uses the CSR register)
program segment
lddp
program segment
data segment
ldpd
data segment
program segment



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


データシート ダウンロード

Go To PDF Page


リンク URL



ALLDATASHEETはお客様のビジネスに役立ちますか?  [ DONATE ] 

Alldatasheetは   |   広告   |   お問い合わせ   |   プライバシーポリシー   |   データシートへのリンク    |   リンク交換   |   メーカーリスト
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