You're currently on: Catalog » Guides » MC14093B Schmitt trigger: debounce a button, build a blinker
A push button does not switch cleanly, and a slowly charging capacitor passes through the forbidden zone between LOW and HIGH. The MC14093B solves both problems with four NAND gates whose inputs have hysteresis. This guide explains the idea and builds one complete circuit: a debounced button that starts an LED blinker.
A NAND gate has two inputs and one output. The output is LOW only when both inputs are HIGH; in every other case it is HIGH. If you tie both inputs together, the gate becomes an inverter: HIGH in gives LOW out and vice versa. If you hold one input HIGH, the other input passes through inverted; hold it LOW and the output is stuck HIGH. That last property turns a NAND input into an enable switch, which we use below. If gates are new to you, the MC74HC08AN AND-gate guide starts with switches and an LED.
An ordinary CMOS input has one switching point somewhere around half the supply voltage. If the input voltage creeps slowly through that point, or carries a little noise, the output can flip back and forth several times. A Schmitt-trigger input has two thresholds instead:
The gap between them is the hysteresis (VH). Small wiggles inside the gap are ignored, so a slow or noisy edge produces exactly one clean output step.
The Motorola CMOS data book gives these values for the MC14093B at VDD = 5 V and 25 °C: VT+ 1.80–4.05 V (typically 2.70 V), VT− 1.63–3.66 V (typically 2.44 V), and hysteresis 0.17–0.6 V (typically 0.26 V). Notice how wide the ranges are: the thresholds vary from chip to chip, so design for the minimum and maximum, not the typical value.
The MC14093B belongs to the 4000-series CMOS family (like the MC14002 NOR gate). It runs from 3 to 18 V and is pin-compatible with the CD4093 and the ordinary MC14011B NAND gate. The stocked MC14093BCP is the C-series part (−40 to +85 °C) in the 14-pin plastic DIP (P suffix, Motorola case 646), so it fits directly into a breadboard.
Three rules for every CMOS gate: connect pin 14 (VDD) to +5 V and pin 7 (VSS) to 0 V with a 100 nF capacitor right at the chip; tie every unused input to VDD or VSS, because a floating CMOS input can drift into the threshold zone; and leave unused outputs open.
Build it on a breadboard at 5 V:
The capacitor travels only between VT− and VT+, so the period depends on the thresholds: T ≈ R·C·[ln((VDD−VT−)/(VDD−VT+)) + ln(VT+/VT−)]. With the typical 5 V values that is about 0.21 × R·C, so 1 MΩ and 1 µF give roughly 0.2 s per cycle, or about 5 Hz. Because the hysteresis may lie anywhere between 0.17 and 0.6 V, another chip might blink at roughly 2 Hz or 7 Hz. Treat the formula as an estimate and change R or C to tune; for an accurate frequency use a crystal or a dedicated timer.
The stocked part is the Motorola MC14093BCP: four 2-input NAND Schmitt triggers in a 14-pin plastic DIP. Pinout, package, thresholds and timing in this guide come from the MC14093B pages of Motorola’s 1988 CMOS Logic Data book; onsemi’s current datasheet covers the same device.
View the MC14093BCP product page · MC14093B datasheet (onsemi) · Motorola CMOS Logic Data (1988)
We use cookies to provide you with the best possible experience. They also allow us to analyze user behavior in order to constantly improve the website for you.