Individual Instruction Descriptions
4-104
4.14.21
IN
Input From Port Into Word
Syntax
[label]
name
dest, src1
Clock,
clk
Word,
w
With RPT,
clk
Class
IN
{
adrs}, port4
Table 4–46
Table 4–46
6a
IN
A
n[~], port6
1
1
n
R
+3
6b
Execution
dest
⇐
content of
port6 or port4
PC
⇐
PC +
w
Flags Affected
dest is An:
OF, SF, ZF, CF are set accordingly
dest is {adrs}
XZF, XSF are set accordingly
Opcode
Instructions
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
IN {adrs}, port4
1
1
0
0
0
port4
adrs
x
dma16 (for direct) or offset16 (long relative) [see section 4.13]
IN A
n[~], port6
1
1
1
0
1
1
0
A
n
port6
~A
Description
Input from I/O port. Words can be input to memory from one of 16 port
addresses or one of 48 port addresses. The
port4 address is multiplied by 4
to get the actual port address.
See Also
INS, OUT, OUTS
Example 4.14.21.1
IN *R0, 0x0c
Input data from port address 0x0c * 4 = 0x30 to data memory location pointed by R0.
Example 4.14.21.2
IN A2~, 0x3d
Input data from port address 0x3d to accumulator A2~.
Summary of Contents for MSP50C614
Page 1: ...MSP50C614 Mixed Signal Processor User s Guide SPSU014 January 2000 Printed on Recycled Paper ...
Page 6: ...vi ...
Page 92: ...3 22 ...
Page 300: ...Instruction Set Summay 4 208 Assembly Language Instructions ...
Page 314: ...Software Emulator 5 14 Figure 5 13 Project Menu Figure 5 14 Project Open Dialog ...
Page 325: ...Software Emulator 5 25 Code Development Tools Figure 5 25 EPROM Programming Dialog ...
Page 331: ...Software Emulator 5 31 Code Development Tools Figure 5 31 Context Sensitive Help System ...
Page 368: ...5 68 ...
Page 394: ...7 12 ...
Page 402: ...A 8 ...
Page 412: ...Packaging B 10 ...