Assume common cathode so that a 1 will light up a segment.
Draw all of the values from 0-F and fill in the table to show which lights light up.
binary input 1 | binary input 2 | binary input 3 | binary input 4 | a | b | c | d | e | f | g |
0 | 0 | 0 | 0 | |||||||
0 | 0 | 0 | 1 | |||||||
0 | 0 | 1 | 0 | |||||||
0 | 0 | 1 | 1 | |||||||
0 | 1 | 0 | 0 | |||||||
0 | 1 | 0 | 1 | |||||||
0 | 1 | 1 | 0 | |||||||
0 | 1 | 1 | 1 | |||||||
1 | 0 | 0 | 0 | |||||||
1 | 0 | 0 | 1 | |||||||
1 | 0 | 1 | 0 | |||||||
1 | 0 | 1 | 1 | |||||||
1 | 1 | 0 | 0 | |||||||
1 | 1 | 0 | 1 | |||||||
1 | 1 | 1 | 0 | |||||||
1 | 1 | 1 | 1 |
Kmap the segment assigned to you.
Other resources:
A look at segment e for BCD.