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

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

Task

The camera app of a smartphone offers the flash settings Off, On and Auto. With Off, the flash never fires. With On, it fires for each photo. With Auto, it fires only if the scene is dark. In simplified form, the inputs and the output are:

  • and : the setting, with the weight 2, with the code words 0:0 for Off, 0:1 for On and 1:0 for Auto; the code word 1:1 never occurs
  • : the scene is dark
  • : the flash fires

Implement this function with standard components.

a) Set up the truth table of , and give the minterm list.

b) Implement with a 3-to-8 decoder and an OR gate. Which outputs of the decoder lead to the OR gate?

c) Implement with an 8-to-1 multiplexer. What do you connect to the data inputs to ?

d) Implement with a 4-to-1 multiplexer, with and at the select inputs. What do you connect to the data inputs to ? Draw the circuit according to the standard of the International Electrotechnical Commission (IEC), IEC 60617.

e) Why does none of the three solutions need a minimization?

f) Suppose a software update gives the code word 1:1 a meaning: a fourth setting, with which the flash fires only if the scene is not dark. What do you have to change in each of the three solutions?