17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3. Instruction Set<br />

API Mnemonic Operands Function<br />

12 D MOV P Move<br />

Controllers<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong><br />

SE<br />

<strong>SX2</strong><br />

Type Bit Devices Word devices Program Steps<br />

OP X Y M S K H KnX KnY KnM KnS T C D E F MOV, MOVP: 5 steps<br />

S * * * * * * * * * * * DMOV, DMOVP: 9 steps<br />

D * * * * * * * *<br />

PULSE 16-bit 32-bit<br />

<strong>SA2</strong><br />

<strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong><br />

SE<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong><br />

SE<br />

Operands:<br />

S: Source of data D: Destination of data<br />

Explanations:<br />

1. When this instruction is executed, the content of S will be moved directly to D. When this<br />

instruction is not executed, the content of D remains unchanged<br />

2. If operand S and D use index register F, only 16-bit instruction is applicable<br />

Program example:<br />

1. MOV will move a 16-bit value from the source location to the destination.<br />

a) When X0 = OFF, the content of D0 remains unchanged. If X0 = ON, the data in K10 is<br />

moved to D0.<br />

b) When X1 = OFF, the content of D10 remains unchanged. If X1 = ON, the data of T0 is<br />

moved to D10 data register.<br />

2. DMOV will move a 32-bit value from the source location to the destination.<br />

a) When X2 = OFF, the content of (D31, D30) and (D41, D40) remain unchanged.<br />

b) When X2 = ON, the data of (D21, D20) is moved to (D31, D30) data register. Meanwhile, the<br />

data of C235 is moved to (D41, D40) data register.<br />

<strong>SA2</strong><br />

SE<br />

<strong>SX2</strong><br />

X0<br />

X1<br />

X2<br />

MOV K10 D0<br />

MOV T0 D10<br />

DMOV D20 D30<br />

DMOV C235 D40<br />

3-63

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!