154 7-segment LED flasher

154 : 7-segment LED flasher

Select Project123456789ONSW2
  • Author: Joseph Chiu
  • Description: Drives 7-segment LED display, alternating between NIC and JAC
  • GitHub repository
  • Clock: 0 Hz

How it works

Master clock is fed through a prescaler with four tap-points which feeds a 4-bit ripple counter (there are 6 total bits, but the top two bits are discarded). 2:1 muxes are chained to act like a 8:1 mux for each LED segment position. As the counter runs, this results in each segment being turned on or off as needed to render the display sequence (NIC JAC ). The highest order bit is used to blink the decimal point on/off.

How to test

IN5 and IN6 selects the clock prescaler. OUT0-OUT7 are the LED segment outputs.

External hardware

TTO standard switches and 7-segment display

IO

#InputOutput
0clocksegment a
1resetsegment b
2segment c
3segment d
4segment e
5Prescale select bit 0segment f
6Prescale select bit 1segment g
7segment dp