Post Reply 
(42S) P-N Junction Diode Polarization (solver program)
12-02-2020, 06:37 PM (This post was last modified: 12-28-2020 12:26 AM by Luigi Vampa.)
Post: #1
(42S) P-N Junction Diode Polarization (solver program)
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.

Saludos Saluti Cordialement Cumprimentos MfG BR + + + + +
Luigi Vampa +
Free42 '<3' I + +
Find all posts by this user
Quote this message in a reply
12-02-2020, 08:54 PM
Post: #2
RE: (42S) P-N Junction Diode Polarization (solver program)
 
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.

  
All My Articles & other Materials here:  Valentin Albillo's HP Collection
 
Visit this user's website Find all posts by this user
Quote this message in a reply
12-02-2020, 08:55 PM
Post: #3
RE: (42S) P-N Junction Diode Polarization (solver program)
(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!

Saludos Saluti Cordialement Cumprimentos MfG BR + + + + +
Luigi Vampa +
Free42 '<3' I + +
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)