home *** CD-ROM | disk | FTP | other *** search
/ Collection of Education / collectionofeducationcarat1997.iso / SCIENCE / PCECAP30.ZIP / PC-ECAP.DOC < prev    next >
Encoding:
Text File  |  1993-11-01  |  109.7 KB  |  2,442 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.                                   P C - E C A P
  21.  
  22.                                    Version 3.00
  23.  
  24.  
  25.  
  26.  
  27.                              Program Reference Manual
  28.  
  29.  
  30.                       Copyright (c) 1990-93 by Peter Volpa
  31.                                All Rights Reserved
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.                               _______
  45.                          ____|__     |                (R)
  46.                       --|       |    |-------------------
  47.                         |   ____|__  |  Association of
  48.                         |  |       |_|  Shareware
  49.                         |__|   o   |    Professionals
  50.                       -----|   |   |---------------------
  51.                            |___|___|    MEMBER
  52.  
  53.  
  54.  
  55.                                    Peter Volpa
  56.                                  Circuit Systems
  57.                                  418 Church Road
  58.                           Sicklerville, NJ 08081-1727  USA
  59.  
  60.  
  61.  
  62.  
  63.  
  64.                                 Table of Contents
  65.                                 -----------------
  66.  
  67.  
  68.  
  69.           Introduction . . . . . . . . . . . . . . . . . . . . .  1
  70.               License  . . . . . . . . . . . . . . . . . . . . .  2
  71.               Ordering Information . . . . . . . . . . . . . . .  3
  72.                 (also registering by credit card)
  73.               Disclaimer, Trademarks, ASP info . . . . . . . . .  4
  74.               System Requirements  . . . . . . . . . . . . . . .  5
  75.               Installing PC-ECAP . . . . . . . . . . . . . . . .  6
  76.  
  77.           Quick Start  . . . . . . . . . . . . . . . . . . . . .  7
  78.  
  79.           Miscellaneous program information :
  80.               Printer configuration  . . . . . . . . . . . . . .  8
  81.               Data format  . . . . . . . . . . . . . . . . . . .  9
  82.               Accessing data files in other directories  . . . .  9
  83.               Memory requirements vs. maximum circuit nodes  . .  9
  84.               Network / Multi-User operation . . . . . . . . . .  10
  85.  
  86.           Getting Started  . . . . . . . . . . . . . . . . . . .  11
  87.           Main Menu Descriptions . . . . . . . . . . . . . . . .  11
  88.               Select input file  . . . . . . . . . . . . . . . .  11
  89.               Edit input file  . . . . . . . . . . . . . . . . .  12
  90.               Analyze circuit  . . . . . . . . . . . . . . . . .  16
  91.                 Plotting results . . . . . . . . . . . . . . . .  17
  92.               View output data . . . . . . . . . . . . . . . . .  18
  93.               Output to printer  . . . . . . . . . . . . . . . .  18
  94.               Change program settings  . . . . . . . . . . . . .  19
  95.                 (number of sample points, printer type, etc.)
  96.               Quit this program  . . . . . . . . . . . . . . . .  20
  97.  
  98.           Analyzing a Circuit Using PC-ECAP  . . . . . . . . . .  21
  99.               Input format . . . . . . . . . . . . . . . . . . .  22
  100.               Circuit element description  . . . . . . . . . . .  23
  101.               Specifying AC analysis parameters  . . . . . . . .  26
  102.                 (group delay, impedance, vswr, return loss)
  103.               Specifying transient analysis parameters . . . . .  28
  104.               Computational techniques for transient analysis  .  30
  105.               An example!  . . . . . . . . . . . . . . . . . . .  33
  106.               An example of transient analysis . . . . . . . . .  34
  107.               Another example (using the Model Maker)  . . . . .  36
  108.  
  109.           Models . . . . . . . . . . . . . . . . . . . . . . . .  38
  110.               References for modeling  . . . . . . . . . . . . .  39
  111.  
  112.           Revision History . . . . . . . . . . . . . . . . . . .  40
  113.  
  114.           Appendix A - Command Line Switches . . . . . . . . . .  41
  115.           Appendix B - Error Messages  . . . . . . . . . . . . .  42
  116.           Appendix C - PC-ECAP to Lotus 1-2-3 file conversion  .  47
  117.  
  118.           PC-ECAP Reference Manual                          page 1
  119.  
  120.           Introduction
  121.  
  122.           PC-ECAP is an easy to use AC circuit analysis program which
  123.           analyzes circuits consisting of resistors, capacitors,
  124.           inductors, transformers, transmission lines, transistors
  125.           (both bipolar and FET's), operational amplifiers and
  126.           transconductance amplifiers.
  127.  
  128.           Totally integrated in one package, it contains a full screen
  129.           text editor for preparing analysis input, an electronic
  130.           circuit analyzer that calculates your circuit's frequency
  131.           and transient response, a high resolution display plotter
  132.           that supports all common graphics adapters and a high
  133.           resolution plotter compatible with most printers.
  134.  
  135.  
  136.           Features:
  137.  
  138.                *    Calculates Magnitude, Phase, Group Delay,
  139.                     Impedance, VSWR and Return Loss.
  140.  
  141.                *    Calculates Transient response for step, pulse,
  142.                     ramp, square wave, triangle wave and sine wave
  143.                     inputs.  Can also calculate impulse response.
  144.  
  145.                *    Completely menu driven - very easy to use.
  146.  
  147.                *    Can analyze circuits with up to 90 nodes,
  148.                     and with as many as 1000 components.
  149.  
  150.                *    Built in full screen editor with on-line help
  151.                     function.
  152.  
  153.                *    Free input format - common abbreviations such as
  154.                     P, U, N, M, K, MEG, G are recognized.  For
  155.                     example if your circuit has a 47pf capacitor, all
  156.                     you need to enter for its value is 47pf.
  157.  
  158.                *    Supports CGA, EGA, VGA, Hercules, MCGA, AT&T and
  159.                     even the Monochrome Display Adapter.
  160.  
  161.                *    All calculations are done in 15 digits of double
  162.                     precision.
  163.  
  164.                *    High resolution plots on IBM/Epson 9/24 pin,
  165.                     HP LaserJet and HP DeskJet compatible printers.
  166.  
  167.                *    Program may be configured to send its output to
  168.                     LPT1, LPT2, LPT3 or a disk file.
  169.  
  170.                *    Bipolar transistor model maker.  Just enter your
  171.                     transistor's operating parameters and PC-ECAP will
  172.                     create a Hybrid-Pi model for your transistor.
  173.  
  174.                *    Will utilize a math coprocessor if available, but
  175.                     does NOT require one.
  176.  
  177.                *    Built-in network / multi-user support.
  178.           PC-ECAP Reference Manual                          page 2
  179.  
  180.           License
  181.  
  182.           PC-ECAP is distributed as "shareware".  It is NOT public
  183.           domain or free software.
  184.  
  185.           Non-registered users of this software are given the
  186.           opportunity to evaluate the complete PC-ECAP software
  187.           package for 30 days with no obligation.  If, after the
  188.           evaluation period, you find PC-ECAP to be suitable for your
  189.           needs, you must register your copy or discontinue using
  190.           PC-ECAP.
  191.  
  192.           What we're saying is if you use this program, then you
  193.           should pay for your copy.  That way Circuit Systems will be
  194.           able to provide updates, support, and generally stay in
  195.           business.
  196.  
  197.           PC-ECAP is distributed in two forms: a registered version
  198.           and an unregistered version.  The unregistered version is a
  199.           fully-functional program that has all the features of the
  200.           registered version.  However, the unregistered version
  201.           requires the user to go through an initialization procedure
  202.           each time PC-ECAP is started.  The initialization procedure
  203.           requires the user to enter a random number before PC-ECAP
  204.           will run.  The registered version does not have this
  205.           initialization procedure.
  206.  
  207.           The REGISTERED version of PC-ECAP is LICENSED TO THE SINGLE
  208.           PERSON WHO REGISTERED THE PROGRAM AND MAY NOT BE DISTRIBUTED
  209.           IN ANY MANNER.
  210.  
  211.           All users are granted a limited license to copy the
  212.           UNREGISTERED version of PC-ECAP for the trial use of others.
  213.           This license does NOT include distribution or copying of
  214.           this software:
  215.  
  216.  
  217.                *    In conjunction with any other product or service.
  218.  
  219.                *    In general use within a company or school.
  220.  
  221.                *    For any "disk fee" other than a small (generally
  222.                     $2.00 to $5.00) copying charge.
  223.  
  224.                *    For distribution in any modified form.  The file
  225.                     containing this license information MUST be
  226.                     included along with full documentation and all
  227.                     the files that make up this software package.
  228.           PC-ECAP Reference Manual                          page 3
  229.  
  230.           Ordering Information
  231.  
  232.           A PC-ECAP registration licenses you to use the product on a
  233.           regular basis.  Registration also entitles you to technical
  234.           support, update notices, and enables you to get future
  235.           releases of PC-ECAP at a minimal price.
  236.  
  237.           Individual registrations come in two forms.  The first,
  238.           registration only, costs $89 (plus $2.00 shipping and
  239.           handling).  Upon receipt of your paid registration form, we
  240.           will send you the latest registered version of PC-ECAP with
  241.           documentation on the disk.  We also offer PC-ECAP with a
  242.           printed manual.  For $99 (plus $4.00 shipping and handling)
  243.           we will send you the latest registered version of PC-ECAP
  244.           along with a professionally printed bound manual.  New
  245.           Jersey residents should include 6% sales tax.
  246.  
  247.           Site licensing is also available.  Prices are based on the
  248.           estimated number of users.  Please write for more
  249.           information.
  250.  
  251.           A PC-ECAP registration form is included in the distribution
  252.           package for your convenience.  It is in the file ORDERFRM.
  253.           Please take time to fill it out and return it.  If you would
  254.           like high-quality software to continue to be made available
  255.           on a try-first basis and for a reasonable cost, it is up to
  256.           YOU to support such programs.
  257.  
  258.           Please send your registration form, suggestions and any
  259.           comments that you might have to:
  260.  
  261.                     Peter Volpa         or       For questions only,
  262.                   Circuit Systems                 no orders.  Call
  263.                   418 Church Road                  (609) 875-5433
  264.             Sicklerville, NJ  08081-1727           12 - 10 PM EST
  265.  
  266.           Questions may also be sent by Email on CompuServe to
  267.           72202,3043.  I check for mail only about once a week, so it
  268.           might be just as quick to write if you live in the U.S.A.
  269.  
  270.  
  271.           Registering PC-ECAP by Credit Card
  272.  
  273.           We have established a special arrangement with the Public
  274.           (software) Library for those of you who wish to order by
  275.           credit card.  For credit card orders only, you can order
  276.           from PsL with your Master Card, Visa, AmEx or Discover card
  277.           by calling (800) 2424-PsL or (713) 524-6394.  You may also
  278.           FAX to (713) 524-6398 or CompuServe to 71355,470 or mail to
  279.           PsL, P.O. Box 35705, Houston, TX 77235-5705.  These numbers
  280.           are for ordering only.  For information about volume
  281.           discounts, site licensing, shipping of product, returns,
  282.           latest version number or other technical information, please
  283.           write to Circuit Systems or call (609) 875-5433.  All credit
  284.           card orders will be charged $4 for Shipping and Handling.
  285.           PC-ECAP Reference Manual                          page 4
  286.  
  287.           DISCLAIMER
  288.  
  289.           ALTHOUGH WE HAVE EXTENSIVELY TESTED PC-ECAP AND BELIEVE IT
  290.           WILL GIVE ACCURATE RESULTS IF USED CORRECTLY, WE SUPPLY THIS
  291.           PROGRAM AS IS.  CIRCUIT SYSTEMS DISCLAIMS ALL WARRANTIES,
  292.           EXPRESSED OR IMPLIED, THAT THIS PROGRAM IS FIT FOR ANY
  293.           PURPOSE.  CIRCUIT SYSTEMS ALSO ASSUMES NO LIABILITY FOR ANY
  294.           DAMAGES EITHER DIRECT OR CONSEQUENTIAL, WHICH MAY RESULT
  295.           FROM THE USE OF THIS PROGRAM.
  296.  
  297.  
  298.           Trademarks
  299.  
  300.           MS-DOS and Excel are registered trademarks of Microsoft
  301.                Corporation.
  302.  
  303.           PC-DOS, PC/AT, PC/XT, and PS/2 are registered trademarks of
  304.                IBM Corporation.
  305.  
  306.           Compaq is a registered trademark of Compaq Computer Corp.
  307.  
  308.           Hercules is a registered trademark of Hercules Computer
  309.                Technology.
  310.  
  311.           AT&T is a registered trademark of American Telephone and
  312.                Telegraph Company.
  313.  
  314.           Olivetti is a registered trademark of Ing. C. Olivetti.
  315.  
  316.           LaserJet and DeskJet are registered trademarks of
  317.                Hewlett-Packard Company.
  318.  
  319.           Lotus and 1-2-3 are registered trademarks of Lotus
  320.                Development Corporation.
  321.  
  322.           Quattro Pro is a registered trademark of Borland
  323.                International Corp.
  324.  
  325.           AS-EASY-AS is a trademark of TRIUS, Inc.
  326.  
  327.  
  328.           Association of Shareware Professionals
  329.  
  330.           This program is produced by a member of the Association of
  331.           Shareware Professionals (ASP).  ASP wants to make sure that
  332.           the shareware principle works for you. If you are unable to
  333.           resolve a shareware-related problem with an ASP member by
  334.           contacting the member directly, ASP may be able to help. The
  335.           ASP Ombudsman can help you resolve a dispute or problem with
  336.           an ASP member, but does not provide technical support for
  337.           members' products.  Please write to the ASP Ombudsman at 545
  338.           Grover Road, Muskegon MI 49442-9427 or send a Compuserve
  339.           message via CompuServe Mail to ASP Ombudsman 70007,3536.
  340.           The OMB may be contacted by FAX by sending to the ASP FAX
  341.           number: (616) 788-2765.  In communication with the OMB
  342.           please include a telephone number and/or FAX if available.
  343.           PC-ECAP Reference Manual                          page 5
  344.  
  345.           System Requirements:
  346.  
  347.  
  348.                *    IBM PC, XT, AT, PS/2 or compatible.
  349.  
  350.                *    PC or MS-DOS 2.0 or later.
  351.  
  352.                *    One floppy disk drive.
  353.  
  354.                *    384K of system memory.
  355.  
  356.                *    A graphics card is recommended for best
  357.                     performance.  But if all you have is a Monochrome
  358.                     Display Adapter, PC-ECAP will even graph its
  359.                     results on that - though the resolution will be
  360.                     much lower.
  361.  
  362.                *    An IBM/Epson, HP LaserJet or HP DeskJet compatible
  363.                     printer if hard copy is desired.  Most printers
  364.                     used with IBM and IBM compatible computers support
  365.                     one of these standards.
  366.  
  367.  
  368.  
  369.           Attention users of MS-DOS version 3.2
  370.  
  371.  
  372.           Version 3.20 of MS-DOS contains a bug that can cause
  373.           unexpected results in programs that use floating-point math
  374.           (eg. PC-ECAP).
  375.  
  376.           You do not need to read any further unless your system has
  377.           ALL of the following characteristics:
  378.  
  379.               1.    You use MS-DOS version 3.20.
  380.               2.    You boot from a hard-disk drive.
  381.               3.    Your system has a math coprocessor (for instance,
  382.                     an 8087 chip).
  383.               4.    You run programs that use floating-point math
  384.                     (eg. PC-ECAP).
  385.  
  386.           For systems that satisfy all of the preceding conditions,
  387.           you may be able to eliminate floating-point math problems by
  388.           installing a small patch in DOS.  Please contact Microsoft
  389.           for complete details on this.
  390.  
  391.           Since this bug has been fixed in later versions of MS-DOS,
  392.           you may also want to consider upgrading your DOS to a more
  393.           recent version.
  394.           PC-ECAP Reference Manual                          page 6
  395.  
  396.           Before You Begin
  397.  
  398.           The very first thing that you should do before going any
  399.           further is to make a backup copy of your distribution disk.
  400.           To do this just use the DOS command DISKCOPY.  This will
  401.           work whether or not you have two floppy disk drives.  It
  402.           also doesn't matter if the diskette that you want to copy to
  403.           is formatted or not.  DISKCOPY will format it for you.
  404.  
  405.           From the DOS prompt type this:
  406.  
  407.                DISKCOPY A: B:
  408.  
  409.           You will be asked to "Insert source diskette in drive A:"
  410.           This should be your original PC-ECAP disk.  Continue to
  411.           follow the directions on the screen and you will have your
  412.           backup copy.
  413.  
  414.  
  415.           Installing PC-ECAP
  416.  
  417.           We have included an "Install" program with PC-ECAP to make
  418.           installation very easy.  The Install program will not do
  419.           anything "funny".  It will not modify your AUTOEXEC.BAT or
  420.           your CONFIG.SYS files.  What it will do is create a
  421.           subdirectory on your hard drive called "\ECAP".  Then it
  422.           will copy all the needed PC-ECAP files from your floppy
  423.           drive to that subdirectory.  If you have any PC-ECAP program
  424.           files (NOT data files) prior to version 2.0, they will be
  425.           deleted.  That's all.  It is strictly for your convenience.
  426.           The default "from" drive is the drive where INSTALL.EXE is
  427.           located and the default "to" drive is drive C:.  These may
  428.           be changed to any other drives or directories as needed.
  429.  
  430.           If you don't have a hard drive, you don't need to proceed
  431.           any further.  Skip the rest of this section and use your
  432.           backup copy as your working disk.
  433.  
  434.           To use the install program, insert your backup copy of
  435.           PC-ECAP into your floppy drive and type:
  436.  
  437.                     A:INSTALL
  438.  
  439.           Follow the directions and before you know it, you will have
  440.           PC-ECAP on your hard drive.
  441.           PC-ECAP Reference Manual                          page 7
  442.  
  443.           Quick Start
  444.  
  445.           Although there is no substitute for reading this entire
  446.           manual, I know there are those of you who can't wait to try
  447.           a new program.  So for those who like to try-first-read-
  448.           later, this will give you a taste of what PC-ECAP can do.
  449.  
  450.           Start PC-ECAP by typing:
  451.  
  452.                ECAP
  453.  
  454.           at the DOS prompt.
  455.  
  456.           From the main menu choose the "Select input file" selection.
  457.           Select EXAMPLE1.DAT as your input file.  The circuit
  458.           described by EXAMPLE1.DAT is a simple RC low-pass filter and
  459.           is shown below.
  460.  
  461.  
  462.                         1        1.59K                 2
  463.                          ------/\/\/\/\------*---------
  464.                                              |
  465.                                              |
  466.                input                      ___|___  .1uf      output
  467.                                           _______
  468.                                              |
  469.                                              |
  470.                                           0  |
  471.                          --------------------*----------
  472.  
  473.  
  474.           Now from the main menu choose "Analyze circuit".  The
  475.           analysis will begin and you will see the results as the
  476.           program progresses.  When the analysis is complete, the
  477.           results will be plotted on your display.  First you will see
  478.           a plot of Magnitude vs. Frequency.  If you press any key
  479.           other than ESC you will get a plot of Phase vs. Frequency.
  480.           Pressing any key (other than ESC) again will show you
  481.           Magnitude again.  When you are finished, press ESC to return
  482.           to the main menu.
  483.  
  484.           As I said, this is a taste - for the details read on.
  485.           PC-ECAP Reference Manual                          page 8
  486.  
  487.           Printer Configuration
  488.  
  489.           PC-ECAP supports four printer types.  To properly print on
  490.           your printer, you must configure the program for the printer
  491.           that you are using.  The "Change program settings" choice of
  492.           the main menu has an option to "Pick a printer to use".
  493.           Select your printer from the list given.  One of these types
  494.           should be a good match for your printer.  Refer to the
  495.           "Change program settings" section in the manual for more
  496.           details.  Be sure to save your choice.
  497.  
  498.           There might be times when you want to print on single sheets
  499.           of paper instead of the more common continuous forms paper.
  500.           If this is the case, you will need to use the DOS MODE
  501.           command before running PC-ECAP.
  502.  
  503.           Each time that a single page has completed printing, the
  504.           printer stops and returns an error.  Depending on the
  505.           printer, this error may be "OFF-LINE" or "OUT-OF-PAPER".  In
  506.           any case, what gets reported to the program is a "WRITE
  507.           FAULT ERROR".  PC-ECAP was unable to write to the printer.
  508.  
  509.           The DOS MODE command provides a way around this problem.
  510.           MODE will enable an "infinite retry on printer".  Which
  511.           really means - return a printer busy signal and continue
  512.           retrying until the printer accepts the output.  When this is
  513.           done, a "WRITE FAULT ERROR" will not be reported to PC-ECAP
  514.           and the program will simply wait for the next sheet of
  515.           paper.
  516.  
  517.           If your DOS version is 4.01 or less, type this before
  518.           running PC-ECAP:
  519.  
  520.                MODE LPT1:,,P
  521.  
  522.           If you are running DOS 5 or DOS 6, MODE has a slightly
  523.           different format:
  524.  
  525.                MODE LPT1: RETRY=B
  526.  
  527.           If you are printing to a printer other than LPT1, you should
  528.           change the MODE command accordingly.  See your DOS manual if
  529.           you need more help on this.
  530.  
  531.           If you need to use the MODE command you should add it to
  532.           your AUTOEXEC.BAT file.  This setup will install it
  533.           automatically.
  534.           PC-ECAP Reference Manual                          page 9
  535.  
  536.           Users of PC-ECAP versions prior to version 2.0
  537.  
  538.           Before version 2.0, all numbers were represented and stored
  539.           in BCD format.  With version 2.0, numbers are now stored in
  540.           IEEE binary format.  However, PC-ECAP can read any result
  541.           files stored in BCD.  When you access an old file you will
  542.           see the message "Converting file format . . .".  This
  543.           conversion is done "on the fly", meaning the converted file
  544.           is not saved.  To avoid this file conversion every time you
  545.           view an old file, simply rerun an analysis.
  546.  
  547.  
  548.           Accessing PC-ECAP Circuit Files in Other Directories
  549.  
  550.           If you are running DOS 3.0 or later you may easily work with
  551.           circuit files in other directories or on other drives.  To
  552.           do this you must have the directory that contains the
  553.           PC-ECAP program files listed in your PATH.  You should have
  554.           a line similar to this in your AUTOEXEC.BAT file:
  555.  
  556.                PATH=C:\ECAP
  557.  
  558.           Yours will not be EXACTLY like this one.  You may have
  559.           additional directories listed or the drive letter may be
  560.           different.  The important thing is that the PC-ECAP drive
  561.           and directory be part of the PATH.  You may want to refer to
  562.           your DOS manual if you need more information on this.
  563.  
  564.           Once your PATH is set up, DOS will know where to find
  565.           PC-ECAP no matter where you are.  And under DOS 3.0 or
  566.           later, PC-ECAP will know where to find any additional files
  567.           it needs to run.
  568.  
  569.  
  570.           Memory Requirements
  571.  
  572.           As of PC-ECAP version 2.1, you can analyze circuits with up
  573.           90 nodes.  Older versions of the program had a limit of 40
  574.           nodes.  Analysis of a 90 node circuit requires that you have
  575.           450K bytes of free memory.  That is, memory left after you
  576.           load any memory resident programs.  If you don't have this
  577.           much memory available, don't worry.  You will just be
  578.           limited to circuits having fewer nodes.  If you have less
  579.           than 450K free, PC-ECAP will give you its estimate of the
  580.           largest circuit that you may analyze on program start up.
  581.           Keep in mind that this is an estimate and therefore it is
  582.           not exact.  Therefore, if you are told that you have enough
  583.           memory to analyze circuits with up 57 nodes, and you have a
  584.           circuit with 58, give it a try.  It may very well work.
  585.  
  586.           Also please note, that since node numbers start at 0, the
  587.           highest possible node number is 89.
  588.           PC-ECAP Reference Manual                          page 10
  589.  
  590.           PC-ECAP can also use upper memory blocks (UMB's) for its
  591.           memory needs.  You must be running DOS 5 or greater and have
  592.           a line similar to the following in your CONFIG.SYS file:
  593.  
  594.                DOS=UMB
  595.  
  596.           You can check on UMB availability with the DOS MEM command.
  597.           Typing "MEM /C" will list the conventional and upper memory
  598.           in your system.  If no upper memory is listed, either your
  599.           hardware doesn't support UMB's or your system is not set up
  600.           properly.  See your DOS manual if you need help with this.
  601.           PC-ECAP will try to use any free upper memory listed.
  602.  
  603.           The estimate given at program startup will not take into
  604.           account any UMB's.  These blocks can be highly fragmented,
  605.           so it is not possible to know if they are large enough to
  606.           use until they are needed.
  607.  
  608.  
  609.           Network / Multi-User Operation
  610.  
  611.           PC-ECAP has built-in support to run on a local area network.
  612.           Your network must support DOS file-sharing (added with DOS
  613.           version 3.0).  When running on a network, multiple users may
  614.           share circuit description and analysis result files.
  615.  
  616.           PC-ECAP imposes two main restrictions when accessing files
  617.           on a network.  If a file is being edited, no one else may
  618.           run an analysis on it.  If a circuit is being analyzed, no
  619.           one may view or output the results until the analysis is
  620.           complete.  In general, individual file access at any one
  621.           time is restricted to operations that make sense.  For
  622.           example, a circuit whose analysis is only partially complete
  623.           can't be viewed.  Of course you may do any operation you
  624.           choose if you are the only person using a particular file.
  625.  
  626.           If you attempt to access a file that is already in use,
  627.           PC-ECAP will display the message, "File is currently being
  628.           used by someone else".  You may wait until that file is
  629.           available or you may choose to work on a different file.
  630.  
  631.           You should also be aware that PC-ECAP maintains a single
  632.           configuration file.  So if you change some of the program
  633.           settings, and then write these changes to disk, the next
  634.           person on the network to run the program will get these new
  635.           settings.
  636.           PC-ECAP Reference Manual                          page 11
  637.  
  638.           Getting Started
  639.  
  640.           PC-ECAP is started by typing the following command at the
  641.           DOS prompt:
  642.  
  643.                     ECAP   [ options ]
  644.  
  645.           The optional command line switches are used to manually set
  646.           the video mode.  Since PC-ECAP is usually able to do this
  647.           automatically, these options should not be needed by 99% of
  648.           computers.  They are covered separately in Appendix A.  If
  649.           you have trouble seeing the main menu after the opening
  650.           screen, please refer to this appendix.
  651.  
  652.           When PC-ECAP is started, you will first see the main menu.
  653.           The program has been designed to be very easy to use, and
  654.           the menu system plays an important part in reaching this
  655.           goal.  All menu choices may be selected in either one of two
  656.           ways.  First, a selection may be made by typing the first
  657.           letter of an item.  These are highlighted so they stand out.
  658.           Selection may also be made by using the cursor keys (up
  659.           arrow, down arrow, home and end) to highlight a choice.
  660.           When "ENTER" is pressed the selection is made.  The program
  661.           will do its best to logically anticipate your next choice.
  662.           For example, after editing a circuit description and
  663.           returning to the main menu, the choice "Analyze circuit"
  664.           will be highlighted - assuming that after editing, you most
  665.           likely will want to analyze your circuit.
  666.  
  667.           MAIN MENU Descriptions
  668.  
  669.           Select input file
  670.  
  671.                This selection will display an alphabetically sorted
  672.                list of all the circuit description files in your
  673.                current directory.  Use the cursor keys to select a
  674.                file to use.  If you see "more . . ." displayed at the
  675.                beginning or end of the list, this means that there are
  676.                additional files on another page.  You can use the PgUp
  677.                or PgDn keys in addition to the up arrow, down arrow,
  678.                left arrow, right arrow, home and end keys to view
  679.                them.  Once your choice is highlighted just press ENTER
  680.                to select it.
  681.  
  682.                PC-ECAP also has a "Speed Search" feature.  To use it,
  683.                type the first letter of the file that you want to
  684.                select, followed by enough letters to uniquely specify
  685.                it.  In most cases all it takes is 2 or 3 letters.
  686.                Your desired file will be highlighted.  Press ENTER to
  687.                select it.
  688.           PC-ECAP Reference Manual                          page 12
  689.  
  690.                If you want to select a file that is not listed (for
  691.                example - a new circuit description that you want to
  692.                input) press F2.  A window will appear asking for the
  693.                filename.  Type the filename and press ENTER.  All
  694.                filenames should be eight characters or less in length.
  695.                If you type in more than eight, only the first eight
  696.                will be accepted.  A file extension is optional, if it
  697.                is omitted the extension ".DAT" will be appended to the
  698.                filename.  If a filename has an extension other than
  699.                ".DAT", the ".DAT" extension will be substituted in its
  700.                place.
  701.  
  702.                You can delete a highlighted file by pressing F3.  When
  703.                you do so, a window will appear asking, "Delete File?".
  704.                Answer "Yes" to delete.  "No" or ESC will abort the
  705.                operation.
  706.  
  707.           If at any time you want to abort the current operation,
  708.           pressing the ESC key will return you one level up in the
  709.           program.
  710.  
  711.           Edit input file
  712.  
  713.                This starts the built-in full screen editor.  The file
  714.                that you want to edit must be selected first.  If no
  715.                file is selected, you will be sent to the "Select input
  716.                file" screen and then returned to the editor.
  717.  
  718.                The editor is very straight forward to use, just type
  719.                each line followed by the ENTER key.  When in the
  720.                editor these keys have special meaning:
  721.  
  722.                Right Arrow  - move one character to the right.
  723.  
  724.                Left Arrow   - move one character to the left.
  725.  
  726.                Home         - move to the beginning of the line.
  727.  
  728.                End          - move to the end of the line.
  729.  
  730.                Up Arrow     - move one line up.
  731.  
  732.                Down Arrow   - move one line down.
  733.  
  734.                Ctrl Home    - move to the beginning of the file.
  735.  
  736.                Ctrl End     - move to the end of the file.
  737.  
  738.                PgDn         - move 20 lines down.
  739.  
  740.                PgUp         - move 20 lines up.
  741.  
  742.                Del          - will delete the character directly above
  743.                               the cursor.
  744.           PC-ECAP Reference Manual                          page 13
  745.  
  746.                Backspace    - will delete the character to the left of
  747.                               the cursor.
  748.  
  749.                Ins          - will toggle between the insert and
  750.                               replace modes.  In the insert mode the
  751.                               cursor will change to a block cursor and
  752.                               any characters typed will be inserted
  753.                               between any characters already on the
  754.                               screen.  When in replace mode, any
  755.                               characters typed will type over those on
  756.                               the screen.
  757.  
  758.                In addition to these special keys, five function keys
  759.                have special meaning.  Press them alone or in
  760.                combination with the "Alt" key to access the following
  761.                features.
  762.  
  763.                F1 Help
  764.  
  765.                     One of the features that has been added to make
  766.                     PC-ECAP easy to use is the on-line help.  When F1
  767.                     is pressed a window will appear containing useful
  768.                     information on items such as circuit element
  769.                     description formats, analysis range and sweep
  770.                     type, value types and examples.  You can move
  771.                     through these with the PgUp and PgDn keys.  When
  772.                     you are ready to continue editing, pressing F1
  773.                     again or the ESC key will close the window and let
  774.                     you edit.
  775.  
  776.                F2 Model Maker
  777.  
  778.                     The model maker allows you to more accurately
  779.                     model bipolar transistors.  The transistor model
  780.                     used is the Hybrid-Pi model.  Despite its
  781.                     simplicity, this model gives quite good results
  782.                     for analysis up to about one half of the
  783.                     transistor's cutoff frequency (Ft).
  784.  
  785.                     When the model maker is activated, a window will
  786.                     appear.  You will first be asked for the node
  787.                     numbers of the transistor.  Enter these pressing
  788.                     the ENTER key after each entry for base, emitter,
  789.                     and collector.  You next have to answer four
  790.                     questions.  You will be asked (and need to know)
  791.                     the following:
  792.                     
  793.                     Transistor DC collector current - hopefully you
  794.                     will know this.  If not, try your best guess.
  795.           PC-ECAP Reference Manual                          page 14
  796.  
  797.                     Transistor current gain or Beta - since the gain
  798.                     of bipolar transistors varies with collector
  799.                     current, the number that you enter here should be
  800.                     at the collector current specified above for best
  801.                     results.  Usually it is available in the data
  802.                     sheet for the transistor.
  803.  
  804.                     Transistor Gain-Bandwidth product (Ft) - this also
  805.                     should be at the collector current entered above
  806.                     (check the data sheet).
  807.  
  808.                     Transistor common base output capacitance - this
  809.                     is just the base to collector capacitance.
  810.                     Usually it is listed as Cobo in the transistor
  811.                     data.  (Which means output capacitance common base
  812.                     with the emitter open).
  813.  
  814.                     After all the information is entered, the window
  815.                     will close and components for the model will be
  816.                     inserted into your circuit description after the
  817.                     current cursor line.
  818.  
  819.                F3 Insert Line
  820.  
  821.                     Pressing F3 will insert a blank line above the
  822.                     current cursor line and move the cursor line and
  823.                     all lines below it down.
  824.  
  825.                F4 Delete Line
  826.  
  827.                     Pressing F4 will delete the current cursor line
  828.                     and move all lines below it up.  The deleted line
  829.                     will be placed in the cut buffer and can be pasted
  830.                     if desired.
  831.  
  832.                F5 Find Component
  833.  
  834.                     The Find Component feature is useful to find
  835.                     circuit elements in your circuit description file.
  836.                     Just press F5, enter the element to be found, and
  837.                     the line containing the element will be
  838.                     highlighted with the cursor positioned there.  If
  839.                     the element does not exist, a "Component not
  840.                     found" message will appear.
  841.  
  842.                Alt-F1 Net List
  843.  
  844.                     This feature can make it easier to track down
  845.                     errors in your circuit description.  The Net List
  846.                     is a node by node list of all the circuit elements
  847.                     that make up your description.  By comparing the
  848.                     connections in this list to your circuit's
  849.                     schematic, you can verify that your circuit is
  850.                     described properly.
  851.           PC-ECAP Reference Manual                          page 15
  852.  
  853.                     When the Net List is selected, you will be asked
  854.                     whether you want your list sent to the screen or
  855.                     to a defined printer.  If you select screen, a
  856.                     window will appear listing your circuit's nodes
  857.                     and their attached components.  Use the cursor
  858.                     keys to move through this list.  To close this
  859.                     window and return to editing, just press ESC.
  860.  
  861.                Alt-F2 Rename File
  862.  
  863.                     You may change the name of a circuit description
  864.                     file by selecting "Rename File".  A window will
  865.                     appear asking for your new file name.  Type the
  866.                     new name and press ENTER.  ESC will close the
  867.                     window and leave the existing file name unchanged.
  868.                     When you rename and save a file, the old named
  869.                     file will still exist.  This is useful if you have
  870.                     a circuit that is very similar to an existing
  871.                     circuit description.  You can modify the existing
  872.                     description and save it under a new name. If you
  873.                     want to delete the old named file, you can do so
  874.                     from the "Select input file" menu.
  875.  
  876.                Alt-F3 Paste Line
  877.  
  878.                     This option will insert a line saved in the cut
  879.                     buffer above the current cursor line and move the
  880.                     cursor line and all lines below it down.
  881.  
  882.                Alt-F4 Copy Line
  883.  
  884.                     Will copy the current line into the cut buffer.
  885.                     Used with the Paste Line feature above.
  886.  
  887.                Alt-F5 Find Next
  888.  
  889.                     This will find the next component meeting your
  890.                     search criteria as specified under "Find
  891.                     Component".  If you have asked for a unique
  892.                     component, you won't be able to find a "next".
  893.                     This option is most useful when you want to find
  894.                     all occurrences of a part, such as all capacitors
  895.                     or all resistors, etc.
  896.  
  897.                Leaving The Editor
  898.  
  899.                When you are finished with your editing, press the ESC
  900.                key.  If you have made any changes to the file, a
  901.                window will pop up and ask, "Save Changes?".
  902.                Answer "Y" to save all changes, or "N" to ignore all
  903.                changes.  An ESC will cancel the exit, if you have
  904.                changed your mind.
  905.           PC-ECAP Reference Manual                          page 16
  906.  
  907.           Analyze circuit
  908.  
  909.                This choice will begin the actual analysis of the
  910.                circuit selected.  If a file containing the circuit
  911.                description has not been selected, you will first be
  912.                sent to the "Select input file" screen and then
  913.                returned to begin analysis.
  914.  
  915.                PC-ECAP will subject your circuit to a 1 volt signal at
  916.                the selected input node and then calculate the desired
  917.                response at the selected output node.  The input signal
  918.                is from an ideal voltage source and therefore it can
  919.                drive any impedance.  Any output node selected will not
  920.                be loaded by PC-ECAP.
  921.  
  922.                This analysis is repeated for each of the frequency
  923.                points within the specified input range.  The number of
  924.                points is determined by the "Change the number of
  925.                sample points" option under the "Change program
  926.                settings" choice of the main menu.  Its use will be
  927.                fully explained under that heading.  If you are doing
  928.                an AC analysis, PC-ECAP will display magnitude and
  929.                phase results as the analysis progresses.  For a
  930.                transient analysis the individual points are not
  931.                available until the analysis is complete.  The results
  932.                of the analysis are also saved in a disk file.  The
  933.                file will have the same name as the circuit description
  934.                file but will have a file extension of ".OUT".
  935.           PC-ECAP Reference Manual                          page 17
  936.  
  937.           Plotting results
  938.  
  939.           When the analysis is finished, the results will be plotted
  940.           on your display.  For all display adapters other than VGA,
  941.           PC-ECAP will use the highest resolution that your display
  942.           adapter supports.  VGA adapters will be run in EGA mode (640
  943.           x 350).  The resolution used will be as follows:
  944.  
  945.                          CGA          640 x 200
  946.  
  947.                          EGA          640 x 350    enhanced display
  948.  
  949.                                       640 x 350    monochrome display
  950.  
  951.                                       640 x 200    color display
  952.  
  953.                          Hercules     720 x 348
  954.  
  955.                          VGA          640 x 350    monochrome or color
  956.  
  957.                          MCGA         640 x 480    monochrome or color
  958.  
  959.                          AT&T         640 x 400   
  960.  
  961.                          MDA          80 x 25
  962.  
  963.           When viewing the graphs on most display adapters you have
  964.           the options "Zoom", "Print", "Full" and ESC.  The MDA only
  965.           has "Print" and ESC.
  966.  
  967.           "Zoom" allows you to enlarge an area of a graph.  Press the
  968.           'Z' to display two vertical bars with an attached bottom.
  969.           You may continue to press 'Z' to narrow the bars.  The
  970.           number of times this is possible depends on the number of
  971.           sample point you have selected for this analysis.  When the
  972.           bars are at their narrowest, they encompass 35 sample
  973.           points.  When you have the bars at the desired width, you
  974.           can position them horizontally by pressing the Right arrow,
  975.           Left arrow, Home or End keys.  When the bars are where you
  976.           want them, press ENTER to zoom up on the area selected.
  977.  
  978.           When zooming, you may also use the Up arrow and Down arrow
  979.           keys to position the bottom dashed line.  Moving this bar
  980.           sets a minimum vertical scale for your graph.  This can be
  981.           very useful to help view small variations in amplitude.
  982.  
  983.           You may press 'F' at any time for a "Full" screen display of
  984.           your graph.  This simply presents the graph as it was
  985.           originally displayed.
  986.  
  987.           You may also press 'P' at any time to get a hard copy print
  988.           out of just your graphs.  The printout will be Zoomed if the
  989.           graph is Zoomed on your display.  All graphs for your
  990.           analysis will be printed.
  991.  
  992.           Pressing ESC will return you to the main menu.  Any other
  993.           key will cycle through the various plots.
  994.           PC-ECAP Reference Manual                          page 18
  995.  
  996.           View output data
  997.  
  998.                This selection allows you to view the results of
  999.                circuits that have been previously analyzed.  The
  1000.                results will be listed in tabular form on the display.
  1001.                You can use the cursor keys to move through them.  The
  1002.                cursor keys that are active under this selection are
  1003.                the following:
  1004.  
  1005.                     Up Arrow     - scroll up one line.
  1006.  
  1007.                     Down Arrow   - scroll down one line.
  1008.  
  1009.                     PgUp         - scroll up 19 lines.
  1010.  
  1011.                     PgDn         - scroll down 19 lines.
  1012.  
  1013.                     Home         - display the first 19 lines.
  1014.  
  1015.                     End          - display the last 19 lines.
  1016.  
  1017.                The analysis results can also be plotted on the display
  1018.                by pressing the F1 function key.  Plotting works the
  1019.                same way as described in the "Analyze circuit" section.
  1020.                Pressing any key except 'Z', 'F', 'P' or ESC will cycle
  1021.                through the various plots.  Pressing ESC will return
  1022.                you to the tabular listing of the data. Press ESC again
  1023.                to return to the main menu.
  1024.  
  1025.           Output to printer
  1026.  
  1027.                PC-ECAP will normally send the results of an
  1028.                analysis to a printer selected under the "Change
  1029.                program settings" option.  If desired, the results can
  1030.                instead be sent to a disk file for printing later.  The
  1031.                file will have a filename that is the same as the file
  1032.                selected, but with a file extension of ".PRN".
  1033.  
  1034.                Partial output listing
  1035.  
  1036.                This choice will output a listing of the circuit
  1037.                description at the time of analysis and high resolution
  1038.                plots of the results.
  1039.  
  1040.                Full output listing
  1041.  
  1042.                Choosing this option will output a listing of
  1043.                the circuit description at the time of analysis, a
  1044.                tabular listing of the analysis results, and high
  1045.                resolution plots of these results.
  1046.  
  1047.                For printed output it is necessary to have a printer
  1048.                that is compatible with IBM/Epson, HP LaserJet or HP
  1049.                DeskJet printers.  Most printers used with IBM
  1050.                compatible computers support one of these standards,
  1051.           PC-ECAP Reference Manual                          page 19
  1052.  
  1053.                although in a few cases it may be necessary to select
  1054.                the proper mode by means of a switch on the printer.
  1055.                Be sure you have configured PC-ECAP for your particular
  1056.                printer type.  This is done under the "Change program
  1057.                settings" option of the main menu.  (see next section
  1058.                for details).
  1059.  
  1060.           Change program settings
  1061.  
  1062.                PC-ECAP allows you to configure certain aspects of its
  1063.                operation.  The configuration information is saved in a
  1064.                disk file that is read every time the program is run.
  1065.                The name of this file is "PC-ECAP.CFG".  If this file
  1066.                is not present it will be created.  This should only be
  1067.                necessary the very first time you run PC-ECAP.  The
  1068.                file will have as defaults: 70 sample points for
  1069.                analysis, LPT1 selected as the output destination, and
  1070.                an IBM/Epson 9 pin printer selected as your printer
  1071.                type.  Any of these may be changed by means of this
  1072.                menu.
  1073.  
  1074.                Change number of sample points
  1075.  
  1076.                When an analysis is performed, the desired range is
  1077.                divided into a number of sample points.  The number of
  1078.                points may be set to 35, 70, 140, 280 or 560.  It
  1079.                should be noted that you must obviously make a choice
  1080.                between the high analysis resolution provided by
  1081.                selecting 560 sample points and the faster
  1082.                computational speed offered by selecting 35 points.
  1083.                The number of points you select really depends on the
  1084.                circuits that you analyze.  I have found that for most
  1085.                circuits 70 sample points works quite well.  You should
  1086.                increase the number of points if you have a circuit
  1087.                that has abrupt changes in its response.  You may also
  1088.                need to increase the number of points if you analyze
  1089.                circuits over a very wide frequency or time range.
  1090.  
  1091.                Select output destination
  1092.  
  1093.                The output from PC-ECAP can be sent to a printer
  1094.                designated as LPT1, LPT2, or LPT3.  Alternately output
  1095.                may be sent to a disk file for later printing.  For
  1096.                printed output, select the port that you have your
  1097.                printer attached to (normally this will be LPT1).
  1098.  
  1099.                Pick a printer to use
  1100.  
  1101.                PC-ECAP supports four different printer types.  One of
  1102.                these types should be a good match for just about any
  1103.                printer.  The supported printer types are: IBM/Epson 9
  1104.                pin, HP LaserJet (or HP DeskJet), Epson 24 pin and IBM
  1105.                24 pin.  Just choose the type that matches your
  1106.                printer.  Since some printers can emulate more than one
  1107.                type, be sure that your printer and PC-ECAP are both
  1108.           PC-ECAP Reference Manual                          page 20
  1109.  
  1110.                configured for the same printer type.  After you make
  1111.                your selection, it is important that you "Write changes
  1112.                to disk" (see next choice).  If you don't save your
  1113.                printer configuration, PC-ECAP will not be setup
  1114.                properly the next time you use it.  This only needs to
  1115.                be done once.
  1116.  
  1117.                If you have an HP DeskJet printer, you should select HP
  1118.                LaserJet as your printer type.
  1119.  
  1120.                HP LaserJet or HP DeskJet users have an additional
  1121.                choice after the printer type is selected.  You will be
  1122.                asked "2 graphs on page?".  In almost all cases you
  1123.                should answer "Yes" to this question.  If you have an
  1124.                HP DeskJet, you MUST answer "Yes".  If you answer "No"
  1125.                and have an HP LaserJet, graphs will print in landscape
  1126.                mode (sideways).  This option was added mainly to
  1127.                support older HP LaserJet series I printers.  These
  1128.                printers don't have enough memory to print two graphs
  1129.                on a single sheet of paper.  The option to print in
  1130.                landscape mode may be occasionally useful to users of
  1131.                newer HP LaserJet printers.  But since graphic
  1132.                resolution is the same for either choice, most people
  1133.                will favor using less paper over full page graphs.
  1134.  
  1135.                Some printers allow you to manually set a particular
  1136.                font, pitch or mode.  DO NOT DO THIS.  On most printers
  1137.                this will override any printer commands that your
  1138.                computer may send, and PC-ECAP's printed output will
  1139.                not print properly.  If you have a problem with printed
  1140.                output, insure that your printer is in "Pgm" mode.
  1141.                When in "program" mode, your printer will follow your
  1142.                program's commands, and your printed output will appear
  1143.                as intended.
  1144.  
  1145.                Write changes to disk
  1146.  
  1147.                This selection will write any changes in configuration
  1148.                to the "PC-ECAP.CFG" file.  Select this option to make
  1149.                the changes you have made carry over to the next
  1150.                session of PC-ECAP.  If the changes are not written to
  1151.                disk, they will be in effect only for your current
  1152.                session.
  1153.  
  1154.                Return to main menu
  1155.  
  1156.                Returns you to the main menu.
  1157.  
  1158.           Quit this program
  1159.  
  1160.                Ends your current session with PC-ECAP and returns you
  1161.                to DOS.
  1162.           PC-ECAP Reference Manual                          page 21
  1163.  
  1164.           Analyzing a Circuit Using PC-ECAP
  1165.  
  1166.           The first step in analyzing any circuit is to draw the
  1167.           circuit on a piece of paper.  Next number all the nodes in
  1168.           the circuit.  A node is any connection of 2 or more
  1169.           components.  Node numbers must be non-negative integers.
  1170.           There are two rules that you must follow when numbering
  1171.           nodes, first ground or the common connection between input
  1172.           and output must always be designated as node number 0.
  1173.           Secondly, although the nodes may be numbered in any order,
  1174.           none may be skipped.
  1175.  
  1176.           PC-ECAP has a limit of 90 nodes and can handle up to 1000
  1177.           components.  Some components count as more than one circuit
  1178.           element.  You can use the following as a guide;
  1179.  
  1180.  
  1181.                Resistors, Capacitors, Inductors, Transmission
  1182.                lines, Fet's and Transconductance amplifiers
  1183.                each count as one circuit element.
  1184.  
  1185.                OpAmps and Bipolar transistors count as two.
  1186.  
  1187.                Transformers count as four.
  1188.  
  1189.  
  1190.           So it is possible to have fewer than 1000 components in your
  1191.           circuit and still exceed this limit.  Although, in practice,
  1192.           it is highly unlikely that you will reach this limit.
  1193.           PC-ECAP Reference Manual                          page 22
  1194.  
  1195.           Input Format
  1196.  
  1197.           The input format of a PC-ECAP circuit description is easy to
  1198.           learn and remember.  Fields describing a component are of
  1199.           the free format type and are simply separated by spaces.
  1200.           Circuit element names should begin with a letter designating
  1201.           the type of circuit element and may optionally be followed
  1202.           by up to 14 additional alphanumeric characters.
  1203.  
  1204.           Values used to describe a circuit element may be integer
  1205.           (100), floating point (1000.45), either an integer or
  1206.           floating point number followed by an integer exponent
  1207.           (1E-3, 4.7E6) or either an integer or floating point number
  1208.           followed by one of the following scale factors:
  1209.  
  1210.                P=1E-12   N=1E-9    U=1E-6    M=1E-3    K=1E3
  1211.  
  1212.                          MEG=1E6        G=1E9
  1213.  
  1214.           Letters immediately following a number that are not scale
  1215.           factors are ignored, and letters immediately following a
  1216.           scale factor are ignored.  So 10, 10ohms and 10Hz all
  1217.           represent the same number, and u, uf and umhos all represent
  1218.           the same scale factor.  Note that 1000, 1000.0, 1000Hz, 1E3,
  1219.           1.0E3, 1K and 1KHz all represent the same number.
  1220.  
  1221.           In addition, some values may also be expressed in "European"
  1222.           format.  This format has one or more digits followed by a
  1223.           scale factor that also takes the place of a decimal point,
  1224.           followed by one or more digits.  For example, 1500 would be
  1225.           expressed as 1K5.  When values are in this format, these
  1226.           scale factors are recognized: R, K, M.  `R' is equal to a
  1227.           factor of 1.  `K' is equal to 1000, as above.  `M' is equal
  1228.           to a factor of 1E6.  Please note the difference between this
  1229.           use of `M' and `M' in the non-European format above.  When
  1230.           `M' is placed at the end of a number it multiplies the
  1231.           number by 1E-3.  But when `M' is placed between two numbers,
  1232.           the multiplication factor is 1E6.  Be careful!
  1233.  
  1234.  
  1235.                Some examples:
  1236.  
  1237.                6R8 is 6.8,    5K1 is 5100,    4M7 is 4.7 million
  1238.           PC-ECAP Reference Manual                          page 23
  1239.  
  1240.           Circuit Element Description
  1241.  
  1242.           Resistors
  1243.  
  1244.                Rxxxx N1 N2 Value
  1245.  
  1246.           N1 and N2 are the two element nodes.  Value is the
  1247.           resistance in ohms.
  1248.  
  1249.           Examples:
  1250.  
  1251.                R1 1 2 100
  1252.  
  1253.                RLOAD 12 15 1K
  1254.  
  1255.           Capacitors
  1256.  
  1257.                Cxxxx N1 N2 Value
  1258.  
  1259.           N1 and N2 are the two element nodes.  Value is the
  1260.           capacitance in farads.
  1261.  
  1262.           Examples:
  1263.  
  1264.                C4 8 9 1uf
  1265.  
  1266.                COSC 2 3 22pf
  1267.  
  1268.           Inductors
  1269.  
  1270.                Lxxxx N1 N2 Value
  1271.  
  1272.           N1 and N2 are the two element nodes.  Value is the inductor
  1273.           value in henries.
  1274.  
  1275.           Examples:
  1276.  
  1277.                L3 7 0 10mh
  1278.  
  1279.                LTANK 4 5 56uh
  1280.  
  1281.           Transformers
  1282.  
  1283.                Txxxx +Pri -Pri +Sec -Sec  N
  1284.  
  1285.           +Pri and -Pri are the nodes for the transformer primary.
  1286.           +Sec and -Sec are the nodes for the transformer secondary.
  1287.           N is the turns ratio between primary and secondary (Np/Ns).
  1288.           The + and - signs denote the phasing of the windings,
  1289.           e.g. the +Pri node will be in phase with the +Sec node.
  1290.  
  1291.           Example:
  1292.  
  1293.                T1 3 0 4 5 10turns
  1294.           PC-ECAP Reference Manual                          page 24
  1295.  
  1296.           Transmission Lines  (lossless)
  1297.  
  1298.                Xxxxx N1 N2 Impedance Length
  1299.  
  1300.           N1 and N2 are the two ends of the transmission line.  The
  1301.           line model used is unbalanced, so N1 and N2 are referenced
  1302.           to ground.  The line impedance is in ohms.  The Length is
  1303.           specified in meters.
  1304.  
  1305.           Example:
  1306.  
  1307.                X1 1 2 50 3
  1308.  
  1309.           Bipolar Transistors (both NPN and PNP)
  1310.  
  1311.                Bxxxx NB NE NC Beta Rbe
  1312.  
  1313.           NB, NE, and NC are the base, emitter and collector nodes
  1314.           respectively.  Beta is the Transistor current gain.  Rbe is
  1315.           the equivalent base-emitter resistance (in ohms) used in the
  1316.           Hybrid-Pi transistor model.
  1317.  
  1318.           Example:
  1319.  
  1320.                B1 9 0 11 100 1250
  1321.  
  1322.           Field Effect Transistors  (both JFETs and MOSFETs)
  1323.  
  1324.                Fxxxx NG NS ND Gm
  1325.  
  1326.           NG, NS, and ND are the gate, source, and drain nodes
  1327.           respectively.  Gm is the FET transconductance in mhos
  1328.           (Amps/Volt).
  1329.  
  1330.           Example:
  1331.  
  1332.                F2 3 4 0 2000umhos
  1333.  
  1334.           Operational Amplifiers
  1335.  
  1336.                Oxxxx N+ N- NO Gain Rout
  1337.  
  1338.           N+, N-, and NO are the non-inverting input, inverting input
  1339.           and output nodes respectively.  The opamp output is
  1340.           referenced to ground (node 0).  Gain is the open loop gain
  1341.           of the opamp, usually somewhere between 10,000 and 1 million
  1342.           times.  Rout is the open loop output resistance for the
  1343.           opamp.  Real opamps usually have an output resistance
  1344.           between 10 and 150 ohms.
  1345.  
  1346.           Example:
  1347.  
  1348.                O1 1 2 2 100k 75
  1349.           PC-ECAP Reference Manual                          page 25
  1350.  
  1351.           Transconductance Amplifiers
  1352.  
  1353.                Gxxxx N+ N- NO+ NO- Gm
  1354.  
  1355.           N+ and N- are the non-inverting input and inverting input.
  1356.           NO+ and NO- are the non-inverting output and the inverting
  1357.           output.  Please note that these outputs are floating.  In
  1358.           other words the actual output is not from either output to
  1359.           ground, but is developed between the outputs.  Either output
  1360.           (but not both) may be tied to ground if a single ended
  1361.           output is desired.  Gm is the amplifier transconductance in
  1362.           mhos (Amps/Volt).  The transconductance amplifier may be
  1363.           used in its own right or it may be used to perform a voltage
  1364.           to current conversion, sometimes useful when simulating
  1365.           other devices.
  1366.  
  1367.           Example:
  1368.  
  1369.                Gxxxx 1 2 3 0 100mmhos
  1370.  
  1371.  
  1372.           A Few Words About Transconductance Amplifiers
  1373.  
  1374.           Although most people are familiar with bipolar transistors
  1375.           and operational amplifiers, not as many know about
  1376.           transconductance amplifiers.  These amplifiers are another
  1377.           variation of a dependent source.  The common bipolar
  1378.           transistor is a current controlled current source; A small
  1379.           current entering the base controls a much larger current
  1380.           flowing between the collector and emitter.  The opamp is a
  1381.           voltage controlled voltage source; A very small input
  1382.           voltage effectively controls a much larger voltage swing at
  1383.           the output.  With this said, a transconductance amplifier
  1384.           can be described as a voltage controlled current source; A
  1385.           small voltage difference between the two inputs controls a
  1386.           current flowing either into or out of the output.  In our
  1387.           case this current will flow from one output to the other.
  1388.  
  1389.  
  1390.           Valid Circuit Elements
  1391.  
  1392.           All of the lines that make up a PC-ECAP circuit description
  1393.           file must either begin with one of the previously mentioned
  1394.           elements, be blank, or be a comment.  To add a comment to
  1395.           your circuit description, begin the line with a semicolon.
  1396.           An example comment might be:
  1397.  
  1398.                ; this begins the second filter section
  1399.  
  1400.           If a line begins with something other than a circuit
  1401.           element, a blank line, or a comment, PC-ECAP will abort the
  1402.           analysis and flag the bad line.
  1403.           PC-ECAP Reference Manual                          page 26
  1404.  
  1405.           Specifying AC Analysis Parameters
  1406.  
  1407.  
  1408.           Once your circuit has been described you need to determine
  1409.           how it will be analyzed.  PC-ECAP will subject your circuit
  1410.           to a 1 volt signal at the selected input node and then
  1411.           calculate the response at the selected output node.  In an
  1412.           AC analysis, the frequency of the input signal can be swept
  1413.           over the specified range in either a linear or logarithmic
  1414.           fashion.
  1415.  
  1416.           The PLOT statement is used to tell PC-ECAP which node of
  1417.           your circuit will be used for the input, which node will be
  1418.           used for the output, the frequency range that you want to
  1419.           analyze, the sweep mode (linear or logarithmic) and the
  1420.           analysis type.  PLOT should be the last statement in your
  1421.           description.
  1422.  
  1423.           This is the AC format for the PLOT statement:
  1424.  
  1425.  
  1426.             PLOT NI NO Start-freq. Stop-freq. Plot-mode Plot-type
  1427.  
  1428.  
  1429.           PLOT may optionally be abbreviated to P.  NI is the
  1430.           circuit's input node.  NO is the circuit's output node.
  1431.           Start-frequency is simply the beginning frequency for the
  1432.           analysis.  Stop-frequency is the upper frequency limit of
  1433.           the analysis.  Plot-mode specifies whether a linear or a
  1434.           logarithmic frequency sweep is to be performed.  This may be
  1435.           abbreviated to 3 letters (LIN or LOG) if desired.
  1436.  
  1437.           Plot-type may optionally be used to specify the analysis
  1438.           type.  If it is not specified, magnitude and phase will be
  1439.           calculated.  To calculate group delay, impedance, VSWR or
  1440.           return loss, you must provide this parameter.
  1441.  
  1442.  
  1443.                for:                   Plot-type is:
  1444.  
  1445.           group delay                   Delay
  1446.  
  1447.           impedance in magnitude        ZPolar
  1448.            and phase format
  1449.  
  1450.           impedance in Real and         ZRectangular
  1451.            Imaginary format
  1452.  
  1453.             VSWR                        SWR    <reference impedance>
  1454.           (voltage standing
  1455.                wave ratio)
  1456.  
  1457.           return loss                   RLoss  <reference impedance>
  1458.  
  1459.  
  1460.           Plot-type may be abbreviated to the letters that are
  1461.           capitalized.
  1462.           PC-ECAP Reference Manual                          page 27
  1463.  
  1464.           Impedance, VSWR (voltage standing wave ratio) and return
  1465.           loss calculations will be done at the input node specified.
  1466.           This doesn't mean that you can't calculate an output
  1467.           impedance instead.  If your circuit's output is node 8, and
  1468.           you are interested in its output impedance, just specify
  1469.           node 8 as the input node for the PLOT statement.  You can
  1470.           look at it this way, to determine impedance, PC-ECAP must
  1471.           apply an excitation signal to your circuit.  This signal is
  1472.           always applied to the node listed as the input node for your
  1473.           circuit.
  1474.  
  1475.           For VSWR and return loss, a reference impedance must also be
  1476.           specified.  This is the impedance that your circuit is
  1477.           supposed to be matched to.  This is usually 50 or 75 ohms,
  1478.           but it may be any positive value.
  1479.  
  1480.           As an example of what we have been discussing, we might have
  1481.           a circuit where node 2 is the input and node 5 is the
  1482.           output.  The lowest frequency that we want to look at is 100
  1483.           Hz and the highest frequency is 10 KHz.  We are only
  1484.           interested in magnitude and phase vs frequency.  And we want
  1485.           to sweep this range logarithmically.
  1486.  
  1487.           This PLOT statement will specify all this:
  1488.  
  1489.                PLOT 2 5 100HZ 10KHZ LOG
  1490.  
  1491.           For another example, we have a circuit with node 1 as its
  1492.           input.  We are interested in determining the input VSWR vs
  1493.           frequency.  The input is supposed to match 50 ohms, and
  1494.           operate from 7.0 MHz to 7.3 MHz.
  1495.  
  1496.           This is the PLOT statement that will do the job:
  1497.  
  1498.                PLOT 1 5 7MEG 7.3MEG LIN SWR 50
  1499.  
  1500.           Please note that for impedance, VSWR or return loss
  1501.           calculations, the output node specified in the PLOT
  1502.           statement is unimportant.  It is ignored.
  1503.  
  1504.  
  1505.           What is Group Delay anyway?
  1506.  
  1507.           If a circuit is designed to pass all important frequencies
  1508.           with equal amplitude and have absolutely linear amplitude
  1509.           characteristics, a waveform may still pass through badly
  1510.           distorted.  The problem is delay distortion; if all
  1511.           frequency components do not pass through a circuit with the
  1512.           same time delay, the output waveform will not look the same
  1513.           as the input.  Group delay is the rate of phase shift vs
  1514.           change of frequency, and is defined as:
  1515.  
  1516.                                    1    d0
  1517.                     group delay = --- x ---  seconds
  1518.                                   360   df
  1519.           PC-ECAP Reference Manual                          page 28
  1520.  
  1521.           Specifying Transient Analysis Parameters
  1522.  
  1523.           PC-ECAP also has the capability to analyze the transient
  1524.           behavior of a circuit.  This feature can give you important
  1525.           information about a circuit's response vs time.  You have a
  1526.           choice of eight different input waveforms for analysis.  In
  1527.           addition, a circuit's impulse response can also be
  1528.           calculated.
  1529.  
  1530.           As with an AC analysis, the program will subject your
  1531.           circuit to a 1 volt (peak) signal from an ideal voltage
  1532.           source.  The input waveform can be one of the following: a
  1533.           step (unit step, and two modified step functions), pulse,
  1534.           ramp, square wave, triangle wave, or sine wave.  You may
  1535.           optionally add noise to any of these waveforms.
  1536.  
  1537.           The PLOT statement is used to specify all the parameters
  1538.           needed for a transient analysis.  This is its format:
  1539.  
  1540.  
  1541.             PLOT NI NO TStart TStop TRAN Wave-Type TPeriod NOISE
  1542.  
  1543.  
  1544.           PLOT may be abbreviated to P.  NI is the circuit's input
  1545.           node.  NO is the circuit's output node.
  1546.  
  1547.           TStart is a time offset for the input waveform.  The input
  1548.           waveform will be delayed by the amount specified by TStart.
  1549.           It can be helpful to delay the rising edge of the input when
  1550.           analyzing some circuits.
  1551.  
  1552.           TStop is just the final time for the analysis.  TRAN tells
  1553.           PC-ECAP that a transient analysis is desired.
  1554.  
  1555.           Wave-Type selects the waveform at the input and should be
  1556.           one of the these:
  1557.  
  1558.  
  1559.                STEP
  1560.  
  1561.                This is a unit step.  The wave is 0 volts when time
  1562.                is less then TStart.  At TStart, the voltage goes to 1
  1563.                volt and stays there.
  1564.  
  1565.  
  1566.                STEP1  [rise-time]
  1567.  
  1568.                This is a modified step function.  It behaves like the
  1569.                STEP just discussed, but has a rise time that is shaped
  1570.                by a COSINE function.  A rise time must be specified
  1571.                for this function.  The rise time is the amount of time
  1572.                the leading edge takes to go from 20% to 80% of its
  1573.                final value.  If a rise-time is not specified or is
  1574.                zero, it will default to TStop / 8.
  1575.           PC-ECAP Reference Manual                          page 29
  1576.  
  1577.                STEP2  [rise-time]
  1578.  
  1579.                This is a another modified step function.  It behaves
  1580.                like the STEP discussed before, but has a rise time
  1581.                that is shaped by a RAMP function.  A rise time must be
  1582.                specified for this function.  The rise time is the
  1583.                amount of time the leading edge takes to go from 20% to
  1584.                80% of its final value.  If a rise-time is not
  1585.                specified or is zero, it will default to TStop / 8.
  1586.  
  1587.  
  1588.                PULSE  [pulse-width]
  1589.  
  1590.                This pulse is 0 volts at any time less than TStart.  At
  1591.                TStart, it goes to 1 volt and stays there for a time
  1592.                equal to "pulse-width".  After this time (TStart +
  1593.                pulse-width) the voltage returns to 0 for the remainder
  1594.                of the analysis.  "Pulse-width" must be specified.  If
  1595.                it is not or is zero, it will default to one-half
  1596.                "TStop".
  1597.  
  1598.  
  1599.                RAMP  [pulse-width]
  1600.  
  1601.                This waveform is 0 volts for any time less than TStart.
  1602.                At TStart the voltage will linearly increase, finally
  1603.                reaching 1 volt when time is equal to TStart + pulse-
  1604.                width.  At the next time step, the voltage will
  1605.                immediately return to 0.  As with the PULSE, "Pulse-
  1606.                width" determines the width of the RAMP and must be
  1607.                specified.  If it is not or is zero, it will default to
  1608.                one-half "TStop".
  1609.  
  1610.  
  1611.                SQRW  [frequency]
  1612.  
  1613.                This will generate a square wave.  At TStart the
  1614.                voltage will jump to +1 volts.  Half way through the
  1615.                cycle, the voltage will change to -1 volts.  This cycle
  1616.                will continue forever.  The frequency is determined by
  1617.                the "Frequency" parameter which must be specified.  If
  1618.                "Frequency" is missing, it will default to 1/TStop.
  1619.  
  1620.  
  1621.                TRIW  [frequency]
  1622.  
  1623.                This will generate a triangle wave.  At TStart the
  1624.                voltage will linearly increase to +1 volts.  A quarter
  1625.                way through the cycle, the voltage will begin to ramp
  1626.                down.  When the voltage reaches -1 volts, the ramp will
  1627.                reverse and start back up to +1 volts.  This cycle will
  1628.                continue forever.  The frequency is determined by the
  1629.                "Frequency" parameter which must be specified.  If
  1630.                "Frequency" is missing, it will default to 1/TStop.
  1631.           PC-ECAP Reference Manual                          page 30
  1632.  
  1633.                SINW  [frequency]
  1634.  
  1635.                This will generate a sine wave.  At TStart the voltage
  1636.                will increase to +1 volts.  A quarter way through the
  1637.                cycle, the voltage will reverse direction.  When the
  1638.                voltage reaches -1 volts, the wave will reverse and
  1639.                start back up to +1 volts.  This cycle will continue
  1640.                forever.  The frequency is determined by the
  1641.                "Frequency" parameter which must be specified.  If
  1642.                "Frequency" is missing, it will default to 1/TStop.
  1643.  
  1644.  
  1645.                IMPULSE
  1646.  
  1647.                This option will compute the impulse response for your
  1648.                circuit.  The impulse function is defined as a pulse of
  1649.                infinitely high amplitude with an infinitely short
  1650.                duration.  The area under this pulse (voltage x time)
  1651.                is equal to 1.  Although this pulse can't truly exist
  1652.                in the real world, it is nevertheless useful in some
  1653.                situations.  The impulse response always starts at time
  1654.                0.  TStart is ignored (but a value MUST still be
  1655.                supplied).
  1656.  
  1657.  
  1658.                NOISE
  1659.  
  1660.                Noise is an optional parameter that can be added to any
  1661.                of the waveforms described other then IMPULSE.  When
  1662.                present, pseudorandom noise is added to the wave
  1663.                specified.
  1664.  
  1665.  
  1666.           Computational Techniques Used in PC-ECAP Transient Analysis
  1667.  
  1668.           The method PC-ECAP uses to compute transient response is a
  1669.           bit unconventional and deserves some explanation.  It's not
  1670.           necessary to understand all of this in detail, but a basic
  1671.           understanding of the principals involved will help you get
  1672.           the most out of the program.
  1673.  
  1674.           You may have heard of something called a Fourier transform.
  1675.           This is a mathematical operation that can convert from the
  1676.           time domain (amplitude vs. time) to the frequency domain
  1677.           (amplitude vs. frequency).  With the Fourier transform you
  1678.           can take a waveform and break it down into the series of
  1679.           individual frequency components that make it up.
  1680.  
  1681.           As with most mathematical operations, there exists an
  1682.           inverse to the Fourier transform.  The Inverse Fourier
  1683.           transform can take a set of frequency components and
  1684.           construct a waveform in the time domain.  This is a very
  1685.           powerful tool.  It allows you to work in the frequency
  1686.           domain when convenient and then convert to the time domain
  1687.           only when desired.
  1688.           PC-ECAP Reference Manual                          page 31
  1689.  
  1690.           PC-ECAP can easily calculate the frequency response of a
  1691.           circuit (amplitude vs. frequency).  By using an Inverse
  1692.           Fourier transform, we can calculate what is called the
  1693.           Impulse response of the circuit.  If you know the Impulse
  1694.           response of a circuit, it is possible to find the response
  1695.           to ANY other waveform by a mathematical operation called
  1696.           convolution.  This is another powerful technique and certainly
  1697.           involves a lot of underlying mathematics.
  1698.  
  1699.           So, to calculate the transient response of a circuit,
  1700.           PC-ECAP first computes the magnitude and phase at a series
  1701.           of harmonically related frequencies.  Next it performs a
  1702.           Discrete Inverse Fast Fourier Transform.  At this point we
  1703.           have the Impulse response.  In the next step, a Discrete
  1704.           Convolution is performed between the Impulse response and
  1705.           the desired waveform that was specified at the circuit's
  1706.           input.  The result is the transient response of the circuit
  1707.           to the waveform specified.
  1708.  
  1709.           It is important to realize that the accuracy of the analysis
  1710.           depends on the number of sample points chosen.  The number
  1711.           of sample points determine not only the number of points
  1712.           that you wind up with in the time domain, but they also
  1713.           determine the number of frequencies used in the Inverse FFT.
  1714.           Choosing too few sample points will impair the accuracy of
  1715.           the analysis.
  1716.  
  1717.           How few is "too few"?  That depends on your circuit.  Every
  1718.           circuit that contains at least one capacitor or inductor has
  1719.           what is called a "natural frequency".  Also sometimes called
  1720.           the "natural response".  Some circuits have many "natural
  1721.           frequencies".  These are nothing more than the various time
  1722.           constants (for RC's or RL's) or resonant frequencies (for
  1723.           LC's) in a circuit.  If you have some background in
  1724.           electronic theory, these are the poles and zero's of a
  1725.           circuit.
  1726.  
  1727.           If you pick too few sample points, the program will not use
  1728.           enough frequencies to properly characterize your circuit.
  1729.  
  1730.           The time scale you select also effects the accuracy of your
  1731.           results.  If the time scale is large compared to the natural
  1732.           frequencies of your circuit, you will have to increase the
  1733.           number of sample points used.  If the time scale is too
  1734.           small, the analysis frequencies will start above the
  1735.           circuit's natural frequency and accuracy will suffer.
  1736.  
  1737.           For the problem of picking a time scale that is too short,
  1738.           the thing to remember is the Impulse response of a circuit
  1739.           must die out to zero in the time frame specified.  This is
  1740.           important and easily determined.  If you want to check this
  1741.           condition, specify IMPULSE as your Wave-Type.  You should
  1742.           see your circuit's response go to zero sometime before the
  1743.           TStop time.  If it doesn't, you must increase TStop.
  1744.           PC-ECAP Reference Manual                          page 32
  1745.  
  1746.           A circuit that has a large span of natural frequencies will
  1747.           require the most care to analyze.  For the low natural
  1748.           frequencies, the TStop time must be set large enough so the
  1749.           Impulse response dies out to zero.  At the same time, the
  1750.           number of sample points must be great enough to properly
  1751.           characterize the high natural frequencies.
  1752.  
  1753.           All this will make more sense when you actually analyze a
  1754.           few circuits.  Vary the number of sample points to see the
  1755.           effect.  Try setting the TStop time much larger than the
  1756.           lowest natural frequency in your circuit.  Try setting the
  1757.           TStop time shorter than the highest natural frequency in the
  1758.           circuit.  By trying these things you will quickly get a feel
  1759.           for their effect and understand more than you can by just
  1760.           reading.
  1761.           PC-ECAP Reference Manual                          page 33
  1762.  
  1763.           An Example Please!
  1764.  
  1765.           It's about time now to look at an example circuit.  We will
  1766.           analyze a simple RC low-pass filter.  The circuit is shown
  1767.           below.
  1768.  
  1769.  
  1770.                         1        1.59K                 2
  1771.                          ------/\/\/\/\------*---------
  1772.                                              |
  1773.                                              |
  1774.                input                      ___|___  .1uf      output
  1775.                                           _______
  1776.                                              |
  1777.                                              |
  1778.                                           0  |
  1779.                          --------------------*----------
  1780.  
  1781.  
  1782.           This circuit has 3 nodes and they have been numbered.
  1783.           Notice that we have numbered the common node between the
  1784.           input and the output as node 0.  This is required.
  1785.  
  1786.           The next thing to do is to describe the circuit to PC-ECAP
  1787.           so that it will know just what is connected to what and the
  1788.           component values associated with each part.  The next two
  1789.           lines will completely describe this circuit:
  1790.  
  1791.                R 1 2 1.59K
  1792.                C 2 0 .1UF
  1793.  
  1794.           The first line says to PC-ECAP that a resistor is connected
  1795.           between nodes 1 and 2 and has a value of 1.59K (notice that
  1796.           you don't have to enter 1590 for the resistor value, PC-ECAP
  1797.           understands what "K" means).
  1798.  
  1799.           The second line reads "a capacitor is connected between
  1800.           nodes 2 and 0 and has a value of .1uf".  Now all we have to
  1801.           tell PC-ECAP is where we want to put the input signal, where
  1802.           we want to look for the output and what frequency range we
  1803.           want to cover.  This is done with the PLOT statement.  For
  1804.           this circuit we want node 1 to be our input and node 2 to be
  1805.           our output.  Also we want to sweep the input frequency from
  1806.           100Hz to 10KHz in a logarithmic fashion.  The next line will
  1807.           tell PC-ECAP all this.
  1808.  
  1809.                PLOT 1 2 100 10KHZ LOG
  1810.  
  1811.           On your distribution disk (or in the archive file if you got
  1812.           this program from a BBS) you will find EXAMPLE1.DAT.  This
  1813.           file contains the circuit description for this circuit.
  1814.           PC-ECAP Reference Manual                          page 34
  1815.  
  1816.           If you haven't started PC-ECAP yet do so now.  From the
  1817.           main menu choose the "Select input file" selection.  Select
  1818.           EXAMPLE1.DAT as your input file.  Next from the main menu
  1819.           choose "Edit input file".  The editor will load EXAMPLE1.DAT
  1820.           and you will see the following:
  1821.  
  1822.  
  1823.           ; Example1.dat - RC low-pass filter with a cutoff frequency
  1824.           ;                 of 1 KHz.
  1825.  
  1826.           R 1 2 1.59k
  1827.           C 2 0 .1UF
  1828.           PLOT 1 2 100 10KHZ LOG
  1829.  
  1830.           This circuit description tells PC-ECAP all that it needs to
  1831.           know about this circuit and how you want to analyze it.
  1832.  
  1833.           Press ESC to get back to the main menu and now choose
  1834.           "Analyze circuit".  The analysis will begin and you will see
  1835.           the results as the program progresses.  When the analysis is
  1836.           complete, the results will be plotted on your display.
  1837.           First you will see a plot of Magnitude vs. Frequency.  If
  1838.           you press any key other than ESC you will get a plot of
  1839.           Phase vs. Frequency.  Pressing any key (other than ESC)
  1840.           again will show you Magnitude again.  If you have an EGA
  1841.           with 256K of memory or a Hercules or VGA card, both pages of
  1842.           graphics memory will be used and the change from Phase to
  1843.           Magnitude and back will be instantaneous.
  1844.  
  1845.  
  1846.           An Example of Transient Analysis
  1847.  
  1848.           EXAMPLE2.DAT is the same circuit as EXAMPLE1.DAT.  But this
  1849.           time we're going to run a transient analysis.  We'll pick a
  1850.           Stop time of 3 ms and a 1.5 ms Pulse for the input.  The
  1851.           input pulse will be delayed .1 ms to show the leading edge
  1852.           better.  This is the circuit listing:
  1853.  
  1854.           ; Example2.dat - RC low-pass filter with cutoff frequency of
  1855.           ;   1 KHz.  This example shows how to analyze a circuit's
  1856.           ;   transient response.
  1857.  
  1858.           R 1 2 1.59K
  1859.           C 2 0 .1UF
  1860.           PLOT 1 2 .1MS 3MS TRAN PULSE 1.5MS
  1861.  
  1862.           That's all there is to it.  Select EXAMPLE2.DAT and run an
  1863.           analysis on it.  Try varying the Stop time or the Pulse
  1864.           width.
  1865.           PC-ECAP Reference Manual                          page 35
  1866.  
  1867.           Another Example
  1868.  
  1869.           We have included a few other sample circuits with PC-ECAP.
  1870.           EXAMPLE3.DAT is a 75 ohm high-pass filter that can be used
  1871.           to reject television interference.  EXAMPLE4.DAT is a
  1872.           band-pass filter for use as a modem receive filter.  This
  1873.           example shows how group delay is calculated.  EXAMPLE6.DAT
  1874.           is an LC low-pass filer for which input impedance is
  1875.           calculated.  EXAMPLE7.DAT is an example of the calculation
  1876.           of return loss.  EXAMPLE8.DAT is an LC band-pass filter for
  1877.           which VSWR is calculated.  EXAMPLE9.DAT is an LC low-pass
  1878.           filter with a Square wave as input (for another example of
  1879.           transient analysis).  If you'd like, take a look at them and
  1880.           run an analysis.  You may want to draw them on a piece of
  1881.           paper first to really see what you are doing.
  1882.           PC-ECAP Reference Manual                          page 36
  1883.  
  1884.           For our last example we're going to take a look at
  1885.           EXAMPLE5.DAT.  This circuit is a single stage transistor
  1886.           amplifier made with a 2N3904 NPN transistor.  We will
  1887.           demonstrate the use of the "Model Maker" that is part of the
  1888.           full screen editor.  Here's the circuit:
  1889.  
  1890.  
  1891.                                                    +10 volts
  1892.                                              0  |
  1893.                                                 \   R4
  1894.                                                 /   470 ohms
  1895.                                                 \
  1896.                                                 /
  1897.                                        R3       |
  1898.                                       8.2K      |  3
  1899.                                   +--\/\/\/\----*---------
  1900.                                   |             |         output
  1901.                                   |            /
  1902.                         R1        |         | /
  1903.               1        270 ohms   |   2     |/       2N3904
  1904.                 -------/\/\/\/\---*---------|
  1905.                                   |         |\
  1906.           input              R2   \         | \
  1907.                             1.2K  /           _\/
  1908.                                   \             |
  1909.                                   /             |
  1910.                                   |   0         |
  1911.                 ------------------*-------------*---------
  1912.  
  1913.  
  1914.  
  1915.           As you can see the first thing you need to do is to number
  1916.           the nodes.  Please take a look at the top of R4.  This end
  1917.           of the resistor connects to the +10 supply voltage but we
  1918.           have numbered it as node 0.  This is an important point.
  1919.           Any node that has a DC voltage connection should always be
  1920.           connected to ground.  For the sake of an AC analysis, any DC
  1921.           voltage source is the same thing as ground.
  1922.  
  1923.           Now that we have numbered the nodes, we can describe the
  1924.           circuit:
  1925.  
  1926.                R1 1 2 270
  1927.                R2 2 0 1.2K
  1928.                R3 2 3 8.2K
  1929.                R4 3 0 470
  1930.  
  1931.           Alright, now we are ready for the NPN transistor.  The
  1932.           transistor that we are using is a 2N3904.  We could use a
  1933.           simple one line description for this transistor, but that
  1934.           wouldn't show what happens to the transistor at high
  1935.           frequencies.  What we need is a more sophisticated
  1936.           transistor model.  One that will change its characteristics
  1937.           as the frequency changes like a real transistor.
  1938.           PC-ECAP Reference Manual                          page 37
  1939.  
  1940.           PC-ECAP has the capability to create just such a model.  But
  1941.           first you need to know some information about the transistor
  1942.           that you want to model.  This is what is required:
  1943.  
  1944.  
  1945.           DC collector current -
  1946.  
  1947.                          For this circuit about 10 milli-amps flows
  1948.                          from the collector to emitter.
  1949.  
  1950.           Transistor current gain -
  1951.  
  1952.                          At 10 ma. this is a minimum of 100.  This is
  1953.                          the same as Beta (the current gain at DC).
  1954.  
  1955.           Transistor Gain-bandwidth product -
  1956.  
  1957.                          For the 2N3904 with a collector current of 10
  1958.                          ma. this is 300 MHz minimum.  This is also
  1959.                          known as Ft.
  1960.  
  1961.           Common base output capacitance -
  1962.  
  1963.                          This is just the capacitance from the base to
  1964.                          the collector.  For the 2N3904 it is 4 pf
  1965.                          maximum.
  1966.  
  1967.  
  1968.           Now that we have the required information we can make a
  1969.           transistor model.  Please note that it doesn't matter for an
  1970.           AC analysis whether the transistor is NPN or PNP.
  1971.  
  1972.           From the editor press F2.  This will start the Model Maker
  1973.           function.  A window will appear and ask first for the node
  1974.           numbers for base, emitter and collector.  You would just
  1975.           enter 2, 0, and 3.  Then you will be asked for the
  1976.           information mentioned above.  After answering all the
  1977.           questions your model will be created and inserted into your
  1978.           circuit description on the line following the cursor.
  1979.  
  1980.           For this circuit we might want to know just how good a
  1981.           frequency response we have, so let's sweep a frequency range
  1982.           of 1 KHz to 100 MHz.  And let's do it logarithmically.  With
  1983.           node 1 as the input and node 3 as the output, this line
  1984.           should make PC-ECAP do what we want:
  1985.  
  1986.                     P 1 3 1KHZ 100MEG LOG
  1987.  
  1988.           As you might notice, PLOT can be abbreviated to P.
  1989.  
  1990.           That's all there is to it.  Run an analysis and see what
  1991.           kind of amplifier we have.  You should also try changing
  1992.           some component values to see what happens.  What happens if
  1993.           you decrease R1?  Or increase it?
  1994.           PC-ECAP Reference Manual                          page 38
  1995.  
  1996.           Models
  1997.  
  1998.           The circuit models that PC-ECAP uses for Transformers,
  1999.           Bipolar transistors, FET's, Operational Amplifiers, and
  2000.           Transconductance Amplifiers are ideal models.  If you
  2001.           desire, you can easily create models that are more complex.
  2002.  
  2003.           For Bipolar transistors if your need a better model just use
  2004.           the "Model Maker" feature in the editor.  As previously
  2005.           discussed, a Hybrid-Pi transistor model will be created and
  2006.           inserted into your circuit description.
  2007.  
  2008.           For the transformer, the addition of two inductors will make
  2009.           a transformer that is quite "real".  You can add an inductor
  2010.           in parallel with the primary to model the transformer's
  2011.           magnetizing inductance.  This inductor should be equal to
  2012.           the transformer's primary inductance.  The transformer's
  2013.           manufacturer can supply the inductor value for this or you
  2014.           can measure it yourself (the secondary should be open for
  2015.           this test).  A second inductor can be added in series with
  2016.           the primary winding (and the inductor paralleling the
  2017.           primary).  This inductor will model the transformer's
  2018.           "leakage" inductance.  This inductance is due to the
  2019.           magnetic field that does not couple the primary and
  2020.           secondary windings.  Again, the transformer's manufacturer
  2021.           can supply this or you can measure it (measure the primary
  2022.           inductance as before, but this time short out the
  2023.           secondary).  By adding these two inductors, you will create
  2024.           a transformer that has a finite bandwidth.  The parallel
  2025.           inductor affects the low frequencies and the series inductor
  2026.           will affect the high frequencies.
  2027.  
  2028.           For FET's, the addition of a capacitor to model the gate to
  2029.           source capacitance and a second one to model the gate to
  2030.           drain capacitance will improve accuracy at high frequencies.
  2031.           You can get the appropriate values from your transistor's
  2032.           data sheet.  Also the Siliconix Low Power Discretes data
  2033.           book is an excellent source for more information on this.
  2034.  
  2035.           For FET's:     Cgs = Ciss - Cgd = Ciss - Crss
  2036.  
  2037.                          Cgd = Crss
  2038.  
  2039.           Operational Amplifiers today are usually frequency
  2040.           compensated internally.  Most of the time a method called
  2041.           "dominant pole compensation" is used.  This method inserts a
  2042.           pole in the opamp's frequency response at a very low
  2043.           frequency.  This pole will dominate the response (hence the
  2044.           name) and roll off at a 20 db/decade rate.  The opamp model
  2045.           that PC-ECAP uses is not frequency dependent.  The open-loop
  2046.           gain that you ask for is the gain that you will get for all
  2047.           frequencies.  It's not that difficult to make an opamp model
  2048.           that will decrease its gain as frequency increases.  Such a
  2049.           model is included on your disk as OPAMPMOD.DAT.  Please take
  2050.           a look at it.
  2051.           PC-ECAP Reference Manual                          page 39
  2052.  
  2053.           References for Modeling
  2054.  
  2055.           Although we have tried to give you some useful information
  2056.           to use for modeling circuit elements, a full treatment of
  2057.           the subject is beyond the scope of this manual.  For those
  2058.           of you who are interested, a good college library should
  2059.           have several books that might help.  Two references that may
  2060.           be more readily available for many people are:
  2061.  
  2062.           "National Semiconductor Linear Applications Handbook" from
  2063.  
  2064.           National Semiconductor Corporation
  2065.           2900 Semiconductor Drive
  2066.           Santa Clara, CA 95052-8090
  2067.  
  2068.           This handbook has an excellent paper entitled "The
  2069.           Monolithic Operational Amplifier: A Tutorial Study".  This
  2070.           paper tells you just about everything that you would want to
  2071.           know about the inner workings of opamps.
  2072.  
  2073.           A good reference for FET's in general is:
  2074.  
  2075.           "Siliconix Low Power Discretes Data Book" by
  2076.  
  2077.           Siliconix Incorporated
  2078.           2201 Laurelwood Rd.
  2079.           Santa Clara, CA 95054-1516
  2080.  
  2081.           They have several interesting application notes on the use
  2082.           of FET's.
  2083.  
  2084.  
  2085.           Parting Comments
  2086.  
  2087.           A considerable amount of time and effort was expended to
  2088.           develop PC-ECAP.  We sincerely hope that you feel it was all
  2089.           worth it.  We want you to know that we don't intend to stop
  2090.           here.  We have even more ideas for enhancements we would
  2091.           like to add in future releases.  But it is you that will
  2092.           make it possible.  By registering your copy of PC-ECAP, you
  2093.           will help make the possible into reality.  Thanks for your
  2094.           support.
  2095.           PC-ECAP Reference Manual                          page 40
  2096.  
  2097.           Revision History
  2098.  
  2099.           Version 3.00 - 11/01/93
  2100.           Added Transient analysis calculations.  Added transmission
  2101.           lines as circuit elements.  Added zoom and print features to
  2102.           plot screen.  Added support for HP DeskJets.  Improved
  2103.           support for HP LaserJet Series I.  Now displays more digits
  2104.           of frequency when plotting narrow band high frequency
  2105.           graphs.  Analysis routine is now 40-100% faster.
  2106.  
  2107.           Version 2.10a - 8/18/93 In certain rare situations, graphs
  2108.           would autoscale improperly. Fixed.
  2109.  
  2110.           Version 2.10 - 11/09/92
  2111.           Now handles circuits with up to 90 nodes.  Added option to
  2112.           print only circuit description and graphs.  Negative
  2113.           inductor values are now accepted.  Changed listing format
  2114.           for frequencies of 10 GHz and above.  Added network (LAN)
  2115.           support.  Fixed "border flash" when switching from graphics
  2116.           to text mode on some CGA cards.  Added table of contents to
  2117.           manual.
  2118.  
  2119.           Version 2.01 - 2/03/92
  2120.           Improved syntax checking on the circuit description files.
  2121.           More input errors are spotted and flagged.
  2122.  
  2123.           Version 2.00 - 10/14/91
  2124.           Added group delay, impedance, VSWR and return loss
  2125.           calculations.  Now has full support for 24 pin printers.
  2126.           Now supports HP LaserJet.  Editor has been enhanced.
  2127.           Analysis routine is now twice as fast as previous versions.
  2128.           Added AT&T and MCGA support.  Added support for a math
  2129.           coprocessor.  European format for element values now
  2130.           accepted.  Improved error checking on circuit description
  2131.           files.  International time and date on printouts now
  2132.           supported.  Numbers are now stored in IEEE binary format.
  2133.           No longer supports "non-compatible" video.  Now requires
  2134.           384K of system memory.
  2135.  
  2136.           Version 1.11 - 11/23/90
  2137.           Added the filename to the headers and plot sheet of the
  2138.           printout.  Negative resistance values are now accepted.
  2139.           Fixed bug in hard copy plotting routine - plot would display
  2140.           spurious points if the plot exceeded the maximum range.
  2141.           Fixed bug in analysis routine; Occasionally, a circuit with
  2142.           a very wide range of reactive component values could create
  2143.           an internal numeric overflow.
  2144.  
  2145.           Version 1.10 - 9/14/90
  2146.           Added the option of 35 sample points to the select number of
  2147.           sample points menu.  Greatly increased the number of plot
  2148.           ranges available when displaying results.  Magnitude now
  2149.           spans .1 db/div to 80 db/div and Phase now spans 22.5
  2150.           degrees/div to 720 degrees/div.
  2151.  
  2152.           Version 1.02 - 1/30/90
  2153.           First release widely distributed.
  2154.           PC-ECAP Reference Manual                          page 41
  2155.  
  2156.                         Appendix A - Command Line Switches
  2157.  
  2158.  
  2159.           PC-ECAP will automatically determine the type of video
  2160.           display adapter that your computer uses and will set itself
  2161.           accordingly.  There are a few situations where it is not
  2162.           possible to accurately determine the adapter type.  For
  2163.           example, if a monochrome monitor is used with a CGA card,
  2164.           the program has no way of knowing that.  Also, there are
  2165.           some advanced EGA cards that will change their display mode
  2166.           to match a given program.  Since PC-ECAP is trying to change
  2167.           its mode to match the video adapter, there can be no
  2168.           guarantee as to what you will actually wind up with.
  2169.  
  2170.           In order to accommodate these situations (as well as others
  2171.           that may be unforeseen at this time) PC-ECAP has a series of
  2172.           optional command line switches that can be used to set the
  2173.           video display mode.
  2174.  
  2175.           To start PC-ECAP with a command line option, type this at
  2176.           the DOS prompt:
  2177.  
  2178.  
  2179.                     ECAP    [ option ]
  2180.  
  2181.  
  2182.           Where "option" is one of the following:
  2183.  
  2184.  
  2185.                /H        Hercules Monochrome Graphics card (or
  2186.                          compatible).
  2187.  
  2188.                /C        Color/Graphics Adapter with color monitor.
  2189.  
  2190.                /CM       Color/Graphics Adapter with monochrome
  2191.                          monitor.  For use with Compaq monochrome
  2192.                          display or computers having LCD displays.
  2193.  
  2194.                /E        Enhanced Graphics Adapter with EGA monitor.
  2195.  
  2196.                /EC       Enhanced Graphics Adapter with CGA monitor.
  2197.  
  2198.                /EM       Enhanced Graphics Adapter with monochrome
  2199.                          monitor.
  2200.  
  2201.                /MC       Multi-Color Graphics Array.
  2202.  
  2203.                /M        Monochrome Display Adapter.
  2204.  
  2205.                /A        AT&T or Olivetti video adapter with color
  2206.                          monitor.
  2207.  
  2208.                /AM       AT&T or Olivetti video adapter with
  2209.                          monochrome monitor.  May also be useful for
  2210.                          some Laptop computers.
  2211.           PC-ECAP Reference Manual                          page 42
  2212.  
  2213.                            Appendix B - Error Messages
  2214.  
  2215.  
  2216.           ABORT -- Bad circuit description
  2217.  
  2218.                The PLOT statement must be the last line of your
  2219.                circuit description.  You have entered additional
  2220.                circuit elements after the PLOT statement.  Move these.
  2221.  
  2222.  
  2223.           ABORT -- Blinking nodes have been skipped
  2224.  
  2225.                You have skipped over one or more nodes in your circuit
  2226.                description.  Node numbers must begin at 0, and be
  2227.                numbered consecutively.
  2228.  
  2229.  
  2230.           ABORT -- Blinking nodes have less than two components
  2231.  
  2232.                Your circuit description has one or more "dangling"
  2233.                components.  All nodes (other than the input) must have
  2234.                at least two components attached.
  2235.  
  2236.  
  2237.           ABORT -- Insufficient memory for operation
  2238.  
  2239.                PC-ECAP makes extensive use of dynamic memory.  That
  2240.                is, memory that it allocates only when needed.
  2241.                Although this makes for very efficient memory usage,
  2242.                peak memory requirements can not be known up front.
  2243.                Your only choice here is to do without the feature
  2244.                that gave you this error or get more RAM memory for
  2245.                your computer.  PC-ECAP can use Upper Memory Blocks
  2246.                (UMB's) if you have DOS 5 or greater.  Be sure you
  2247.                have UMB support enabled.
  2248.  
  2249.  
  2250.           ABORT -- Invalid circuit element
  2251.  
  2252.                You have an unknown circuit element in your circuit
  2253.                description file.  Valid lines must be either blank,
  2254.                begin with a semicolon ";" (if a comment), or begin
  2255.                with one of the letters of a circuit element.
  2256.  
  2257.  
  2258.           ABORT -- Invalid node number
  2259.  
  2260.                You have a circuit element that has one or more node
  2261.                numbers that is not an integer, is negative or is
  2262.                greater than 89.
  2263.           PC-ECAP Reference Manual                          page 43
  2264.  
  2265.           ABORT -- Invalid reference impedance
  2266.  
  2267.                You have asked to compute the VSWR or return loss for a
  2268.                circuit, but have not specified an impedance to
  2269.                reference these calculations to.  Or your impedance is
  2270.                negative or zero.  Must be a positive value.
  2271.  
  2272.  
  2273.           ABORT -- Too many circuit nodes
  2274.  
  2275.                You have 1 or more circuit nodes with a number greater
  2276.                than 89, either because you actually have a circuit
  2277.                with more than 90 nodes or you have made a typo and
  2278.                have inadvertently skipped some.
  2279.  
  2280.  
  2281.           ABORT -- Too many circuit elements
  2282.  
  2283.                You have exceeded the limit of 1000 circuit elements.
  2284.                R, C, L, Transmission lines, Fet's and Transconductance
  2285.                amplifiers each count as one circuit element.  OpAmps
  2286.                and Bipolar transistors count as two.  Transformers
  2287.                count as four.
  2288.  
  2289.  
  2290.           ABORT -- Too many transmission lines
  2291.  
  2292.                You have more than 64 transmission lines in your
  2293.                circuit.
  2294.  
  2295.  
  2296.           ABORT -- Unknown parameter specified
  2297.  
  2298.                You have listed a parameter that is unrecognized and
  2299.                unexpected.  Recheck the syntax of the line displayed.
  2300.  
  2301.  
  2302.           ABORT -- Unknown sweep type
  2303.  
  2304.                You have specified a sweep type that is something other
  2305.                than LINear, LOGarithmic or TRANsient (may be
  2306.                abbreviated to the letters shown capitalized).
  2307.  
  2308.  
  2309.           ABORT -- Wave type not specified
  2310.  
  2311.                You have asked for a transient analysis, but have
  2312.                omitted the type of waveform to be used as input.
  2313.           PC-ECAP Reference Manual                          page 44
  2314.  
  2315.           CAUTION! Conflicting transistor parameters supplied
  2316.  
  2317.                The data that you have entered for your transistor
  2318.                doesn't make any sense.  For example - you may have
  2319.                said that your transistor has a very high cutoff
  2320.                frequency and then specified a huge base to collector
  2321.                capacitance.  Or you may have specified a very low
  2322.                collector current and a high cutoff frequency.  Things
  2323.                that contradict each other.  Recheck your data and
  2324.                change if necessary.
  2325.  
  2326.  
  2327.           ECAPHERC.DRV is not found
  2328.  
  2329.                You have a Hercules or Hercules compatible graphics
  2330.                card, and the required driver ECAPHERC.DRV is missing.
  2331.                This driver is needed to display text when PC-ECAP is
  2332.                in graphics mode.  If you have DOS version 3.0 or
  2333.                greater, PC-ECAP will look for this file in the same
  2334.                directory that contains ECAP.EXE.  This may be
  2335.                different than the directory that contains your circuit
  2336.                files.  Otherwise, ECAP.EXE and ECAPHERC.DRV should be
  2337.                in the current directory.
  2338.  
  2339.  
  2340.           File is currently being used by someone else
  2341.  
  2342.                You can get this message when you are running PC-ECAP
  2343.                on a network or multi-user system and you attempt to
  2344.                access a file that is already in use.  Wait until the
  2345.                file is available or pick a different file.
  2346.  
  2347.  
  2348.           Floating point math error -
  2349.  
  2350.                It should not be possible to get this error.  If it has
  2351.                occurred, please send us a complete description of what
  2352.                you did to get it, so that we may look into the
  2353.                problem.
  2354.  
  2355.  
  2356.           Input File Size Limit Reached
  2357.  
  2358.                PC-ECAP allocates a 500 line buffer for its editor.
  2359.                Your circuit description file has exceeded this amount.
  2360.                The only way this should happen is if you have filled
  2361.                your circuit description file with comments or other
  2362.                nonessential information.  Remove the extra data.
  2363.  
  2364.  
  2365.           Insufficient disk space
  2366.  
  2367.                Well, what can we say, your disk is full.  Delete those
  2368.                files that you really don't need or get a bigger disk.
  2369.           PC-ECAP Reference Manual                          page 45
  2370.  
  2371.           LPT1, LPT2 or LPT3 is not ready
  2372.  
  2373.                You requested PC-ECAP to print something but your
  2374.                printer isn't ready.  Check to see that your printer's
  2375.                power is turned on.  Also check to see if your
  2376.                printer's cable is connected.  You will also get this
  2377.                message if you try to print on a printer that does not
  2378.                exist.
  2379.  
  2380.  
  2381.           No files found.  Enter name of new file.
  2382.  
  2383.                When you tried to select an input file, PC-ECAP didn't
  2384.                find any that had the extension ".DAT".  If you
  2385.                actually believe that there should be circuit
  2386.                description files in your current directory, quit
  2387.                PC-ECAP and check to see if you are in the correct
  2388.                directory.
  2389.  
  2390.  
  2391.           Not enough space for . . .
  2392.  
  2393.                You are out of memory and PC-ECAP is unable to load.
  2394.                Remove any TSR programs from memory or get more memory
  2395.                for your computer.
  2396.  
  2397.  
  2398.           Please create this file or select another
  2399.  
  2400.                You have asked for an analysis of a circuit that does
  2401.                not exist.  Use the text editor to create a circuit
  2402.                description file for your circuit.
  2403.  
  2404.  
  2405.           Please run an analysis or select another
  2406.  
  2407.                You have asked to see the results of a circuit that you
  2408.                haven't analyzed yet.  Run an analysis.
  2409.  
  2410.  
  2411.           Unable to delete "filename"
  2412.  
  2413.                You tried to delete a file that was most likely marked
  2414.                as Read Only.  Check to see if this is the case and
  2415.                change the file's attribute if necessary.
  2416.  
  2417.  
  2418.           You have enough memory to analyze circuits with
  2419.                up to ## nodes.
  2420.  
  2421.                If your computer has less than 450K of free memory
  2422.                available, you will see this message when you start
  2423.                PC-ECAP.  The program is giving an estimate of the
  2424.                maximum circuit size you can analyze based on the
  2425.                amount of memory in your system.
  2426.           PC-ECAP Reference Manual                          page 46
  2427.  
  2428.           Your copy of PC-ECAP has been damaged!
  2429.  
  2430.                Someone or something (another program perhaps) has
  2431.                changed your copy of ECAP.EXE.  PC-ECAP checks itself
  2432.                every time it runs and this check has failed.
  2433.                Reinstall the program.
  2434.           PC-ECAP Reference Manual                          page 47
  2435.  
  2436.                                    Appendix C
  2437.                     PC-ECAP to Lotus 1-2-3 file conversion
  2438.  
  2439.  
  2440.           Included with the REGISTERED version of PC-ECAP is the
  2441.           utility program ECAP2WKS.  This program can be used to
  2442.           convert PC-ECAP ".OUT" files into Lotus 1-2-3 compatible
  2443.           spreadsheets.  This can be very useful if you want to do
  2444.           additional operations on your data, such as normalizing
  2445.           circuit gain at a particular frequency or plotting several
  2446.           quantities on the same graph.
  2447.  
  2448.           These PC-ECAP spreadsheets can be used with just about all
  2449.           of the popular spreadsheet programs such as Lotus 1-2-3,
  2450.           Quattro Pro, Microsoft Excel and the excellent shareware
  2451.           program AS-EASY-AS.
  2452.  
  2453.           To convert a file just type:
  2454.  
  2455.  
  2456.                ECAP2WKS  filename.out
  2457.  
  2458.  
  2459.           Filename.out should of course be the name of the PC-ECAP
  2460.           file that you want to convert.  If you don't specify a file
  2461.           extension, ".OUT" will be assumed.  As an option, you can
  2462.           also specify the name of the converted ".WKS" file.  To do
  2463.           this, just add its name after "filename.out".  The ".WKS"
  2464.           file extension is optional:
  2465.  
  2466.  
  2467.                ECAP2WKS  filename.out   filename.wks
  2468.  
  2469.  
  2470.           ECAP2WKS will accept wildcards.  For example, to convert all
  2471.           files beginning with "BAND", such as "BAND_ONE", "BAND_TWO",
  2472.           etc., type:
  2473.  
  2474.  
  2475.                ECAP2WKS  band*.out
  2476.  
  2477.  
  2478.           And finally, you may also specify full drive and path
  2479.           specifications along with the filenames.  For example:
  2480.  
  2481.  
  2482.                ECAP2WKS  D:\ecap\lowpass.out  C:\lotus\123files\
  2483.  
  2484.  
  2485.           will convert "LOWPASS.OUT" to "LOWPASS.WKS" and place it in
  2486.           the \LOTUS\123FILES subdirectory on drive C:.
  2487.  
  2488.           ECAP2WKS checks to see if the file specified is really a
  2489.           PC-ECAP ".OUT" file before attempting a conversion.
  2490. 
  2491.