MATLAB amplifier in detail

From UConn PAN
Jump to navigation Jump to search

The model of the SiPM amplifier is a system of 24 equations in 24 variables that has been linearized so that it can be solved by MATLAB.


Circuit diagram

Circuit diagram

The schematic for the amplifier circuit is shown to the right. Click the thumbnail for a larger image. Node voltages and branch currents are marked on the diagram.


Parameters and variables

The MATLAB model has a number of parameters and variables to describe the amplifier circuit, including the 24 unknowns, 4 inputs, and numerous constants.


Input parameters

There are four input parameters:

  • Input current: Iin (A)
  • Bias voltage: Vb (V)
  • Power voltage: Vc (V)
  • Frequency: f (Hz)


Unknown variables

There are twenty-four unknown variables. The locations (and directions in the case of currents) are labeled on the circuit diagram. All unknowns are assumed to be of the form

,

where X0 gives the amplitude of oscillation, or the AC component, and X1 gives the DC offset.

  • Node voltages: V1, V2, V3, V4, V5, V7, Vout
    • Note: there is no V6 on this circuit; it was a redundant variable with Vc.
  • Resistor currents: I1, I2, I3, I4, I5, I6, I7, It
  • Transistor currents: jb, jc, je, kb, kc, ke
  • Capacitor currents: h1, h2, h3


Constants

Resistors

The resistance values are mostly the same as those marked on the actual amplifier itself, however several were changed for better agreement of the model with data. See the article on the actual SiPM Amplifier for details on that circuit.

Component Resistance
R1 100kΩ
R2 10kΩ
R3 5.6kΩ
R4 1.39kΩ
R5 1kΩ
R6 53Ω
R7 1.55kΩ
Rt 50Ω


Capacitors

The capacitors are not labeled on the amplifier itself or in the documentation supplied with the amplifier, so the following values are guesses as to the capacitances. Note that C4 does not exist.

Component Capacitance
C1 100nF
C2 0.1nF
C3 100nF
C5 10nF


Transistors

The transistor parameters used are selections from the Gummel-Poon SPICE model parameters for these two parts.

Parameter Description T1 value T2 value
VT temperature voltage 0.0259 0.0259
BF ideal forward maximum β 93 34
NF forward current emission coefficient 0.99 1.0
IS transport saturation current 0.24 fA 0.44 fA
ISE B-E leakage saturation current 2.4 fA 87 fA
NE B-E leakage emission coefficient 1.46 1.94
RB zero-bias base resistance 21Ω
RE emitter resistance 0.37Ω


Transistor operating point

Each transistor has an operating point, U1 and U2. Both are initially assumed to be 0.7V. Under DC conditions (Iin = 0A, f = 0Hz) we iterate on U to refine these two parameters. Each iteration refines the operating point by averaging the current operating point with the associated Vbe. Vbe is the base-to-emitter voltage of the transistor and is given by

  • Vbe1 = V3
  • Vbe2 = V7 - V4.


Derived parameters

The following parameters relate to the transistor constants. They are also constants, but are derived from the more fundamental constants given above. As the fundamental parameters are different for each transistor, there is a different set of derived parameters for each transistor.


Equations

There are five categories of equations, which give a set of twenty-four equations in total. Two categories of equations are non-linear and need to be linearized to solve this system as a linear model using matrices.


Resistor voltage drop

The resistor voltage drop equations all take the form

or alternately

.

They describe the voltage drop associated with current crossing a resistor, according to Ohm's Law. As such, there is one equation per resistor in the circuit.

  • R1: Vb - I1R1 = V1
  • R2: V2 - I2R2 = 0
  • R3: V4 - I3R3 = V3
  • R4: V3 - I4R4 = 0
  • R5: V5 - I5R5 = V4
  • R6: Vc - I6R6 = V5
  • R7: Vc - I7R7 = V7
  • Rt: Vout - ItRt = 0


Node charge flow

Each node must maintain a dynamic equilibrium of charge during steady-state operation. That means that flow of charge (current) into a given node must equal flow of charge (current) out of that same node. Thus the node charge flow equations take the form of

or alternately

.

There is one such equation per node, and each node already is labeled on the above diagram by the voltage at that point; thus there is one equation per voltage. Additionally, each transistor acts as a node.

  • V1: I1 = Iin + h1
  • V2: Iin = I2 + h2
  • V3: I3 + h2 = I4 + jb
  • V4: I5 + kb = I3 + jc
  • V5: I6 = I5 + h3
  • V7: I7 = It + ke
  • T1: jb + jc = je
  • T2: ke = kb + kc


Capacitors

Capacitors relate current and voltage according to the equation

.

As stated above, the unknown voltages and currents are assumed to be of the form

so the capacitor equation can be linearized as

where ω = 2πf. This equation works for both AC and DC cases, because in the DC case the derivative on the voltage eliminates any DC bias for the current, but ω = 0 so the equation still holds. There is one such equation for each capacitor.

  • C1 : h1 = iωC1V1
  • C2 : h2 = iωC2(V2 - V3)
  • C3 : h3 = iωC3V5
  • C5 : It = iωC5(V7 - Vout)


Transistor current gain

One of the characteristic equations of a transistor is

.

There is one such equation associated with each transistor.

  • T1: jc = β1jb
  • T2: kc = β2kb


Transistor exponential response

Another characteristic equation of transistors is

.

This equation is linearized by performing a Taylor expansion up to the first degree, which gives

.

Under AC conditions this equation is modified by defining V0 = U. There is one such equation for each transistor

  • T1: Z1jb = Q1(V01 + V3 - U1)
  • T2: Z2kb = Q2(V02 + V7 - V4 - U2)


Solution

The solution (that is, Vout) is found by first iterating as described above to find the transistor operating points to the desired precision, then solving under AC conditions to find the correct Vout. "Solving" (both during iteration and for the final answer) involves running the 24-equation matrix through MATLAB and selecting out the solution generated for the Vout variable. For responses, see the article on the SiPM Amplifier.