return only half of the capacitance cgs and cgd

This commit is contained in:
Holger Vogt 2018-04-15 16:59:29 +02:00 committed by rlar
parent 8f1b63c273
commit 33a68b7321
1 changed files with 3 additions and 3 deletions

View File

@ -625,10 +625,10 @@ DevCapVDMOS(double vgd, double cgdmin,
double s = (cgdmax - cgdmin) / (1 + M_PI / 2);
double y = cgdmax - s;
if (vgd > 0)
*capgd = s * tanh(a * vgd) + y;
*capgd = 0.5 * (s * tanh(a * vgd) + y);
else
*capgd = s * atan(a * vgd) + y;
*capgs = cgs;
*capgd = 0.5 * (s * atan(a * vgd) + y);
*capgs = 0.5 * cgs;
*capgb = 0;
}