next up previous contents
Next: Capacitors Up: Specification Previous: Specification   Contents

State-Space Representation

Figure 3 shows an active realization of a third-order ladder

Figure 3: An active lowpass ladder filter.
Image bw3scheme_png
filter. The filter consists of a network of transadmittance stages and capacitors. With C1 = C2 = C3 = 100pF , Gb1 = 6.283⋅10-7 A/V, Ga11 = Ga33 = - 6.283⋅10-7 A/V, Ga21 = Ga32 = - 4.443⋅10-7 A/V and Ga12 = Ga23 = 4.443⋅10-7 A/V the filter is a Butterworth type lowpass filter with a cutoff frequency of 1kHz. Figure 4 shows the results of a SPICE transfer-function analysis of the circuit.
Figure 4: The transfer function of the filter of Figure 3.
\includegraphics{bw3spice}

The capacitors in the filter act as integrators, and the voltages on the capacitors are the output voltages of these integrators. These voltages form the state variables xi of the filter. Let xi designate the voltage over Ci . It is not difficult to derive the network equations in terms of the state variables:

sC1x1 = Ga11x1 + Ga21x2 + Gb1Vin (1)
sC2x2 = Ga21x1 + Ga23x3 (2)
sC3x3 = Ga32x2 + Ga33x3 (3)
Vout = x3, (4)

where Vin and Vout are the input and output voltages of the filter. Define the state vector X as

X = $\displaystyle \left(\vphantom{
\begin{array}{c}
x_1 \\
x_2 \\
x_3
\end{array} }\right.$$\displaystyle \begin{array}{c}
x_1 \\
x_2 \\
x_3
\end{array}$$\displaystyle \left.\vphantom{
\begin{array}{c}
x_1 \\
x_2 \\
x_3
\end{array} }\right)$

then the network equations become
sX = AX + BVin (5)
Vout = CX + DVin (6)

with

A = $\displaystyle \left(\vphantom{
\renewedcommand{arraystretch}{1}
\begin{array}...
...{C_2} \\
0 & \frac{G_{a32}}{C_3} & \frac{G_{a33}}{C_3}
\end{array} }\right.$$\displaystyle \begin{array}{ccc}
\frac{G_{a11}}{C_1} & \frac{G_{a12}}{C_1} & 0...
...{G_{a23}}{C_2} \\
0 & \frac{G_{a32}}{C_3} & \frac{G_{a33}}{C_3}
\end{array}$$\displaystyle \left.\vphantom{
\renewedcommand{arraystretch}{1}
\begin{array}...
...{C_2} \\
0 & \frac{G_{a32}}{C_3} & \frac{G_{a33}}{C_3}
\end{array} }\right)$   B = $\displaystyle \left(\vphantom{
\renewedcommand{arraystretch}{1}
\begin{array}{c}
\frac{G_{b1}}{C_1} \\
0 \\
0
\end{array} }\right.$$\displaystyle \begin{array}{c}
\frac{G_{b1}}{C_1} \\
0 \\
0
\end{array}$$\displaystyle \left.\vphantom{
\renewedcommand{arraystretch}{1}
\begin{array}{c}
\frac{G_{b1}}{C_1} \\
0 \\
0
\end{array} }\right)$
C = $\displaystyle \left(\vphantom{
\renewedcommand{arraystretch}{1}
\begin{array}{ccc}
0 & 0 & 1
\end{array} }\right.$$\displaystyle \begin{array}{ccc}
0 & 0 & 1
\end{array}$$\displaystyle \left.\vphantom{
\renewedcommand{arraystretch}{1}
\begin{array}{ccc}
0 & 0 & 1
\end{array} }\right)$   D = 0.
(7)
or numerically:

A = $\displaystyle \left(\vphantom{
\renewedcommand{arraystretch}{1}
\begin{array}...
...& 4443 & 0 \\
-4443 & 0 & 4443 \\
0 & -4443 & -6283
\end{array} }\right.$$\displaystyle \begin{array}{ccc}
-6283 & 4443 & 0 \\
-4443 & 0 & 4443 \\
0 & -4443 & -6283
\end{array}$$\displaystyle \left.\vphantom{
\renewedcommand{arraystretch}{1}
\begin{array}...
...& 4443 & 0 \\
-4443 & 0 & 4443 \\
0 & -4443 & -6283
\end{array} }\right)$,   B = $\displaystyle \left(\vphantom{
\renewedcommand{arraystretch}{1}
\begin{array}{c}
6283 \\  0 \\  0
\end{array} }\right.$$\displaystyle \begin{array}{c}
6283 \\  0 \\  0
\end{array}$$\displaystyle \left.\vphantom{
\renewedcommand{arraystretch}{1}
\begin{array}{c}
6283 \\  0 \\  0
\end{array} }\right)$,
C = $\displaystyle \left(\vphantom{
\renewedcommand{arraystretch}{1}
\begin{array}{ccc}
0 & 0 & 1
\end{array} }\right.$$\displaystyle \begin{array}{ccc}
0 & 0 & 1
\end{array}$$\displaystyle \left.\vphantom{
\renewedcommand{arraystretch}{1}
\begin{array}{ccc}
0 & 0 & 1
\end{array} }\right)$   D = 0.
(8)
Because these three matrices completely specify the structure of the filter, FA uses them for this purpose. A FA specification for this filter is
input :

order = 3;

A =
-6283   4443   0
-4443   0      4443
 0     -4443  -6283  ;

B =
6283
0
0 ;

C =
0 0 1 ;
;
The order of the filter must be specified first. Then the state matrices appear, in the order A , B , C , D . The input command as well as the matrix specifications each require a semicolon as termination character. The specification of D is optional. If there is no specification for D (as in this example) it receives a value of zero.

There are several ways to realize the filter network structure as described by matrices (8). One of these realizations is the filter of Figure 3. An alternative realization as an opamp-R-C filter is in Figure 5.

Figure 5: An opamp-R-C realization of the filter described by state matrices (8).
Image bw3sch1_png
If the capacitor values are the same as in Figure 3, and the resistor values are the absolute values of the reciprocal values of the corresponding transadmittances, both examples will have the same state-space representation and transfer function.

Figure 6 shows a signal-flow diagram depicting the state-space model of the example filters of this section.

Figure 6: The signal flow graph for the filters of Figures 3 and 5.
\begin{figure}%\setlength{\unitlength}{1mm}
\begin{center}
\begin{picture}(80...
... \put(70,20){\makebox(0,0)[l]{$a_{33}$}}
\end{picture}\end{center}
\end{figure}

If a user specifies a filter transfer function, FA will determine a network that realizes this transfer function and store the network in the state-space format. FA will show the state matrices if the user enters the command output: filter;. For instance, the input specification

chebyshev(4,0.1);
output: filter;
results in the following.
(4, 4)
  -6.377299e-01   4.650002e-01   0.000000e+00   0.000000e+00
  -4.650002e-01  -6.377299e-01   0.000000e+00   0.000000e+00
  -0.000000e+00  -1.184767e+00  -2.641564e-01   1.122610e+00
   0.000000e+00   0.000000e+00  -1.122610e+00  -2.641564e-01

B =
(4, 1)
  -1.339622e+00
   0.000000e+00
  -0.000000e+00
   0.000000e+00

C =
(1, 4)
   0.000000e+00   0.000000e+00   0.000000e+00   1.000000e+00

D = 0.000000e+00


next up previous contents
Next: Capacitors Up: Specification Previous: Specification   Contents
2009-06-03