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