Prof. Dr. Thorsten Jungmann (last updated 2026-11-02)

Relates to DET-05 Codes, code converters and standard components

Task

The rotary encoder at a joint of a robot arm delivers the position of the joint in the Gray code, while the controller calculates in the binary code. The code disc has 16 sectors and four tracks. A code converter turns the Gray code word with the bits , , and into the binary code word with the bits , , and , with the weight 8. This is the code table:

Sector
000000000
100010001
200110010
300100011
401100100
501110101
601010110
701000111
811001000
911011001
1011111010
1111101011
1210101100
1310111101
1410011110
1510001111

a) Minimize with a Karnaugh map.

b) Minimize with a Karnaugh map.

c) Minimize with a Karnaugh map.

d) Draw the Karnaugh map of . You do not need to write down its expression. What happens to the loops from a) to d)?

e) Express the four outputs with XOR gates with two inputs, as a chain from the highest bit down. How many XOR gates does the code converter need?

f) Check your chain for sector 11.

A colleague has built this code converter with a fault and reports: and agree with the code table in all 16 rows, but and do not:

Row from the code table in the simulator from the code table in the simulator
000000000
100010011
200101111
300111100
401001010
501011001
601100101
701110110
810001111
910011100
1010100000
1110110011
1211000101
1311010110
1411101010
1511111001

Simulation of the faulty code converter from Gray to binary, with four logic inputs and three XOR gates, in which all inputs and all outputs are low
Simulation of the faulty code converter from Gray to binary, with four logic inputs and three XOR gates, in which all inputs and all outputs are low

Open in the simulator

g) In which rows do and deviate, and why do both outputs deviate in the same rows? Which input of which gate is connected wrongly? Confirm it in the simulation.