alt.hn

7/30/2026 at 3:12:17 PM

Schmitt Trigger: Robust Comparator Design with Hysteresis

https://www.wevolver.com/article/schmitt-trigger-robust-comparator-design-with-hysteresis

by ankitg12

8/2/2026 at 8:59:38 PM

It's worth point out that on many microcontrollers (STM32's at least), configuring a pin as a "digital input" means that the signal is routed through a Schmitt trigger circuit that's built into the MCU.

This also means you'll want to ensure that any floating MCU pins are _not_ configured as digital inputs, as the Schmitt trigger circuit itself will waste power switching back and forth between high and low states constantly.

by wrigby

8/2/2026 at 11:16:48 PM

> you'll want to ensure that any floating MCU pins

Stop right there. Floating CMOS inputs are generally not a good idea, even if they can be configured to shut off the digital receiver.

Yes, in some cases, you really can shut off the power to the digital receiver, but in the general case, you're better off configuring a pullup or pulldown on the pin, to keep it out of the CMOS transition region.

by zephen

8/3/2026 at 1:11:28 AM

This makes no sense to me. The entire point of Schmitt triggers is to not switch back and forth constantly without a good reason. Something is missing from your explanation.

by dreamcompiler

8/3/2026 at 3:37:33 AM

To be scrupulously fair, there are essentially two different ways to implement a Schmitt trigger.

One way involves feedback connected to the input pin. This inherently lowers the impedance of the input and that alone makes it less susceptible to noise, even before you consider the altered comparison threshold.

The other way, such as in a 74HC14, involves a very high impedance input, but the threshold the input is compared to is internally modified. Modifying the threshold also makes it less susceptible to noise, but the impedance is so high that it still might have some susceptibility, especially if it's, e.g. routed to a connector pin that might not be populated.

Your statement:

> The entire point of Schmitt triggers is to not switch back and forth constantly without a good reason.

is essentially true, and some Schmitt triggers, such as those on many CPLDs and FPGAs, work by repurposing pull-up/pull-down circuitry, but not all of them work that way.

Schmitt triggers, in the general case, are circuits that cope with slow rise/fall times and a bit of noise on the input pins, rather than circuits that properly cope with completely undriven inputs.

In fact, FPGA-style low-impedance Schmitt trigger inputs can wreak havoc on things like the I2C protocol, because you might be effectively altering the undriven impedance and voltage of the bus, so you might want to put a discrete Schmitt trigger inverter in front of the FPGA in some cases, or, if you have enough pins, perhaps use a differential input on the FPGA and a couple of resistors and a separate output pin to set the threshold.

by zephen

8/2/2026 at 9:05:55 PM

Slop

by aappleby

8/2/2026 at 9:28:03 PM

I don't think it's slop -- the sources are books and it doesn't read like slop -- but the sources are more worth reading. It's more like an undergrad trying to fill word count, without getting why this is interesting.

by blagie

8/2/2026 at 10:01:44 PM

It's 100% AI-generated, including nonsense illustrations. And it's just so pointless too - there are many good, better-illustrated, and better-explained human articles about the same circuit.

by skippyfish

8/2/2026 at 10:22:02 PM

The "not gate inverter" is particularly nonsensical.

by userbinator

8/2/2026 at 10:29:00 PM

I feel like I learned something from this about the high level need and attributes of the schmitt trigger design. But I'm sure I'd need to read the actual my sources to realize the physical design.

However the general idea of using hysteresis for signal conditioning seems transferrable to other non physical control systems. I suspect that people who think about what the article is saying rather than reflexively declaring it to be slop could learn something useful.

by neerajsi