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.

<strong>DVP</strong>-<strong>ES2</strong>/<strong>EX2</strong>/<strong>SS2</strong>/<strong>SA2</strong>/<strong>SX2</strong> <strong>Operation</strong> <strong>Manual</strong> - Programming<br />

Before execution<br />

M1095<br />

After rotation to the left<br />

M1095 1<br />

b15<br />

1<br />

0 1 0 1 0 1 0 1 0 1 0 1 0 1<br />

B0<br />

1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0<br />

1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0<br />

MBR M1097=0<br />

0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1<br />

0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1<br />

0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1<br />

0<br />

D0<br />

D1<br />

D2<br />

D20<br />

D21<br />

D22<br />

Program Example 2:<br />

When X1 = ON, M1097 = ON, indicating a right matrix rotation is performed. The 16-bit registers<br />

D0 ~ D2 will perform a right matrix rotation and the result will be stored in the matrix of the 16-bit<br />

registers D20 ~ D22. The matrix carry flag M1095 will be OFF (0).<br />

X1<br />

M1097<br />

MBRP D0 D20 K3<br />

Before execution<br />

D0<br />

D1<br />

D2<br />

b15<br />

b0<br />

1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0<br />

1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0<br />

1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0<br />

M1095<br />

MBR<br />

M1097=1<br />

After rotation<br />

to the right<br />

D20<br />

D21<br />

D22<br />

0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0<br />

0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1<br />

0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1<br />

M1095<br />

3-422

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

Saved successfully!

Ooh no, something went wrong!