It takes 9 leads to connect one of these 7 segment display modules. Multiplexing and other techniques allow us to use fewer wires and interface larger displays. This project use a chip called the shift register.
Simulator SoftwareYou can build this circuit with discreet components. I am using a simulator software called SimulIDEthat has an example circuit named shiftregister-test.sim1 located in Logic/Arithmetic examples. There are other quality simulators available.
The gray squares are voltage on/off switches to our chip leads. Simulide will do a safety shutdown when you make changes to circuit hardware or software. Click on them. Simulation On/Off power at the top of the screen.
Basic Serial - Shift registerToggle the clock input and apply 5v to the DI data input. With each on/off clock cycle the voltage you put in is passed down the shift register pins from Q0 to Q7. Rst clears the stored bits.
Remove the round lamps and add a 7 segment LED with the a through g and dot connections. Simulide will do a safety shutdown when you make changes to circuit hardware or software.
Hold DI data input at 5v for 8 clock cycles and we fill the screen. All 7 segments and the dot light up. After we stop inputting voltage blanks will cycle through.
We can blank the display between characters. Toggle the OE output enable lead on the shift register chip while there is a byte. Notice shift register outputs shut down and the bits stay in their buffer.
We start fresh. Toggle the reset lead and we clear the byte that was in the shift register circuit.
Wouldn't it be nice for our shift register to hold the current byte of LED segments while loading a new 8 bits? We call that a latch or buffer. It can be built in the chip with the shift register or it can be an added module.
Look at this package containing a shift-register with latch and LEDs combined. Here is a circuit from a 4pin serial display module. See how it includes the shift register we've been studying?
Think of the latch as a second clock that toggles every 8 bits so that bytes have starts and finishes. Often latch is unused. Data comes in on SDI serial data input. Trace how output Q7 has a SDO serial data output lead so that the MSB bit can rollover to another shift register, like the carry operation in addition.
If you want to do a simulator hands-on with this device it is located in SimulIDE data files led_display\1bit_led_sca.sim1. How to make connections in basic SimulIDE project. Look at specs for 4 pin serial 7 segment LED display modules.
In 2x4bit_led_cc.sim1 we see Q7 from the first shift register roll over to a second. Q7 of the second shift register rolls over to the DO data output pin of the 4pin package.
Common Cathode / AnodeWe picked a circuit where the LED current goes to ground. We apply positive voltage to each segment to light them. This means our software will need to generate ones. We call this Common Cathode.
Common Anode is wired the opposite way. The LED module has a +ve lead and we apply voltage for blank and ground to light.
Automate Display FunctionNow that we know how to move bits through these circuits let us put a computer to work on it. We build this circuit in our Assembly project.
We will use this connection table. Notice how the names change?
Here is the Uno version. Same thing but different.
Comments