Proverbs 16:9 (KJV)
“A man’s heart deviseth his way: but the LORD directeth his steps.”
────────────────────────────────────
74HC595 Shift Register Series Part 2 | Adding Transistor Inverters
Watch the Video:
74HC595 SERIES: ADDING TRANSISTOR INVERTERS
In this project, I add two 2N2222 transistor inverter stages to the outputs of our SN7400 dual-switch debouncer. The two signals are intended for the shift-register clock and latch-clock inputs of a 74HC595.
I used the SN7400 and 2N2222 transistors because I had them in my kit. There are other ways to debounce switches and interface logic signals; the best approach depends on the application.
────────────────────────────────────
WHY ADD THE TRANSISTOR STAGES?
The SN7400 is a TTL logic device. Its datasheet specifies a guaranteed minimum HIGH output of 2.4 V under the stated test conditions.
The 74HC595 uses CMOS logic. At a 5 V supply, its guaranteed HIGH-input requirement is estimated to be about 3.5 V using TI’s interpolation guidance. Because the SN7400’s guaranteed minimum HIGH output is lower, the datasheets do not guarantee that a direct connection will work under every condition.
Each 2N2222 stage provides an inverted output. When the transistor turns on, it pulls the collector toward ground. When it turns off, the pull-up resistor brings the collector toward 5 V.
────────────────────────────────────
HOW THE SIGNALS ARE CONNECTED
Switch S1 uses NAND gates U1A and U1B in the SN7400. The debounced output at pin 6 drives Q1 through a base resistor. Q1’s collector output is labeled SRCLK and is intended for pin 11 of the 74HC595.
Switch S2 uses NAND gates U1C and U1D. Its debounced output at pin 11 drives Q2 through a base resistor. Q2’s collector output is labeled RCLK and is intended for pin 12 of the 74HC595.
The two transistor stages share a common ground with the SN7400. The SN7400 is powered through pin 14 (VCC) and pin 7 (GND), with a 0.1 µF bypass capacitor between those pins.
────────────────────────────────────
LAB RESULTS
I moved each switch from A to B and measured its transistor collector output.
Q1’s SRCLK output measured about 4.97 V in position B. Q2’s RCLK output measured about 5.00 V in position B. On the oscilloscope, both outputs rose from near 0 V to approximately 5 V as the switches moved from A to B.
These measurements show how the transistor stages invert the debounced signals and produce the collector outputs for the planned 74HC595 connection.
────────────────────────────────────
DATASHEETS
SN7400 datasheet: https://www.ti.com/lit/ds/symlink/sn7400.pdf
74HC595 datasheet: https://www.ti.com/lit/ds/symlink/sn74hc595.pdf
TI interpolation guidance: https://www.ti.com/document-viewer/lit/html/SBAA808
────────────────────────────────────
COMPONENTS AND TOOLS
Affiliate disclosure: As an Amazon Associate I earn from qualifying purchases. If you buy through my Amazon affiliate links, I may earn a commission at no additional cost to you. Thanks for supporting Build Circuits With Rich!
Components and Equipment — Amazon Affiliate Links
SN7400N quad 2-input NAND gate IC https://link.amazon/B032rpPJM
SPDT slide switch https://link.amazon/B09guna18
Two 10 kΩ pull-up resistors https://link.amazon/B03XFnNUj
2.2 kΩ resistor for unused inputs https://link.amazon/B03XFnNUj
1 kΩ LED current-limiting resistor https://link.amazon/B03XFnNUj
LED https://link.amazon/B04790A2d
0.1 µF ceramic bypass capacitor https://link.amazon/B00l9i6kJ
Breadboard and jumper wires https://link.amazon/B0gQDnGBQ
Regulated 5 V DC power supply https://link.amazon/B06BdDrfX
DSO138 oscilloscope https://link.amazon/B0baLTxQj
────────────────────────────────────
My Notes:
74HC595 Shift Register Series Adding Transistor Inverters
Want more electronics lessons?
For more beginner-friendly electronics lessons, circuit walkthroughs, and hands-on breadboard builds, visit:
https://buildcircuitswithrich.com
Prefer video?
Watch full lessons on the Build Circuits With Rich YouTube Channel.
Back To: Videos