EasyManua.ls Logo

LSIS XEC-DR32H - Page 217

LSIS XEC-DR32H
225 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendix 4 Insturction List
Appendix 4.1.3 Bit Arrary Function
(1) Bit-shift Function
(2) Bit Operation Function
Appendix 4.1.4 Selection Function
Appendix 4.1.5 Data Exchange Function
No.
Function name
Description
Remarks
1
SWAP_BYTE
Swaps upper NIBBLE for lower NIBBLE data of BYTE.
SWAP_WORD
Swaps upper BYTE for lower BYTE data of WORD.
SWAP_DWORD
Swaps upper WORD for lower WORD data DWORD.
SWAP_LWORD
Swaps upper DWORD for lower DWORD data of LWORD.
2
ARY_SWAP_BYTE
Swaps upper/lower NIBBLE of BYTE elements in array.
ARY_SWAP_WORD
Swaps upper/lower BYTE of WORD elements in array.
ARY_SWAP_DWORD
Swaps upper/lower WORD of DWORD elements in array.
ARY_SWAP_LWORD
Swaps upper/lower DWORD of LWORD elements in array.
No.
Function name
Description
Remarks
1
SHL
Shift input to the left of N bit(the right is filled with 0)
2
SHR
Shift input to the right of N bit (the left is filled with 0)
3
SHIFT_C_***
Shift input to the designated direction as much as N bit (carry)
4
ROL
Rotate input to the left of N bit
5
ROR
Rotate input to the right of N bit
6
ROTATE_C_***
Rotate input to the direction as much as N bit (carry)
No.
Function name
Description (n can be extended up to 8)
Remarks
1
AND
Logical AND (OUT <= IN1 AND IN2 AND ... AND INn)
2
OR
Logical OR (OUT <= IN1 OR IN2 OR ... OR INn)
3
XOR
Exclusive OR (OUT <= IN1 XOR IN2 XOR ... XOR INn)
4
NOT
Reverse logic (OUT <= NOT IN1)
5
XNR
Exclusive logic AND (OUT <= IN1 XNR IN2 XNR ... XNR INn)
No.
Function name
Description(n can be extended up to 8)
Remarks
1
SEL
Selects from two inputs (IN0 or IN1)
2
MAX
Produces the maximum value among input IN1,...INn
3
MIN
Produces the minimum value among input IN1,...INn
4
LIMIT
Limits upper and lower boundaries
5
MUX
Outputs the K-th input among input IN1,…INn
App.4 - 7

Table of Contents

Related product manuals