Author Topic: How to plot C-V characteristics of varactor diode in LT-Spice?  (Read 4037 times)

0 Members and 1 Guest are viewing this topic.

Offline kankanasTopic starter

  • Contributor
  • Posts: 27
  • Country: in
Can anyone tell me how to plot C-V characteristics of varactor diode in LTspice?
I made a simple circuit providing reverse bias voltage and swiping the value attached below. I-V plot is observed by this, but how to do C-V plot?
 

Offline kankanasTopic starter

  • Contributor
  • Posts: 27
  • Country: in
Re: How to plot C-V characteristics of varactor diode in LT-Spice?
« Reply #1 on: August 08, 2020, 06:21:34 am »
attached schematic.
 

Offline magic

  • Super Contributor
  • ***
  • Posts: 7453
  • Country: pl
Re: How to plot C-V characteristics of varactor diode in LT-Spice?
« Reply #2 on: August 08, 2020, 06:51:11 am »
Not sure if you can do that with DC sweep.
Try the .step command instead and use AC analysis with the bias voltage source set to 1V AC, measure current through the diode.
 

Offline Jay_Diddy_B

  • Super Contributor
  • ***
  • Posts: 2766
  • Country: ca
Re: How to plot C-V characteristics of varactor diode in LT-Spice?
« Reply #3 on: August 08, 2020, 07:38:17 am »
Hi,

Do it like this:




There is a special block for measuring capacitance.
The scale is 1V per Farad. pV = pF.

I have attached the LTspice model.

Regards,
Jay_Diddy_B

* capometer.asc (1.01 kB - downloaded 381 times.)
« Last Edit: August 08, 2020, 07:40:11 am by Jay_Diddy_B »
 
The following users thanked this post: edavid, PartialDischarge, kankanas

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22436
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: How to plot C-V characteristics of varactor diode in LT-Spice?
« Reply #4 on: August 08, 2020, 05:13:13 pm »
If your sim doesn't have a C-meter (or it's not general purpose -- IIRC XSPICE introduced such a thing, that really just serves to measure pure capacitances (C's) and digital pin loads, nothing else; YMMV in other tools), you'll have to do it the old fashioned way.  For this, set up for AC steady state analysis, with the expression C = Ic / (2*pi*freq*Vc), where Ic is the capacitor current (magnitude), and Vc is the capacitor voltage (magnitude).  Then sweep DC bias.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 
The following users thanked this post: kankanas

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 13216
Re: How to plot C-V characteristics of varactor diode in LT-Spice?
« Reply #5 on: August 08, 2020, 05:33:06 pm »
LTspice does have a capmeter: SpecialFunctions\capmeter, and capometer.sub that works in a .tran analysis, but I've yet to find good instructions for using it.  I did however reverse engineer the subcircuit back to a node and component identical schematic, which may aid an expert in understanding it enough to explain its use.

N.B. pins 1 (DUT+) and 2 (DUT-) have no DC path to ground - you *MUST* provide them externally.
N.B.2. Its outputs 4 (Resistance) and 5 (Capacitance) are blanked for the first 10us of the sim and thereafter will require approx at least 10us to reach steady state.   If you are sweeping bias, sweep it sloooooly!

The attachment is just the capometer internal schematic, its *NOT* a ready to run demo of its use.
« Last Edit: August 10, 2020, 12:39:55 pm by Ian.M »
 
The following users thanked this post: kankanas

Offline Jay_Diddy_B

  • Super Contributor
  • ***
  • Posts: 2766
  • Country: ca
Re: How to plot C-V characteristics of varactor diode in LT-Spice?
« Reply #6 on: August 08, 2020, 06:16:36 pm »
If your sim doesn't have a C-meter (or it's not general purpose -- IIRC XSPICE introduced such a thing, that really just serves to measure pure capacitances (C's) and digital pin loads, nothing else; YMMV in other tools), you'll have to do it the old fashioned way.  For this, set up for AC steady state analysis, with the expression C = Ic / (2*pi*freq*Vc), where Ic is the capacitor current (magnitude), and Vc is the capacitor voltage (magnitude).  Then sweep DC bias.

Tim

Tim,

The cap meter is  not in standard SPICE as you suggest. But the OP asked how to do this in LTspice.

The LTspice model basically performs the math that you describe but it separates the real and imaginary components to obtain the capacitance and resistance, the imaginary and real components of the DUT.

Jay_Diddy_B


 

Offline Jay_Diddy_B

  • Super Contributor
  • ***
  • Posts: 2766
  • Country: ca
Re: How to plot C-V characteristics of varactor diode in LT-Spice?
« Reply #7 on: August 08, 2020, 06:27:07 pm »
LTspice does have a capmeter: SpecialFunctions\capmeter, and capometer.sub that works in a .tran analysis, but I've yet to find good instructions for using it.  I did however reverse engineer the subcircuit back to a node and component identical schematic, which may aid an expert in understanding it enough to explain its use.

N.B. pins 1 (DUT+) and 2 (DUT-) have no DC path to ground - you *MUST* provide them externally.
N.B.2. Its outputs 4 (Resistance) and 5 (Capacitance) are blanked for the first 10us of the sim and thereafter will require approx 10us to reach steady state.   If you are sweeping bias, sweep it sloooooly!

The attachment is just the capometer internal schematic, its *NOT* a ready to run demo of its use.

Ian.M thank you for your reverse engineering efforts.

There are some controls in the Capometer.

If you [CTRL RIGHT-CLICK] on the model you get:



These are let you set the following:

current = 1m  <- this is the amplitude of the small signal test current

freq = 3MEG <- this is the frequency of the small signal test current.

C=0.5u <- not 100% certain, but this may be a blocking capacitor in series with the DUT.

Q=0.25 <- haven't figured this out.


The primary use of this tool was for checking to see how semiconductor parameters, for example, Coss in MOSFET, varies with DC bias.

This thread is inspiring me to make an inductor meter for checking inductance versus DC bias current.

Regards,
Jay_Diddy_B



 
The following users thanked this post: kankanas

Offline Jay_Diddy_B

  • Super Contributor
  • ***
  • Posts: 2766
  • Country: ca
Re: How to plot C-V characteristics of varactor diode in LT-Spice?
« Reply #8 on: August 10, 2020, 12:08:47 pm »
Hi,

I have had another look at what the parameters are used for, thanks to reverse engineering efforts of Ian.M

The capacitor sets the roll-off a low pass filter.

There are a total of four filters cascaded, giving a slope of 80dB/decade.

The filter frequency set by

F = 1/ 2  x Pi x C

(R = 1)

for example C=0.5uF
F =318 kHz

The filter should be set to about 1/10 of the test frequency.

So if you use a 1 MHz test frequency, set C=1.5uF

The parameter Q is not used in the model.

Regards,
Jay_Diddy_B
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 13216
Re: How to plot C-V characteristics of varactor diode in LT-Spice?
« Reply #9 on: August 10, 2020, 12:35:29 pm »
Q was for a commented out (in the current capometer.sub)
 LC 'tank' circuit connected between node 'x' and ground.
Code: [Select]
*C9 x 0 {1/(4*pi*freq/Q)}
*L1 0 x {1/(Q*pi*freq)}
« Last Edit: August 10, 2020, 12:38:09 pm by Ian.M »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf