22.01.2014 Views

download searchable PDF of Circuit Design book - IEEE Global ...

download searchable PDF of Circuit Design book - IEEE Global ...

download searchable PDF of Circuit Design book - IEEE Global ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Recursive Ladder Method 73<br />

This always indicates to the program that the preceding ladder branch<br />

immittance was zero, i.e., a null prior branch. If the first - 3 in the type<br />

column had been a positive 3, then the program would think that capacitor C 3<br />

would have been in branch I (Figure 4.1). The value is in the units specified<br />

separately, e.g., in microhenrys or pic<strong>of</strong>arads. The Q column is the component<br />

quality factor; it is meaningless for resistors, <strong>of</strong> course. A program feature<br />

allows Q=O to indicate a lossless element (see Section 4.1.4). The two integer<br />

pointers Nand K are used in the program to keep track <strong>of</strong> component<br />

number and branch number, respectively. It is very important that the reader<br />

understand this simple scheme. It puts some <strong>of</strong> the work on the user, but<br />

programs employing this scheme are very efficient in both memory and speed,<br />

The scheme can also be extended in many ways; for example, the column <strong>of</strong><br />

component values is <strong>of</strong>ten the set <strong>of</strong> variables that an optimizer can adjust for<br />

improved performance. Subsequent sections in this chapter extend the topology<br />

capability in many ways.<br />

4,1.4. Ladder A1Ultysis Program Program B4-1 in Appendix B is written in<br />

BASIC language. Some adaptation to make it more appropriate for hand-held<br />

computers is discussed in Section 4.1.5. The program will be explained and<br />

illustrated using the concepts previously discussed.<br />

Program input begins with a request for the frequency, inductance, and<br />

capacitance units; typically, this might be IE6, IE-6, and IE-12 for<br />

megahertz, microhenry, and pic<strong>of</strong>arad, respectively. Then the load resistance<br />

and reactance values, in ohms, are requested. They are assumed to be<br />

frequency independent in this program, but that can be changed without great<br />

difficulty. The power delivered to the load is requested next; this enables<br />

calculation <strong>of</strong> the load current according to (4.1). Referring to Program B4-1<br />

in Appendix B, the main analysis loop at each frequency begins at line 1200,<br />

where the frequency is input in the units previously specified. Radian frequency<br />

is then calculated for subsequent use.<br />

The recursion in Table 4.1 is implemented in the loop from lines 1300<br />

through 1390. It is first initialized with load current magnitude (4.1) and phase<br />

angle zero in code line 1220. Variable FI is a flag to indicate that a null<br />

branch was processed in the previous complex linear update cycle. This is set<br />

up in subroutine 9000, where a zero value is assigned to the null-branch<br />

immittance. Otherwise, branch immittance is assigned by the calculated subroutine<br />

call in line 1385, The variable MK had previously been assigned from<br />

the component type array M(·); in line 1385, type MK= I would send the<br />

program to subroutine 9100, MK=2 to subroutine 9200, etc. The actual<br />

complex linear update (4.3) occurs in subroutine 9900, called at line 1370. A<br />

little thought will show how elementary yet effective this ladder network<br />

analysis scheme can be.<br />

lt is important to understand the operation <strong>of</strong> the element-type suhroutines<br />

9100, 9200, and 9300 in Program B4-1. There is a small amount <strong>of</strong> standard<br />

overhead. If the branch number is odd (an admittance is anticipated), then the

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!