Advanced Function Instruction
7-31
FUN55 D P
B→G
BINARY - CODE TO GRAY - CODE CONVERSION
FUN55 D P
B→G
Example 2: When M0 =1, it will be perform the 32-bit code conversion
S :
D :
R100
R0
M0
EN
55DP.B G
˙ Converting the 32-bit Binary-code in DR0 into Gray-code,
and then storing the result into DR100.
DR0= 00110111001001000010111100010100B Î DR100= 00101100101101100011100010011110B