Log sweeping a current with SPICE.

Feb 27, 2019 42 Replies

This is a bit more useful. You can see the exponential rise in current, and the deviation above 10 mA.

Save as log.asc:

Version 4 SHEET 1 880 680 WIRE 16 128 -16 128 WIRE 128 128 16 128 WIRE 128 144 128 128 WIRE -16 160 -16 128 WIRE -16 240 -16 224 WIRE 128 240 128 224 FLAG 16 128 D1I1 FLAG 128 240 0 FLAG -16 240 0 SYMBOL current 128 224 M180 WINDOW 0 24 80 Left 2 WINDOW 3 24 0 Left 2 SYMATTR InstName I1 SYMATTR Value {I1} SYMBOL diode -32 160 R0 SYMATTR InstName D1 SYMATTR Value 1N4148 TEXT -48 64 Left 2 !.step dec param I1 1p 100m 3 TEXT -48 40 Left 2 !.op TEXT -48 16 Left 2 ;'Log Current Sweep

Save as log.plt:

[Operating Point] { Npanes: 1 { traces: 1 {524290,0,"V(d1i1)"} X: ('u',1,1e-012,0,1e-006) Y[0]: ('m',0,0,0.03,0.3) Y[1]: ('m',0,1e+308,0.01,-1e+308) Volts: ('m',0,0,0,0,0.03,0.3) Log: 1 0 0 GridStyle: 1 } }

That looks very good to me, Fred.

It did have a CE sticker. Someone cheated.

John Larkin Highland Technology, Inc lunatic fringe electronics

Try running it. It generates one curve per variable chosen.

Cheers

Phil Hobbs

Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC / Hobbs ElectroOptics Optics, Electro-optics, Photonics, Analog Electronics Briarcliff Manor NY 10510 http://electrooptical.net http://hobbs-eo.com

st

e

is not the same as sweeping a source. For that he wants. .dc dec I1 100p 10

0m 10 which DC sweeps current I1 logarithmically from 100pA to 100mA with 1 0 steps per decade. This generates a single curve. Your ridiculous command would produce a gazillion curves.

The question is what is the curve.

I think he's doing this:

formatting link
model

Those upper case F and R on the beta should mean DC current transfers. So h e wants to logarithmically sweep the IC. For a smooth graphic, the .DC swee p on IC allows for 100 points per decade or more. Then he does the arithmen tic on his IC/IB ratio to plot his DC BF or BR versus IC, as the case may b e, to get what he's looking for. Try doing that with STEP.

If there's some component parameter sensitivity he's looking for, dunno lik e doping density, then he can step the above DC sweeps and plot his Beta co mputation through that parameter.

So run it and see.

Cheers

Phil Hobbs

Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC / Hobbs ElectroOptics Optics, Electro-optics, Photonics, Analog Electronics Briarcliff Manor NY 10510 http://electrooptical.net http://hobbs-eo.com

I thought you had sold that place and moved somewhere far from San Francisco. Have you moved yet?

We moved, but less than a mile, so we're still about the same distance from Mt Sutro. The EMI is if anything worse.

We use a diff amp circuit similar to the one in AoE2 fig 5.80, that uses an LT1124 dual opamp. That is a great amp, but it rectifies ambient RF so has resulting quirky DC offsets. We just hacked one channel to use an ADA4522-2, an EMI-hardened, zero-drift dual opamp. The EMI sensitivity dropped at least 100:1.

John Larkin Highland Technology, Inc picosecond timing precision measurement jlarkin att highlandtechnology dott com http://www.highlandtechnology.com

What size disk? Does someone make a usb replacement? SRS found one, but you have to let it format your usb for 720 kB or some such number.

George H.

720k. Unfortunately it's a proprietary HW interface that nobody AFAIK has reverse engineered.

Amazing gizmo though!

Cheers

Phil Hobbs

Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC / Hobbs ElectroOptics Optics, Electro-optics, Photonics, Analog Electronics Briarcliff Manor NY 10510 http://electrooptical.net http://hobbs-eo.com

I rarely have the need for measuring semiconductor parametrics, but at one point I had to, so:

I used a function generator and 3 HP34401A DMMs, controlled them with LabWIndows SW and fed it into an Excel sheet

Takes a long time, and needed to add pulse loading only for higher currents, but cost me nothing, except time coding

Cheers

Klaus

I do a lot of DC measurements, for things that are not specified for RF parts. Like transfer curves, drain curves, Rds-on, C-V curves. RF part data sheets are criminal.

I usually do it all manually and draw the graph on paper as the measurements are made. You usually only need a few points to see what's happening.

formatting link

formatting link

Or you can let a scope do the graphing for you:

formatting link

I need the transfer curve of Mini-Circuits SAV-551; I'll do that today. Of course there is no Spice model.

John Larkin Highland Technology, Inc lunatic fringe electronics

You'd save a lot of time and improve your analysis, if you had a proper two-channel SMU. My 2602A cost $4880 on eBay,* and is a live-saver. It works up to 10A in pulsed mode.

Using its LAN connection, you run it from your computer and jam the data into a spreadsheet. There you can not only graph your data but process it in various ways to learn more about your part. Yes you could get a 2401 for $3k, but you do need two channels to do anything serious. The name of the game is flexibility, speed and efficacy.

  • I also have a 2612A that goes to +/-200 volts.
Thanks, - Win

We have a bunch of Keysight SMUs. My people often use them, with Python programs, to test our gear. I can get the SAV-551 transfer curve in maybe 1/20 of the time it would take them to automate the test and play with spreadsheets and stuff. I don't need publishing-quality graphs (until I write my own book!)

Which all argue for doing this one by hand in 15 minutes. I only need a few points to get the transfer curve, and there's no processing to be done. Actually I only need a single data point.

I could use a few points to make a Spice model, but all I'm doing is making fast logic gates, so I just need a rough curve. The bigger concern is how consistent the parts will be.

formatting link

John Larkin Highland Technology, Inc lunatic fringe electronics

You didn't look hard enough...:-)

  • At this point we have a super-wide-range log sweep of base current.

Oh dear....

Sure, I added that to SuperSpice years ago. The DC sweep setup form has a dec options. It's a proper points per decade sweep of the volt or current source

There is also a hfe example that autoplote Ic/Ib

HFETester.sss

After the run, change the graph to a log scale. It will remain that way after setting.

-- Kevin Aylward

formatting link
- SuperSpice
formatting link

st

e

is not the same as sweeping a source. For that he wants. .dc dec I1 100p 10

0m 10 which DC sweeps current I1 logarithmically from 100pA to 100mA with 1 0 steps per decade. This generates a single curve. Your ridiculous command would produce a gazillion curves.

That's some illogical, unspecified and possibly unreliable program default. You're just hacking around when you use stuff like that.

Looks like the gate voltage will be near 0V, why not return your resistor to a negative voltage, then the exact gate voltage won't matter.

Thanks, - Win

Thanks Kevin, I didn't want to use LTSpice.

Thanks, - Win

I am close to designing my gadget with no negative power supply. The nand gate thing is easy if a negative voltage is available. What I really need is a 0.75 volt bandgap to put in the source. Maybe a silicon diode would work. A c-load opamp could drive the source to any voltage, but that's not sporting.

I want the fastest possible nand gate, and the available tiny-logic things are slow.

It's just an interesting puzzle.

John Larkin Highland Technology, Inc picosecond timing precision measurement jlarkin att highlandtechnology dott com http://www.highlandtechnology.com

I assume you still have a password file. If not, email me and I will send you one.

Did you ever check out the additions I did to my version of the VDMOS model ?

formatting link

-- Kevin Aylward

formatting link
- SuperSpice
formatting link

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required