- Open the Loop: Insert a 0V voltage source in the feedback path. A good technique is to insert it between the output and the feedback network to avoid changing the DC operating point.
- Add Stimulus: Configure the inserted voltage source with an AC amplitude of 1 in the “Advanced” tab of the component properties.
- Ensure Proper Biasing: Use a large capacitor (e.g., \(1\text{kF}\)
- Run Simulation: Add a .ac dec 10 1 10meg command to perform frequency analysis.Plot Loop Gain: After running, plot V(fb)/V(in).Magnitude: db(V(fb)/V(in))Phase: ph(V(fb)/V(in))
- Analyze Phase Margin: The point where the gain is 0dB (magnitude is 1) reveals the phase margin (180° - |phase|
