HP Forums

Full Version: (42S) P-N Junction Diode Polarization (solver program)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is a solver program to calculate the polarization voltage of a p-n junction diode by means of a resistor. You can get the polarization current from Shockley's equation that you can find in MOHPC forum too.

VCC: supply voltage (Volts).
IS: saturation current (Amps). Typ. 1E-9 for Silicon.
VD: diode voltage (Volts). Typ. 0.7 is a good start point.
N: quality factor (n=1 ideal diode, 1<n<2 real diodes).
T: temperature (Kelvin).
R: resistor (Ohms)

00 { 86-Byte Prgm }
01 LBL "DIOD"
02 MVAR "VCC"
03 MVAR "IS"
04 MVAR "VD"
05 MVAR "N"
06 MVAR "T"
07 MVAR "R"
08 RCL "VCC"
09 1.60218ᴇ-19
10 RCL× "VD"
11 1.38064852ᴇ-23
12 ÷
13 RCL÷ "N"
14 RCL÷ "T"
15 E↑X-1
16 RCL× "IS"
17 RCL× "R"
18 -
19 RCL- "VD"
20 .END.

PS: step 15 now includes the proper E↑X-1 thanks to Valentín.
 
Hi, Luigi:

Just a quick note: these 3 steps:

      15 E↑X
      16 1
      17 -


can be replaced by the single step:

      15 E↑X-1


Regards.
V.
(12-02-2020 08:54 PM)Valentin Albillo Wrote: [ -> ] 
Hi, Luigi:

Just a quick note: these 3 steps:

      15 E↑X
      16 1
      17 -


can be replaced by the single step:

      15 E↑X-1


Regards.
V.

¡Gracias maestro!
Reference URL's