Instructions

Library
akYtec GmbH · Vahrenwalder Str. 269 A · 30179 Hannover · Germany · Tel.: +49 (0) 511 16 59 672-0 · www.akytec.de
51
Example: setting of the 4th bit to 1 in the number 38 (decimal) = 100110 (binary):
Fig. 6.33
6.1.5.3 Decoder (DC32)
Fig. 6.34
The decoder converts a binary code at the input to a position code at the output.
Decoding is carried out bitwise by the logical operation AND with the operand 0x1F
(11111b).
Table 6.9 Truth table
Binary code
Position code
5
4
3
2
1
32
31
6
5
4
3
2
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
1
1
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
1
1
1
1
0
0
1
0
0
0
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
Example:
Fig. 6.35
6.1.5.4 Encoder (CD32)
Fig. 6.36
The encoder converts a position code at the input to a binary code at the output.
If there is more than one “1” bits in the position code, the encoder operates only with the
most significant “1” bit.
For truth table see table 6.9 for Decoder.