12-02-2020, 06:37 PM

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.

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.