Omron CP1E CPU UNIT SOFTWARE User Manual page 378

Cp1e cpu unit software
Table of Contents

Advertisement

Appendices
Instruction
Mnemonic
DATA
DMPX
ENCODER
A-24
Variations
Symbol/Operand
@
DMPX(077)
S
R
C
S: 1st source word
R: Result word
C: Control word
Function
FInds the location of the first or last ON bit within the source word
(or 16-word range), and writes that value to the specified digit (or
byte) in the result word.
16-to-4 bit conversion
C
FInds leftmost bit
(Highest bit address)
16-to-4 bit decoding
(Location of leftmost
Leftmost bit
bit (m) is writ-ten to R.)
n=2 (Start with digit 2.)
R
C
256-to-8 bit conversion
l=0 (Convert one 16-word range.)
Finds leftmost bit
(Highest bit address)
256-to-8 bit decoding
(The location of the leftmost bit in the
16-word range (m) is written to R.)
n=1 (Start with byte 1.)
R
C: Control Word
• 16-to-4 bit conversion
15
12
11
8
7
4
3
C
0
l
Number of digits/bytes to be converted
0 to 3 (1 to 4 digits)
Bit to encode
0: Leftmost bit (highest bit address)
1: Rightmost bit (lowest bit address)
Conversion process
0: 16-to-4 bits (word to digit)
• 256-to-8 bit conversion
15
12
11
8
7
4
3
C
1
l
Number of digits/bytes to be converted
0 or 1 (1 or 2bytes)
Bit to encode
0: Leftmost bit (highest bit address)
1: Rightmost bit (lowest bit address)
Conversion process
1: 256-to-8 bits (16-word range to byte)
CP1E CPU Unit Software User's Manual(W480)
l=1 (Convert
2 words.)
Rightmost bit
Leftmost bit
0
n
Specifies the first digit/byte
to receive converted data.
0 to 3 (digit 0 to 3)
0
n
Specifies the first digit/byte
to receive converted data.
0 or 1 (byte 0 or 1)

Advertisement

Table of Contents
loading

Table of Contents