[Instruction] Contents
[Instruction] Contents [Instruction] Contents
Advanced Function InstructionFUN55 D PB→GBINARY-CODE TO GRAY-CODE CONVERSIONFUN55 D PB→GExample 2: When M0 =1, it will perform the 32-bit code conversionM0EN55DP.B G ˙Converting the 32-bit Binary-code in DR0 intoS :D :R0R100Gray-code, and then storing the result into DR100.DR0= 00110111001001000010111100010100B DR100= 00101100101101100011100010011110B7-31
Advanced Function InstructionFUN56 D PG→BGRAY-CODE TO BINARY-CODE CONVERSIONFUN56 D PG→BS :Starting of sourceD :Starting address of destinationS , D operand can combine V 、 Z 、 P0~P9 for indexaddressingOperandRangeWX WY WM WS TMR CTR HR IR OR SR ROR DR K XRWX0∣WX240WY0∣WY240WM0∣WM1896WS0∣WS984T0∣T255C0∣C255R0∣R3839R3840∣R3903R3904∣R3967R3968∣R4167R5000∣R8071D0∣D40950~FFFFH0~FFFFFFFFHP0~P9S ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○D ○ ○ ○ ○ ○* ○ ○V、Z●When operation control "EN"=1 or "EN↑"( P instruction) changes from 0→1, it will perform the codeconversion; where S is the source (Gray code), and D is the destination (Binary code) for storing theresult.● The conversion method shown as below :Example 1: When M0 changes from 0→1, it will perform the 16-bit code conversionM056P.G BEN S :D :D0D100˙Converting the 16-bit Gray-code in D0 into Binary-code,and then storing the result into D100.D0= 1001010101010011B D100= 1110011001100010B7-32
- Page 88 and 89: Basic Function InstructionFUN 6 D P
- Page 90 and 91: Basic Function InstructionFUN 7 DUD
- Page 92 and 93: Basic Function InstructionFUN 9 D P
- Page 94 and 95: Basic Function InstructionFUN 11 D
- Page 96 and 97: Basic Function InstructionFUN 13 D
- Page 98 and 99: Basic Function InstructionFUN 14 D
- Page 100 and 101: Basic Function InstructionFUN 15 D
- Page 102 and 103: Basic Function InstructionFUN 17 D
- Page 104 and 105: Basic Function InstructionFUN 19 D
- Page 106 and 107: Basic Function InstructionFUN 21 D
- Page 108 and 109: Advanced Function InstructionFUN22
- Page 110 and 111: Advanced Function InstructionFUN 24
- Page 112 and 113: Advanced Function InstructionFUN 26
- Page 114 and 115: Advanced Function InstructionFUN 28
- Page 116 and 117: Advanced Function InstructionFUN 30
- Page 118 and 119: Advanced Function InstructionFUN32A
- Page 120 and 121: Advanced Function InstructionFUN 36
- Page 122 and 123: Advanced Function InstructionFUN 40
- Page 124 and 125: Advanced Function InstructionFUN 42
- Page 126 and 127: Advanced Function InstructionFUN 44
- Page 128 and 129: Advanced Function InstructionFUN 46
- Page 130 and 131: Advanced Function InstructionFUN 48
- Page 132 and 133: Advanced Function InstructionFUN50
- Page 134 and 135: Advanced Function InstructionFUN 52
- Page 136 and 137: Advanced Function InstructionFUN 54
- Page 140 and 141: Advanced Function InstructionFUN56
- Page 142 and 143: Advanced Function InstructionFUN 58
- Page 144 and 145: Advanced Function InstructionFUN 59
- Page 146 and 147: Advanced Function InstructionFUN 59
- Page 148 and 149: Advanced Function InstructionFUN 61
- Page 150 and 151: Advanced Function InstructionFUN 63
- Page 152 and 153: Advanced Function InstructionFUN 64
- Page 154 and 155: Advanced Function InstructionEND PR
- Page 156 and 157: Advanced Function InstructionFUN 66
- Page 158 and 159: Advanced Function InstructionFUN 68
- Page 160 and 161: Advanced Function InstructionFUN 70
- Page 162 and 163: Advanced Function InstructionFUN 74
- Page 164 and 165: Advanced Function InstructionFUN 76
- Page 166 and 167: Advanced Function InstructionFUN 78
- Page 168 and 169: Advanced Function InstructionFUN 79
- Page 170 and 171: Advanced Function InstructionFUN 81
- Page 172 and 173: Advanced Function InstructionFUN 82
- Page 174 and 175: Advanced Function InstructionFUN 84
- Page 176 and 177: Advanced Function InstructionFUN 86
- Page 178 and 179: Advanced Function InstructionFUN 86
- Page 180 and 181: Advanced Function InstructionFUN89/
- Page 182 and 183: Advanced Function InstructionFUN 90
- Page 184 and 185: Advanced Function InstructionFUN 92
- Page 186 and 187: Advanced Function InstructionFUN 94
Advanced Function <strong>Instruction</strong>FUN55 D PB→GBINARY-CODE TO GRAY-CODE CONVERSIONFUN55 D PB→GExample 2: When M0 =1, it will perform the 32-bit code conversionM0EN55DP.B G ˙Converting the 32-bit Binary-code in DR0 intoS :D :R0R100Gray-code, and then storing the result into DR100.DR0= 00110111001001000010111100010100B DR100= 00101100101101100011100010011110B7-31