# Oscillation in digital circuits?

When designing analog circuits with feedback loops, attention must be paid to concepts such as gain and phase margin, open-loop gain, closed-loop gain, etc. in order to prevent oscillations (if you're not designing an oscillator, that is).

Why is the topic of stability and oscillation primarily relegated to the domain of analog electronics? Digital circuits certainly contain feedback loops. So why do we not have to worry about stability criteria and Bode plots when we design digital circuits?

• How would you define the magnitude (y-axis of the Bode plot) for digital signals? – Curd Jan 6 '18 at 21:45
• So why do we not have to worry about stability criteria Who says we don't? Digital circuits can become unstable as well. But digital circuits are (mostly) time discrete and that means different stability criteria. Bode plots etc. only apply to analog circuits which can be analyzed in the frequency domain. – Bimpelrekkie Jan 6 '18 at 21:54
• You certainly do have to worry about stability criteria with some digital circuits; limit cycle oscillations in IIR filters, or overload conditions in delta-sigma convertors for example. – Brian Drummond Jan 6 '18 at 22:20
• I think I like what Bimpelrekkie said very much; also: it's all "easy" to calculate if your signal is actually digital, but guess what: digital circuits are actually made of analog components. That gate capacitance of your switching mosfet that you're driving with another mosfet? Sure as hell is a capacitance. Sure as hell, things will oscillate. The problem is to design the components and circuits in a way that all oscillations stay small enough to not cross the (typically binary) threshold. – Marcus Müller Jan 6 '18 at 23:12
• @Bimpelrekkie Why could we not break the digital square wave into frequency components and analyze in the frequency domain? If we pass a small-signal square wave through an amplifier, the circuit would then be time discrete, but we would still use standard techniques (Bode plots, etc.) to analyze stability criteria, correct? – pr871 Jan 8 '18 at 14:08