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

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

Task

Each code of the lesson is made for its job and its medium. For each of the following jobs, name the code from the lesson that suits it, and give the reason in one sentence. Choose from the binary code, the binary-coded decimal (BCD) code, the excess-3 code, the Gray code, the American Standard Code for Information Interchange (ASCII), Code 39, the Hamming code, the one-hot code and the 7-segment code.

a) Jobs in everyday life:

  1. You type a letter on your smartphone, and the phone stores it as a code word.
  2. Your smartphone sends certain packets to wireless headphones, and they have to survive a flipped bit.
  3. A scanner in a pharmacy reads the pharmaceutical central number on the package of a medicine.
  4. A keypad with the digits 0 to 9 has one electric line per key.
  5. A clock shows each digit of the time with single light emitting diodes (LEDs), and you add their weights.
  6. A laboratory power supply shows the voltage that you set as digits, which you read at a glance.

b) Jobs at the heat pump and in industry:

  1. The controller of our heat pump transmits the electrical power as a whole number, with which other devices calculate.
  2. A controller reads the position at a joint of a robot arm.
  3. A cash register of the 1970s calculates with decimal digits in hardware and needs their nine’s complement.

c) The binary code can also describe positions. Why is it still unsuitable for a rotary encoder? Explain it with the change from sector 3 to sector 4 of a code disc with three tracks.

d) The controller of our heat pump records a message under the number 30 008, which fits into a word of 16 bits in the binary code. Write this number in the BCD code. What does the BCD code cost here, and what does it gain?