Texas Instruments TMS320C2XX Calculator User Manual


 
IN
Input Data From Port
7-70
Cycles for a Single IN Instruction
Program
Operand ROM DARAM SARAM External
Destination: DARAM 2+io
src
2+io
src
2+io
src
3+io
src
+2p
code
Destination: SARAM 2+io
src
2+io
src
2+io
src
3+io
src
3+io
src
+2p
code
Destination: External 3+d
dst
+io
src
3+d
dst
+io
src
3+d
dst
+io
src
6+d
dst
+io
src
+2p
code
If the operand and the code are in the same SARAM block
Cycles for a Repeat (RPT) Execution of an IN Instruction
Program
Operand ROM DARAM SARAM External
Destination: DARAM 2n+nio
src
2n+nio
src
2n+nio
src
2n+1+nio
src
+2p
code
Destination: SARAM 2n+nio
src
2n+nio
src
2n+nio
src
2n+2+nio
src
2n+1+nio
src
+2p
code
Destination: External 4n–1+nd
dst
+
nio
src
4n–1+nd
dst
+nio
src
4n–1+nd
dst
+nio
src
4n+2+nd
dst
+nio
src
+
2p
code
If the operand and the code are in the same SARAM block
Example 1 IN 7,1000h ;Read in word from peripheral on
;port address 1000h. Store word in
;data memory location 307h (DP=6).
Example 2 IN *,5h ;Read in word from peripheral on
;port address 5h. Store word in
;data memory location specified by
;current auxiliary register.
Cycles