21 BCD to 7-segment encoder

21 : BCD to 7-segment encoder

Design renderSelect Project123456789ONSW2
  • Author: maehw
  • Description: Encode binary coded decimals (BCD) in the range 0..9 to 7-segment display control signals
  • GitHub repository
  • Clock: 0 Hz

How it works

The design has been fully generated using https://github.com/maehw/wokwi-lookup-table-generator using a truth table (https://github.com/maehw/wokwi-lookup-table-generator/blob/main/demos/bcd_7segment_lut.logic.json). The truth table describes the translation of binary coded decimal (BCD) numbers to wokwi 7-segment display (https://docs.wokwi.com/parts/wokwi-7segment). Valid BCD input values are in the range 0..9, other values will show a blank display.

How to test

Control the input switches on the PCB and check the digit displayed on the 7-segment display.

External hardware

Input switches and 7-segment display (should be on the PCB)

IO

#InputOutput
0wsegment a
1xsegment b
2ysegment c
3zsegment d
4segment e
5segment f
6segment g
7