# PyAMS  (the software under revision)

## BJT(PNP)

The equivalent of ideal BJT of PNP type

### Information

The BJT (PNP) which is represented by The Ebers-Moll model,The equivalent of the transistor can be represented by three current sources Ibc, Ibe and Ict it is dependent on the voltage in the three nodes c, b and e:

### Parameters

NameDefaultDescription
Is1e.0-12Transport saturation current [A]
Vt0.025Voltage equivalent of temperature (kT/qn) [V]
NF1.0Forward current emission coefficient
NR1.0current emission coefficient
area1.0Area
BR1Ideal maximum reverse beta
BF460.0Ideal maximum forward beta

### PyAMS definition

```from PyAMS import Signal,explim
from math  import sqrt

class PNP:
def __init__(self,c,b,e):
#Signals
self.Veb=Signal('in','voltage',e,b)
self.Vcb=Signal('in','voltage',c,b)
self.Icb=Signal('out','current',c,b)
self.Ieb=Signal('out','current',e,b)
self.Iec=Signal('out','current',e,c)
#paramaters
self.NF=1.0           #Forward current emission coefficient
self.NR=1.0           #current emission coefficient
self.Is=1.0e-16       #Transport saturation current
self.area=1.0         #Area
self.BR=1             #Ideal maximum reverse beta
self.BF=460.0         #Ideal maximum forward beta
self.Vt=0.025         #Voltage equivalent of temperature

def analog(self):
Vt=self.Vt
Ieb=self.Is*(explim(self.Veb/(self.NF*Vt))-1)
Icb=self.Is*(explim(self.Vcb/(self.NR*Vt))-1)
Ict=Ibe-Ibc
self.Icb+=Icb/self.BR+(self.Vcb/1e+12)
self.Ieb+=Ieb/self.BF+(self.Veb/1e+12)
self.Iec+=Ict Documentation generated by PyAMS ```