Quantcast
Channel: diyAudio
Viewing all articles
Browse latest Browse all 93600

Using Excel "Solver" for MOSFET SPICE params

$
0
0
Motivated by Pierre Touzelet's 2007 AX article for deriving Triode params with Microsoft Excel, I made a video showing how to use "Graph Grabber" and "Solver" to create basic, level 1 spice params for MOSFETs:

https://www.youtube.com/watch?v=2vh1-RbBJa0

The equations in the columns:

Id(sat) = (KP/2) * ((Vgs-vt)^2)*(1+Lambda*Vds)

where KP is mu * Cox * (W/L)

I figger "saturation" to be 90% of the current yielded at the maximum Vds for each set of Vgs curves -- and test for this. Unsaturated data is thus nulled so that no error term is calculated.

Pierre minimized "sum of the squared errors" for triodes. In the case of MOSFETs the saturation currents differ by orders of magnitude so "goodness of fit", "maximizing R-squareds" were calculated. Rather than simply letting "Solver" do its thing, you might want to manually iterate the approximations to derive params which best suit your application.

Viewing all articles
Browse latest Browse all 93600

Trending Articles