100
get X (register) = 1234 = 04D2 = 0000 0100 1101 0010
get Y (register) = 4991 = 137F = 0001 0011 0111 1111
store result (register) = 6061 = 17AD = 0001 0111 1010 1101
Bitwise NOT
The function negates bits in the register.
Example:
decimal hexadecimal binary
get X (register) = 1234 = 04D2 = 0000 0100 1101 0010
store result (register) = 64301 = FB2D = 1111 1011 0010 1101
Bit copy
The function copies selected bits from a register (get X) to register (store result). Only bits
from positions where there are values of 1 in register (get Y). Other bits remain intact.
Example:
decimal hexadecimal binary
get X (register) = 1039 = 040F = 0000 0100 0000 1111
get Y (register) = 4915 = 1333 = 0001 0011 0011 0011
store result = 3925 = 0F55 = 0000 1111 0101 0101
(register before operation)
store result = 3143 = 0C47 = 0000 1100 0100 0111
(register after operation)
This function is very handy when copying values between register space and bit addressed
memory space. Virtual registers from bit addressed memory spaces (VREG_BIx - binary
inputs, and VREG_BO - binary outputs) enable access from functions operating on registers
to bit variables. Virtual register mapping is sequential: first register holds first 16 bits, the
next following 16 and so on...
For example:
Registe bit 0 bit 1 bit 2 bit 3 bit 4
bit 5 bit 6 bit 7 bit 8
bit 9
bit 10
bit 11
bit 12
bit 13
bit 14
bit 15
VREG_ IQ1 IQ2 IQ3 IQ4 IQ5 IQ6 IQ7
IQ8 --
--
--
--
--
--
--
--
VREG_ Q1 Q2 Q3 Q4
Q5 Q6 Q7
Q8
P1
P2
P3
P4
P5
P6
P7
P8
VREG_ P9 P10
P11
P12
P13 P14
P15
P16 CLK_C1 CLK_C2 CLK_C3 CLK_C4 CLK_C5
CLK_C6
CLK_C7 CLK_C
NOP
No operation performed.
Goto
The function jumps to specified in parameter (get X) location (program line).
CAUTION!!!
The number of instructions carried out in one program cycle is limited to 2000. Upon
reaching limit, the execution stops. Next cycle starts from line number 0. Reaching the limit
is signaled by ERR LED for diagnostic purposes.
Exit
The function ends the program execution for a particular cycle.
Summary of Contents for MT-101
Page 1: ......
Page 129: ...126 11 7 Drawings and dimensions ...