Tektronix CTM-10,CTM-05/A Users Guide

CTM-10 and CTM-05/A
User’s Guide
A GREATER MEASURE OF CONFIDENCE
WARRANTY
Hardware
Upon receiving notification of a defect in the Keithley Hardware during the warranty period, Keithley will, at its option, either repair or replace such Keithley Hardware. During the first ninety days of the warranty period, Keithley will, at its option, supply the necessary on site labor to return the product to the condition prior to the notification of a defect. Failure to notify Keithley of a defect during the warranty shall relieve Keithley of its obligations and liabilities under this warranty.
Other Hardware
The portion of the product that is not manufactured by Keithley (Other Hardware) shall not be covered by this warranty, and Keithley shall have no duty of obligation to enforce any manufacturers' warranties on behalf of the customer. On those other manufacturers’ products that Keithley purchases for resale, Keithley shall have no duty of obligation to enforce any manufacturers’ warranties on behalf of the customer.
Software
Keithley warrants that for a period of one (1) year from date of shipment, the Keithley produced portion of the software or firmware (Keithley Software) will conform in all material respects with the published specifications provided such Keithley Software is used on the product for which it is intended and otherwise in accordance with the instructions therefore. Keithley does not warrant that operation of the Keithley Software will be uninterrupted or error-free and/or that the Keithley Software will be adequate for the customer's intended application and/or use. This warranty shall be null and void upon any modification of the Keithley Software that is made by other than Keithley and not approved in writing by Keithley.
If Keithley receives notification of a Keithley Software nonconformity that is covered by this warranty during the warranty period, Keithley will review the conditions described in such notice. Such notice must state the published specification(s) to which the Keithley Software fails to conform and the manner in which the Keithley Software fails to conform to such published specification(s) with sufficient specificity to permit Keithley to correct such nonconformity. If Keithley deter­mines that the Keithley Software does not conform with the published specifications, Keithley will, at its option, provide either the programming services necessary to correct such nonconformity or develop a program change to bypass such nonconformity in the Keithley Software. Failure to notify Keithley of a nonconformity during the warranty shall relieve Keithley of its obligations and liabilities under this warranty.
Other Software
OEM software that is not produced by Keithley (Other Software) shall not be covered by this warranty, and Keithley shall have no duty or obligation to enforce any OEM's warranties on behalf of the customer.
Other Items
Keithley warrants the following items for 90 days from the date of shipment: probes, cables, rechargeable batteries, diskettes, and documentation.
Items not Covered under Warranty
This warranty does not apply to fuses, non-rechargeable batteries, damage from battery leakage, or problems arising from normal wear or failure to follow instructions.
Limitation of Warranty
This warranty does not apply to defects resulting from product modification made by Purchaser without Keithley's express written consent, or by misuse of any product or part.
Disclaimer of Warranties
EXCEPT FOR THE EXPRESS WARRANTIES ABOVE KEITHLEY DISCLAIMS ALL OTHER WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ALL IMPLIED WARRANTIES OF MERCHANT­ABILITY AND FITNESS FOR A PARTICULAR PURPOSE. KEITHLEY DISCLAIMS ALL WARRANTIES WITH RESPECT TO THE OTHER HARDWARE AND OTHER SOFTWARE.
Limitation of Liability
KEITHLEY INSTRUMENTS SHALL IN NO EVENT, REGARDLESS OF CAUSE, ASSUME RESPONSIBILITY FOR OR BE LIABLE FOR: (1) ECONOMICAL, INCIDENTAL, CONSEQUENTIAL, INDIRECT, SPECIAL, PUNITIVE OR EXEMPLARY DAMAGES, WHETHER CLAIMED UNDER CONTRACT, TORT OR ANY OTHER LEGAL THEORY, (2) LOSS OF OR DAMAGE TO THE CUSTOMER'S DATA OR PROGRAMMING, OR (3) PENALTIES OR PENALTY CLAUSES OF ANY DESCRIPTION OR INDEMNIFICATION OF THE CUSTOMER OR OTHERS FOR COSTS, DAM­AGES, OR EXPENSES RELATED TO THE GOODS OR SERVICES PROVIDED UNDER THIS WARRANTY.
Keithley Instruments, Inc.
Sales Offices: BELGIUM: Bergensesteenweg 709 • B-1600 Sint-Pieters-Leeuw • 02-363 00 40 • Fax: 02/363 00 64
CHINA: Yuan Chen Xin Building, Room 705 • 12 Yumin Road, Dewai, Madian • Beijing 100029 • 8610-6202-2886 • Fax: 8610-6202-2892 FINLAND: Tietäjäntie 2 • 02130 Espoo • Phone: 09-54 75 08 10 • Fax: 09-25 10 51 00 FRANCE: 3, allée des Garays • 91127 Palaiseau Cédex • 01-64 53 20 20 • Fax: 01-60 11 77 26 GERMANY: Landsberger Strasse 65 • 82110 Germering • 089/84 93 07-40 • Fax: 089/84 93 07-34 GREAT BRITAIN: Unit 2 Commerce Park, Brunel Road • Theale • Berkshire RG7 4AB • 0118 929 7500 • Fax: 0118 929 7519 INDIA: Flat 2B, Willocrissa • 14, Rest House Crescent • Bangalore 560 001 • 91-80-509-1320/21 • Fax: 91-80-509-1322 ITALY: Viale San Gimignano, 38 • 20146 Milano • 02-48 39 16 01 • Fax: 02-48 30 22 74 JAPAN: New Pier Takeshiba North Tower 13F • 11-1, Kaigan 1-chome • Minato-ku, Tokyo 105-0022 • 81-3-5733-7555 • Fax: 81-3-5733-7556 KOREA: 2FL., URI Building • 2-14 Yangjae-Dong • Seocho-Gu, Seoul 137-888 • 82-2-574-7778 • Fax: 82-2-574-7838 NETHERLANDS: Postbus 559 • 4200 AN Gorinchem • 0183-635333 • Fax: 0183-630821 SWEDEN: c/o Regus Business Centre • Frosundaviks Allé 15, 4tr • 169 70 Solna • 08-509 04 679 • Fax: 08-655 26 10 SWITZERLAND: Kriesbachstrasse 4 • 8600 Dübendorf • 01-821 94 44 • Fax: 01-820 30 81 TAIWAN: 1FL., 85 Po Ai Street • Hsinchu, Taiwan, R.O.C. • 886-3-572-9077• Fax: 886-3-572-9031
28775 Aurora Road • Cleveland, Ohio 44139 • 440-248-0400 • Fax: 440-248-6168
1-888-KEITHLEY (534-8453) • www.keithley.com
4/02
CTM-10 and CTM-05/A
User’s Guide
Revision D - June 2002
Part Number: 87570
S
The following safety precautions should be observed before using this product and any associated instrumentation. Although some instruments and accessories would normally be used with non-hazardous voltages, there are situations where hazardous conditions may be present.
This product is intended for use by qualified personnel who recognize shock hazards and are familiar with the safety precautions required to avoid possible injury. Read and follow all installation, operation, and maintenance information carefully before using the product. Refer to the manual for complete product specifications.
If the product is used in a manner not specified, the protection provided by the product may be impaired.
The types of product users are:
Responsible body
the equipment is operated within its specifications and operating limits, and for ensuring that operators are adequately trained.
Operators
of the instrument. They must be protected from electric shock and contact with hazardous live circuits.
Maintenance personnel
the line voltage or replacing consumable materials. Maintenance procedures are described in the manual. The proce­dures explicitly state if the operator may perform them. Otherwise, they should be performed only by service personnel.
Service personnel
properly trained service personnel may perform installation and service procedures.
Keithley products are designed for use with electrical signals that are rated Installation Category I and Installation Category II, as described in the International Electrotechnical Commission (IEC) Standard IEC 60664. Most mea­surement, control, and data I/O signals are Installation Category I and must not be directly connected to mains voltage or to voltage sources with high transient over-voltages. Installation Category II connections require protection for high transient over-voltages often associated with local AC mains connections. Assume all measurement, control, and data I/O connections are for connection to Category I sources unless otherwise marked or described in the Manual.
Exercise extreme caution when a shock hazard is present. Lethal voltage may be present on cable connector jacks or test fixtures. The American National Standards Institute (ANSI) states that a shock hazard exists when voltage levels greater than 30V RMS, 42.4V peak, or 60VDC are present.
age is present in any unknown circuit before measuring.
Operators of this product must be protected from electric shock at all times. The responsible body must ensure that operators are prevented access and/or insulated from every connection point. In some cases, connections must be ex­posed to potential human contact. Product operators in these circumstances must be trained to protect themselves from the risk of electric shock. If the circuit is capable of operating at or above 1000 volts,
may be exposed.
Do not connect switching cards directly to unlimited power circuits. They are intended to be used with impedance limited sources. NEVER connect switching cards directly to AC mains. When connecting sources to switching cards, install protective devices to limit fault current and voltage to the card.
Before operating an instrument, make sure the line cord is connected to a properly grounded power receptacle. Inspect the connecting cables, test leads, and jumpers for possible wear, cracks, or breaks before each use.
is the individual or group responsible for the use and maintenance of equipment, for ensuring that
use the product for its intended function. They must be trained in electrical safety procedures and proper use
perform routine procedures on the product to keep it operating properly, for example, setting
are trained to work on live circuits, and perform safe installations and repairs of products. Only
afety Precautions
A good safety practice is to expect that hazardous volt-
no conductive part of the circuit
5/02
When installing equipment where access to the main power cord is restricted, such as rack mounting, a separate main input power disconnect device must be provided, in close proximity to the equipment and within easy reach of the operator.
For maximum safety, do not touch the product, test cables, or any other instruments while power is applied to the cir­cuit under test. ALWAYS remove power from the entire test system and discharge any capacitors before: connecting or disconnecting cables or jumpers, installing or removing switching cards, or making internal changes, such as in­stalling or removing jumpers.
Do not touch any object that could provide a current path to the common side of the circuit under test or power line (earth) ground. Always make measurements with dry hands while standing on a dry, insulated surface capable of withstanding the voltage being measured.
The instrument and accessories must be used in accordance with its specifications and operating instructions or the safety of the equipment may be impaired.
Do not exceed the maximum signal levels of the instruments and accessories, as defined in the specifications and op­erating information, and as shown on the instrument or test fixture panels, or switching card.
When fuses are used in a product, replace with same type and rating for continued protection against fire hazard.
Chassis connections must only be used as shield connections for measuring circuits, NOT as safety earth ground con­nections.
If you are using a test fixture, keep the lid closed while power is applied to the device under test. Safe operation re­quires the use of a lid interlock.
If or is present, connect it to safety earth ground using the wire recommended in the user documentation.
!
The symbol on an instrument indicates that the user should refer to the operating instructions located in the manual.
The symbol on an instrument shows that it can source or measure 1000 volts or more, including the combined effect of normal and common mode voltages. Use standard safety precautions to avoid personal contact with these voltages.
The
WARNING
associated information very carefully before performing the indicated procedure.
The
CAUTION
the warranty.
Instrumentation and accessories shall not be connected to humans.
Before performing any maintenance, disconnect the line cord and all test cables.
To maintain protection from electric shock and fire, replacement components in mains circuits, including the power transformer, test leads, and input jacks, must be purchased from Keithley Instruments. Standard fuses, with applicable national safety approvals, may be used if the rating and type are the same. Other components that are not safety related may be purchased from other suppliers as long as they are equivalent to the original component. (Note that selected parts should be purchased only through Keithley Instruments to maintain accuracy and functionality of the product.) If you are unsure about the applicability of a replacement component, call a Keithley Instruments office for information.
To clean an instrument, use a damp cloth or mild, water based cleaner. Clean the exterior of the instrument only. Do not apply cleaner directly to the instrument or allow liquids to enter or spill on the instrument. Products that consist of a circuit board with no case or chassis (e.g., data acquisition board for installation into a computer) should never require cleaning if handled according to instructions. If the board becomes contaminated and operation is affected, the board should be returned to the factory for proper cleaning/servicing.
heading in a manual explains dangers that might result in personal injury or death. Always read the
heading in a manual explains hazards that could damage the instrument. Such damage may invalidate
The information contained in this manual is believed to be accurate and reliable. However, the manufacturer assumes no responsibility for its use; nor for any infringements of patents or other rights of third parties that may result from its use. No license is granted by implication or otherwise under any patent rights of the manufacturer.
THE MANUFACTURER SHALL NOT BE LIABLE FOR ANY SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES RELATED TO THE USE OF THIS PRODUCT. THIS PRODUCT IS NOT DESIGNED WITH COMPONENTS OF A LEVEL OF RELIABILITY THAT IS SUITED FOR USE IN LIFE SUPPORT OR CRITICAL APPLICATIONS.
DriverLINX, SSTNET, and LabOBJX are registered trademarks and DriverLINX/VB is a trademark of Scientific Software Tools, Inc.
Microsoft and Windows are registered trademarks and Visual C++ and Visual Basic are trademarks of Microsoft Corporation.
Borland is a registered trademark and Borland C++, Delphi, and Turbo Pascal are trademarks of Borland International, Inc.
IBM is a registered trademark of International Business Machines Corporation.
Acrobat is a registered trademark of Adobe Systems Incorporated.
All other brand and product names are trademarks or registered trademarks of their respective companies.
© Copyright Keithley Instruments, Inc., 1999, 1996, 1994.
All rights reserved. Reproduction or adaptation of any part of this documentation beyond that permitted by Section 117 of the 1979 United States Copyright Act without permission of the Copyright owner is unlawful.
Keithley Instruments, Inc.
28775 Aurora Road, Cleveland, OH 44139
Telephone: (440) 248-0400 • FAX: (440) 248-6168
http://www.keithley.com

Table of Contents

Preface
Overview
1
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3
Supporting Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
Accessories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5
Functional Description
2
Am9513A System Timing Controller . . . . . . . . . . . . . . . . . . . . 2-4
Digital I/O Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4
Programmable Interrupt Logic . . . . . . . . . . . . . . . . . . . . . . . . . 2-5
3
Setup and Installation
Unpacking and Inspecting a Board . . . . . . . . . . . . . . . . . . . . . . 3-1
Installing and Configuring DriverLINX for CTM-10 and
CTM-05/A Boards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2
Installing the CTM-10 and CTM-05/A
Standard Software Package . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4
Before Installing DriverLINX . . . . . . . . . . . . . . . . . . 3-4
Selecting the DriverLINX components to Install . . . . 3-5
Installing DriverLINX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5
Configuration with DriverLINX . . . . . . . . . . . . . . . . . . . . . . 3-6
Configuring a Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7
Setting the Base Address . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9
Base Address Requirements for the CTM-10 . . . . . . . . . . 3-10
Base Address Requirements for the CTM-05/A . . . . . . . . 3-10
Setting the Board Interrupt Level . . . . . . . . . . . . . . . . . . . . 3-11
Installing the Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-12
Using the DriverLINX Configuration Panel . . . . . . . . . . . . . . 3-14
Cabling and Wiring
4
Attaching the STA-50 (CTM-10 Board Only) . . . . . . . . . . . . . 4-1
Attaching the STA-U . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3
Attaching the STA-U to the CTM-10 . . . . . . . . . . . . . . . . . . 4-3
Attaching the STA-U to the CTM-05/A . . . . . . . . . . . . . . . . 4-4
Connecting Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5
iii
5
Using DriverLINX CTM Test Panel for Hardware Testing
6
I/O Addresses and Registers
I/O Address and Register Locations . . . . . . . . . . . . . . . . . . . . . 6-1
Register Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
Interrupt Control Register Format . . . . . . . . . . . . . . . . . . . . 6-3
Interrupt Status Register Format . . . . . . . . . . . . . . . . . . . . . 6-4
Using DriverLINX
7
DriverLINX Counter/Timer Model . . . . . . . . . . . . . . . . . . . . . . 7-1
Clocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-3
Gates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-4
Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-5
Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-6
DriverLINX Task Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-7
Hardware Sharing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-7
Creating Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-7
Monitoring and Stopping Tasks . . . . . . . . . . . . . . . . . . . . . . 7-8
DriverLINX Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-8
DriverLINX Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-10
DriverLINX Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-10
Individual and Group Tasks . . . . . . . . . . . . . . . . . . . . . . . . 7-11
Mapping Logical Channels to Counter/Timer
Hardware Channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-12
Digital I/O Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-12
Mapping Logical Channels to Digital Hardware Channels . . 7-13
Properties of Logical Channels . . . . . . . . . . . . . . . . . . . . . 7-13
Combining or Splitting Logical Channels . . . . . . . . . . . . . 7-14
Implementation Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-15
8
Troubleshooting
Problem Isolation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-1
Using the DriverLINX Event Viewer . . . . . . . . . . . . . . . . . . 8-1
Device Initialization Error Messages . . . . . . . . . . . . . . . . . . 8-2
Identifying Symptoms and Possible Causes . . . . . . . . . . . . 8-2
Testing the Board and Host Computer . . . . . . . . . . . . . . . . . 8-5
Testing the Accessory Slot and I/O Connections . . . . . . . . . 8-6
Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-7
A
Specifications
iv
B
Connector Pin Assignments
C
Am9513A Counter/Timer
Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-1
Internal Register Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-3
Master Mode Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-6
Counter Mode Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-10
Operating Mode Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . C-12
Mode A: Software-Triggered Strobe
with No Hardware Gating . . . . . . . . . . . . . . . . . . . . . . . . C-15
Mode B: Software-Triggered Strobe with Level Gating . . C-15
Mode C: Hardware-Triggered Strobe . . . . . . . . . . . . . . . . C-15
Mode D: Rate Generator with No Hardware Gating . . . . . C-16
Mode E: Rate Generator with Level Gating . . . . . . . . . . . . C-16
Mode F: Non-Retriggerable One-Shot . . . . . . . . . . . . . . . . C-16
Mode G: Software-Triggered, Delayed-Pulse One-Shot . . C-16 Mode H: Software-Triggered, Delayed-Pulse
One-Shot with Hardware Gating . . . . . . . . . . . . . . . . . . . C-17
Mode I: Hardware-Triggered, Delayed-Pulse Strobe . . . . C-17
Mode J: Variable-Duty-Cycle Rate Generator
with No Hardware Gating . . . . . . . . . . . . . . . . . . . . . . . . C-18
Mode K: Variable-Duty-Cycle Rate Generator
with Level Gating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-18
Mode L: Hardware-Triggered, Delayed-Pulse One-Shot . C-18 Mode N: Software-Triggered Strobe
with Level Gating and Hardware Retriggering . . . . . . . . C-19
Mode O: Software-Triggered Strobe
with Edge Gating and Hardware Retriggering . . . . . . . . C-19
Mode Q: Rate Generator with Synchronization
(Event Counter with Auto-Read/Reset) . . . . . . . . . . . . . . C-20
Mode R: Retriggerable One-Shot . . . . . . . . . . . . . . . . . . . C-20
Mode S: Reload Source or TC Using Input Gate . . . . . . . . C-21
Mode V: Frequency-Shift Keying . . . . . . . . . . . . . . . . . . . C-21
CE Mark Information for the CTM-05/A Board
D
Limitation of Certification . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-1
Declaration of Conformity . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-2
v
List of Illustrations
Figure 2-1. CTM-10 Block Diagram . . . . . . . . . . . . . . . . . . . 2-2
Figure 2-2. CTM-05/A Block Diagram . . . . . . . . . . . . . . . . . 2-3
Figure 3-1. CTM-10 Board Layout . . . . . . . . . . . . . . . . . . . . 3-8
Figure 3-2. CTM-05/A Board Layout . . . . . . . . . . . . . . . . . . 3-8
Figure 3-3. Preset Base Address for the CTM-10 . . . . . . . . 3-10
Figure 3-4. Preset Base Address for the CTM-05/A . . . . . . 3-10
Figure 3-5. Normal Interrupt-Level Setting for the
CTM-10 and CTM-05/A . . . . . . . . . . . . . . . . 3-11
Figure 3-6. Cable for Digital I/O Port B
of the CTM-10 Board . . . . . . . . . . . . . . . . . . . 3-13
Figure 4-1. Attaching an STA-50 to a CTM-10 Board . . . . . 4-1
Figure 4-2. CTM-10 Main I/O Connector (J2)
and STA-50 Connectors J1 and J5 . . . . . . . . . . 4-2
Figure 4-3. Attaching the STA-U to the CTM-10 Board . . . 4-3
Figure 4-4. CAB-4037 Cable Pin Assignments . . . . . . . . . . 4-4
Figure 4-5. Attaching an STA-U Board to the CTM-05/A . . 4-4 Figure 4-6. Pin Assignments for Main I/O
Connector (J1) of a CTM-05/A Board . . . . . . . 4-5
Figure 4-7. Typical Event Counting Connection . . . . . . . . . 4-6
Figure 4-8. Typical Frequency Measurement Connection . . 4-6
Figure 4-9. Typical Single Pulse Output Connection . . . . . . 4-6
Figure 4-10. Typical Counted Pulse Output Connection . . . . 4-7
Figure 4-11. Typical Interval Measurement Connection . . . . 4-7
Figure B-1. Pin Assignments for the CTM-10
Main I/O Connector (J2) . . . . . . . . . . . . . . . . . B-1
Figure B-2. CAB-4037 Cable Pin Assignments . . . . . . . . . . . B-2
Figure B-3. Pin Assignments for Main I/O Connector (J1)
of a CTM-05/A Board . . . . . . . . . . . . . . . . . . . B-3
Figure C-1. Crystal Oscillator Scaler . . . . . . . . . . . . . . . . . . . C-9
vi
List of Tables
Table 3-1. Address Switch Values . . . . . . . . . . . . . . . . . . . . 3-9
Table 6-1. I/O Address Map . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
Table 6-2. Interrupt Control Register . . . . . . . . . . . . . . . . . . 6-3
Table 6-3. Interrupt Status Register . . . . . . . . . . . . . . . . . . . 6-4
Table 7-1. Allowed Values for Rate Event
Clock Property . . . . . . . . . . . . . . . . . . . . . . . . . 7-3
Table 7-2. Allowed Values for Rate
Event Gate Property . . . . . . . . . . . . . . . . . . . . 7-4
Table 7-3. Allowed Values for Rate
Event Output Property . . . . . . . . . . . . . . . . . . . . 7-5
Table 7-4. Allowed Values for Rate
Event Mode Property . . . . . . . . . . . . . . . . . . . . 7-6
Table 7-5. DriverLINX Messages . . . . . . . . . . . . . . . . . . . . 7-8
Table 7-6. Map of Logical Channels to
Counter/Timer Hardware Channels . . . . . . . . 7-12
Table 7-7. Map of Logical Channels to
Digital Hardware Channels . . . . . . . . . . . . . . 7-13
Table 7-8. Field Layout of an Extended
Logical Channel Address . . . . . . . . . . . . . . . 7-14
Table 7-9. Size Codes for Extended
Logical Channel Address . . . . . . . . . . . . . . . 7-14
Table 7-10. Channel Bit Groups . . . . . . . . . . . . . . . . . . . . . 7-15
Table 8-1. Troubleshooting Information . . . . . . . . . . . . . . . 8-3
Table A-1. CTM-10 and CTM-05/A Specifications . . . . . . . A-1
Table C-1. Acceptable Command Register Codes . . . . . . . . C-2
Table C-2. Load Data Pointer Commands . . . . . . . . . . . . . . C-5
Table C-3. Counter Control Interaction . . . . . . . . . . . . . . . C-13
Table C-4. Counter Control Interaction . . . . . . . . . . . . . . . C-14
vii
viii

Preface

The
CTM-10 and CTM-05/A User’s Guide
install, program, and use the CTM-10 and CTM-05/A counter/timer boards.
The CTM-10 and CTM-05/A boards with DriverLINX software require:
an IBM PC or compatible AT (386, or Pentium CPU) with a minimum of 16 MB of memory
at least one floppy disk drive, and one fixed disk drive
Microsoft Windows 95/98, or Windows NT
a compiler supporting Microsoft Windows development
a mouse is highly recommended.
This guide serves data acquisition system designers, engineers, programmers, and other users responsible for setting up, cabling, and wiring signals to CTM-10 and CTM-05A boards in an IBM PC/XT, Pentium, or equivalent computer in the Windows 95/98, or Windows NT environments. The guide assumes you are familiar with data acquisition principles and with programming in a language suitable for your application.
describes how to set up,
The
CTM-10 and CTM-05/A User’s Guide
Section 1 provides an overview of the hardware features, describes
is organized as follows:
typical applications for the CTM-10 and CTM-05/A boards, and describes the software and accessories available for the boards.
Section 2 provides a functional description of the CTM-10 and
CTM-05/A boards, including block diagrams.
Section 3 describes how to set up and install the boards.
ix
Section 4 describes how to connect accessories and signals to the
boards.
Section 5 describes how to test your board.
Section 6 describes the registers and their locations in the I/O space.
Section 7 describes DriverLINX and the board operating modes that are available using DriverLINX.
Section 8 explains how to troubleshoot problems that may arise with
the boards and provides information on obtaining technical support.
Appendix A lists the specifications for the CTM-10 and CTM-05/A
boards.
Appendix B lists the pin assignments of the I/O connectors on the
CTM-10 and CTM-05/A boards.
Appendix C describes how the Am9513A counter/timer is used in the
CTM-10 and CTM-05/A.
Appendix D describes the limitation of certification, the declaration of conformity, and the cabling instructions required for the CE Mark configuration.
An index completes this manual.
x

Features

1

Overview

This section presents an overview of the CTM-10 and CTM-05/A counter/timer boards. The information in this section is divided into the following segments:
Features
Applications
Supporting software
Accessories
The CTM-10 and CTM-05/A are multi-function, counter/timer boards for the IBM PC/XT and Pentium, and compatibles. The boards use the AM9513A System Timing Controller from Advanced Micro Devices to perform event counting, pulse measurement, frequency measurement, and pulse generation. The CTM-10 uses A and B. The CTM-05/A uses
The CTM-10 board offers the following major features:
10 independent, 16-bit, up/down, counter/timer channels
16 digital input lines with latch (configured as two 8-bit digital input ports)
16 digital output lines with latch (configured as two 8-bit digital
output ports)
Features 1-1
two
AM9513As, designated as units
one
AM9513A, designated as unit A.
The CTM-05/A board is a scaled-down version of the CTM-10 and offers these major features:
five independent, 16-bit, up/down, counter/timer channels
eight digital input lines with latch
eight digital output lines with latch
fully meets CE certification
Note:
The CTM-05/A board is an enhanced version of the CTM-05. DriverLINX may be used to configure and program CTM-05 boards that are already installed in your system.
The following features are offered by both the CTM-10 and the CTM-05/A boards:
7 MHz maximum input frequency
Up/down, binary, or BCD (binary coded decimal) counting
1 MHz or 5 MHz crystal time base with divider
Programmable frequency output
Time-Of-Day option
Alarm comparators on Counters 1 and 2
Complex duty-cycle outputs
One-shot or continuous outputs
Programmable count gate/source selection
Programmable input and output polarities
Programmable gate functions
Software-selectable interrupt levels in addition to jumper-selectable
interrupt levels for backward compatibility
Software-selectable interrupt source
Wait-state generation circuitry ensuring proper hardware operation in fast machines
The CTM-05/A and the lower half of the CTM-10 power up as a CTM-05 and can perform existing CTM-05 applications
1-2 Overview

Applications

CTM-10 or CTM-05/A applications are as follows:
Event counting for pulse output devices
Programmed frequency synthesis
Coincidence alarms
Frequency and rate measurements
Voltage-to-frequency pulse accumulation
Period measurements
Time delay generation
Periodic interrupt generation
Frequency Shift Keying (FSK)
Time interval measurements (DOS only)
Burst waveform generation for clocking DAS boards
Applications 1-3

Supporting Software

The following software is available for operating CTM-10 and CTM-05/A boards:
CTM-10 and CTM-05/A standard software package
— Shipped with CTM-10 and CTM-05/A boards. Includes DriverLINX for Microsoft Windows 95/98 or Windows NT and function libraries for writing application programs under Windows in a high-level language such as Microsoft Visual C++, Microsoft Visual Basic; Borland Delphi support files; utility programs; and language-specific example programs.
DriverLINX —
the high-performance real-time data-acquisition
device drivers for Windows application development including:
DriverLINX API DLLs
and drivers supporting the CTM-10 and
CTM-05/A hardware
CTM Test Panel —
A DriverLINX program that verifies the installation and configuration of DriverLINX to your CTM-10 and CTM-05/A board and demonstrates several virtual bench-top instruments
Analog I/O Panel —
A DriverLINX program that verifies the installation and configuration of DriverLINX to your CTM-10 and CTM-05/A board and demonstrates several virtual bench-top instruments
Learn DriverLINX —
an interactive learning and demonstration program for DriverLINX that includes a Digital Storage Oscilloscope
Source Code —
DriverLINX Application Programming Interface files —
for the sample programs
for the
CTM-10 and CTM-05/A compiler
DriverLINX On-line Help System —
provides immediate help as
you operate DriverLINX
Supplemental Documentation —
on DriverLINX installation and configuration; analog and digital I/O programming; counter/timer programming; technical reference; and information specific to the CTM-10 and CTM-05/A hardware.
1-4 Overview
CTM-10 and CTM-05/A Utilities
DriverLINX CTM Test Panel Utility —
board and monitor aboard operations. Refer to online help for more information.
allows you to test your

Accessories

Note:
Unless otherwise noted, references to DriverLINX include both
the 16-bit and 32-bit drivers.
To simplify complex I/O connections, the following optional accessories are available for the CTM-10 and the CTM-05/A boards:
STA-50 (CTM-10 only)
— Screw-terminal accessory board. This accessory connects to a CTM-10 board through a CACC-2000 cable to make all I/O signals accessible through screw terminals labeled with signal names.
STA-U
— Universal screw-terminal accessory, used as follows:
With the CTM-05/A, this accessory enables all signals of the
CTM-05/A to be accessible through screw-terminal connections. Use a C-1800 cable to connect this accessory to the main I/O connector of the CTM-05/A.
With the CTM-10, this accessory connects to an auxiliary I/O
connector with a CAB-4037 cable and a C-1800 cable to provide access to both digital I/O ports (the upper four bits of port A and all eight bits of port B). This port can handle signals that are not available through the main I/O connector.
STC-37 (CTM-05/A only)
— Screw-terminal connector panel for 37-pin connectors. This accessory attaches directly the the main I/O connector of a CTM-05/A board to provide general-purpose, screw-terminal connections in a compact form factor.
STP-37
— Screw-terminal panel for 37-pin cables. This accessory provides general-purpose screw-terminal connections in a compact form factor.
Accessories 1-5
STP-50 (CTM-10 only)
— Screw-terminal panel for 50-pin cables. This accessory connects to a CTM-10 board through a CACC-2000 cable and provides general-purpose screw-terminal connections in a compact form factor.
C-1800
— An 18-inch ribbon cable with two 37-pin, female, type D
connectors for connecting a CTM-05/A to an STA-U or STP-37.
S-1800
— A shielded version of the C-1800 cable for connecting a
CTM-05/A to an STA-U.
CACC-2000
— A 24-inch ribbon cable for connecting a CTM-10
board to an STA-50 or STP-50.
CAB-4037
— One of two cables required to attach an STA-U to a CTM-10; the other cable is a C-1800. The CAB-4037 is a ribbon cable that connects to the auxiliary connector (J5) of the CTM-10. The other end of the CAB-4037 is terminated with a DB-37M connector mounted in a computer slot panel. The C-1800 connects the DB-37M connector to an STA-U. An STC-37 can also be used.
For detailed information on connecting your boards to the proper cables and accessories, refer to Section 4.
1-6 Overview
2

Functional Description

This section details features of the CTM-10 and CTM-05/A boards to familiarize you with the operating options and enable you to make the best use of your boards. Figure 2-1 shows the block diagram of the CTM-10 board; Figure 2-2 shows a block diagram of the CTM-05/A board. In the block diagrams, counter/timer unit A refers to the first Am9513A on a CTM-10 and the only Am9513A on a CTM-05/A; counter/timer unit B refers to the second Am9513A on a CTM-10 board.
2-1
Por t B
In:
BIN0
to
BIN7
Port B
Out:
BOUT0
to
BOUT7
BSTROBE
8-Bit Data
Latch
8-Bit Data
Latch
Data Bus
AEnable
1 MHz/5 MHz
Dual Frequency
Time Base
AInterrupt
Programmable
Divider
#1 16-Bit Up/Down
Counter
#2 16-Bit Up/Down
Counter
#3 16-Bit Up/Down
Counter
#4 16-Bit Up/Down
Counter
#5 16-Bit Up/Down
Counter
Am9513A Unit B
BFOUT
BCIN1
BGATE1
BTOUT1
BCIN2 BGATE2
BTOUT2
BCIN3 BGATE3
BTOUT3
BCIN4 BGATE4
BTOUT4 BCIN5
BGATE5
BTOUT5
Por t A
In:
AIN0
to
AIN7
Port A
Out:
AOUT0
to
AOUT7
ASTROBE
8-Bit Data
Latch
8-Bit Data
Latch
Address
Address
Select
Buffer
Data
IBM PC Expansion Bus
Programmable Interrupt Logic
Control
Programmable
Divider
#1 16-Bit Up/Down
Counter
#2 16-Bit Up/Down
Counter
#3 16-Bit Up/Down
Counter
#4 16-Bit Up/Down
Counter
#5 16-Bit Up/Down
Counter
Am9513A Unit A
Outputs from Counters
AFOUT
ACIN1
AGATE1
ATOUT1 ACIN2
AGATE2
ATOUT2
ACIN3
AGATE3
ATOUT3
ACIN4
AGATE4
ATOUT4 ACIN5 AGATE5
ATOUT5
Figure 2-1. CTM-10 Block Diagram
2-2 Functional Description
1 MHz/5 MHz
Dual Frequency
Time Base
AEnable AInterrupt
Por t A
In:
AIN0
to
AIN7
Port A
Out:
AOUT0
to
AOUT7
ASTROBE
8-Bit Data
Latch
8-Bit Data
Latch
Address
Address
Select
Data Bus
Buffer
Data
IBM PC Expansion Bus
Programmable Interrupt Logic
Control
Programmable
Divider
#1 16-Bit Up/Down
Counter
#2 16-Bit Up/Down
Counter
#3 16-Bit Up/Down
Counter
#4 16-Bit Up/Down
Counter
#5 16-Bit Up/Down
Counter
Am9513A Unit A
Outputs from Counters
AFOUT
ACIN1
AGATE1 ATOUT1
ACIN2
AGATE2
ATOUT2
ACIN3
AGATE3
ATOUT3
ACIN4 AGATE4
ATOUT4
ACIN5
AGATE5
ATOUT5
Figure 2-2. CTM-05/A Block Diagram
2-3

Am9513A System Timing Controller

All data transfers to an Am9513A system timing controller unit use two I/O ports. Data transfer, such as loading and reading counters and counter mode registers, uses the port at the specified base address.
The port at Base Address +1h carries addressing, command, control, and status information. The many internal registers of the Am9513A require an indirect system of access using a Data Pointer register, which is accessed through the Command register. The Command register also performs other functions such as loading and enabling the counters, latching counter contents, and so on. For more information on base addresses and how to set them, see Section 6.
Note:
Appendix C.

Digital I/O Ports

The CTM-10 board has four 8-bit digital I/O ports with latches while the CTM-05/A board has two 8-bit digital I/O ports with latches. Latches are electronic gates that hold data in position for a specific operation and duration.
The digital I/O ports are totally independent of the Am9513A counter/timer circuitry. You can use these I/O ports for any purpose regardless of the counter’s operation.
The port A input (at Base Address +2h) provides eight digital input lines (AIN0 to AIN7) for both the CTM-05/A and CTM-10. On the CTM-10, the port B input (at Base Address +6h) provides eight additional digital input lines (BIN0 to BIN7). The LSTTL-compatible (low-power Schottky transistor-transistor logic) input ports use a transparent 8-bit latch (74LS373); while the Strobe line is high, data passes through the latch. Data present when the Strobe line is taken low is latched and held as long as the Strobe line remains low.
For detailed information on programming the Am9513A, refer to
2-4 Functional Description
The gate signal for the latches is available at the digital input
Note:
connector (AENB, BENB).
The port A output (at Base Address +3h) provides eight digital output lines for both the CTM-05/A and the CTM-10. On the CTM-10, the port B output (at Base Address +7h) provides an additional eight digital output lines. On the CTM-10, the four least significant bits of the port A input (AIN0 to AIN3) and port A output (AOUT0 to AOUT3) are wired to the 50-pin main I/O connector; the four most significant bits of the port A input (AIN4 to AIN7) and port A output (AOUT4 to AOUT7) are wired to the 37-pin auxiliary connector. Also on the CTM-10, all eight bits of the port B input (BIN0 to BIN7) and port B output (BOUT0 to BOUT7) are wired to the 37-pin auxiliary connector. Refer to Appendix B for the pin assignments of these connectors.
Each digital output can sink up to 8 mA and drive five standard TTL (transistor-transistor logic) loads or 20 low-power Schottky TTL loads. For more information on base addresses and how to set them, see Section 6.

Programmable Interrupt Logic

The programmable interrupt logic contains a flip-flop that sets on a rising edge (0 to 1 transition) of the selected interrupt source. The interrupt source is software-selectable and can be set to any one of the five Am9513A counter outputs or to an external interrupt input. The CTM-10 contains independent interrupt logic for Am9513A units A and B.
The state of the interrupt flip-flop can be determined by reading the unit A Interrupt Status register at Base Address +3h (for the CTM-05/A or CTM-10) or the unit B Interrupt Status register at Base Address +7h (for the CTM-10 only). Reading these registers automatically resets the interrupt flip-flop and interrupt request signal, if they are set.
In applications that “poll” the state of the interrupt request bit (as opposed to responding to a hardware interrupt request), software must execute a redundant read of the Status register whenever an interrupt request is set.
Programmable Interrupt Logic 2-5
This read is necessary to ensure proper resetting of the interrupt request bit.
The interrupt flip-flop can be set to initiate an interrupt on levels 3, 5, 7, 10, 11, or 15 of the host computer. Selection of an interrupt source, level, and enable/disable is made through the unit A Interrupt Control register at Base Address 2h (for the CTM-05/A and CTM-10) or through the unit B Interrupt Control register at Base Address +6h (for the CTM-10 only).
For compatibility with existing CTM-05 applications, unit A of the CTM-05/A and CTM-10 provides jumper-selectable interrupts. This feature allows a signal applied to the external interrupt input to drive the interrupt-request signal selected by a 7-position jumper (for levels 2 to 7 plus a
disable
signal in this mode; when AENB
position). The AENB
is driven to logic 0, the signal applied to
external input functions as an enable
AINT drives the corresponding interrupt input (AINT = 1 drives the interrupt active when AENB
= 0). Note that when any of the software-selectable interrupt levels is selected, the jumper-selected interrupt feature is disabled.
2-6 Functional Description

Setup and Installation

This section describes how to:
Unpack and inspect the board
Configure the board by selecting a base address and interrupt level
Install the software
Install the board
Install additional CTM-10s and CTM-05/As in the system, if desired

Unpacking and Inspecting a Board

3
Caution:
performing the following procedure.
After you remove the wrapped board from its outer shipping carton, proceed as follows:
1. The board is packaged at the factory in an anti-static wrapper that
Unpacking and Inspecting a Board 3-1
Your computer must be turned off and grounded before
must not be removed until you have discharged any static electricity by either of the following methods:
If you are equipped with a wrist grounding strap, you discharge
static electricity as soon as you hold the wrapped board.
If you are not equipped with a wrist grounding strap, you can
discharge static electricity by holding the wrapped board in one hand while placing your other hand firmly on a metal portion of the computer chassis.
2. Carefully unwrap the board from its anti-static wrapping material.
(Store the wrapping material for future use.)
3. Inspect the board for signs of damage. If any damage is apparent,
return the board to the factory; refer to Section 8 for more information.
4. Check the contents of your package against its packing list to be sure
the order is complete. Report any missing items to the factory immediately.
When you have determined that the board is acceptable, you can configure the board, as described in the following section.
Installing and Configuring DriverLINX for CTM-10 and CTM-05/A Boards
Important:
As a precaution against a system crash the first time you install and test any new hardware, you should exit all other programs and, if you use a disk cache, disable write caching. If the system does crash and you’re using disk compression software or a disk cache utility, as a precaution after any crash, run the utility that checks the directory structures.
This section describes how to install the CTM-10 and CTM-05/A standard software package. The contents of these software packages are described as follows:
CTM-10 and CTM-05/A standard software package
— shipped with CTM-10 and CTM-05/A boards. Includes DriverLINX for Microsoft Windows 95/98 or Windows NT and function libraries for writing application programs under Windows in a high-level language such as Microsoft Visual C++, Microsoft Visual Basic; Borland Delphi support files; utility programs; and language-specific example programs.
DriverLINX API DLLs
and drivers supporting the CTM-10 and
CTM-05/A hardware
3-2 Setup and Installation
CTM Test Panel — a
DriverLINX program that verifies the installation and configuration of DriverLINX to your CTM-10 and CTM-05/A board and demonstrates several virtual bench-top instruments
Analog I/O Panel — a
DriverLINX program that verifies the installation and configuration of DriverLINX to your CTM-10 and CTM-05/A board and demonstrates several virtual bench-top instruments
Learn DriverLINX —
program for DriverLINX that includes a Digital Storage Oscilloscope
Source Code —
DriverLINX Application Programming Interface files —
for the sample programs
CTM-10 and CTM-05/A compiler
DriverLINX On-line Help System —
you operate DriverLINX
Supplemental Documentation —
configuration; analog and digital I/O programming; counter/timer programming; technical reference; and information specific to the CTM-10 and CTM-05/A hardware.
CTM-10 and CTM-05/A Utilities
DriverLINX CTM Test Panel Utility —
board and monitor aboard operations. Refer to online help for more information.
an interactive learning and demonstration
for the
provides immediate help as
on DriverLINX installation and
allows you to test your
Installing and Configuring DriverLINX for CTM-10 and CTM-05/A Boards 3-3
Loading...
+ 87 hidden pages