How to build impedance over frequency bode plot (LTSpice)

ltspice

I need to build a bode plot that would show impedance curve of a simplest circuit for a frequency range of 0 to 20kHz. Apparently the x axis should be frequency, y axis should be impedance. I'd like to build one plot for impedance value and another for the phase. I'm using LTSpice IV at the moment.

Best Answer

What is Impedance ? As far as I know: Z = V/I

So if you fix I = 1 (Current source with AC = 1) and plot the voltage you plot V / 1 = ... ?

Aha V / 1 = V = Z !

This is how I simulate and plot the impedance over frequency of some DUT:

schematic

The magnitude will be the impedance The phase you can also plot directly.

If this puzzles you: Imagine in the box there is only a 1 ohm resistor. What would the plot be ?

Now a 10 ohms resistor...

Now a capacitor...

etc...