Text preview for : 24870D(CTM05_252CPCF_CTM05).pdf part of Keithley 24870D(CTM05 252CPCF CTM05) Keithley Misc 24870D(CTM05_252CPCF_CTM05).pdf



Back to : 24870D(CTM05_252CPCF_CTM0 | Home

CTM-05
al
PCF-CTM05




Keithley Data Acquisition
n
User Guide
for the



Keithley Data Acquisition
CTM-05
Multi-Function Counter Timer
Digital Expansion Board
&
PCF-CTM05
Callable Driver




~vis,ion 0 - April l9g3,
Copyright Kelthley Data AC wsltlon 1993
Part Number: 248 7 0




Keithley Data Acquisition
440 Myles Standish Blvd.. Taunton. MA 02780
TEL. 508/880-3000. FAX 5081980-0179




,,I


---
Warning

Keithley Date Acqulaition assuxnes UahiHtyfor damages
no consequentto
the use of this product. This product is not designedwith componentsof
a level of reliahillty suItablefor use in ufe *upport or crItIcal applications.




iv -
Contents
CHAPTER 1 INTRODUCTION

1.1 General _. _. _. _. l-1
1.2 Features ..,,,...,.,,,,...,,,,,,.,.,,,..,...,,..__..,.__.._...___.,. ,,. .,..., 1-l
1.3 Applications _. _. _. _, _. l-1
1.4 Block Diagram _. _. l-2
1.5 Optional l/O Accessories _, __._, _, __. _. _. ._. _. ._. l-2
1.6 Specifications _. _. _. l-2


CHAPTER 2 INSTALLATION

2.1 General ., _. .._, ., ._, _, 2-1
2.2 Copying The Distribution Software .., ._. ,_, _, _. _. ._. 2-1
To Copy Distribution Software To Another Diskette _, ., 2-l
To Copy Distribution Software To The PC Hard Drive ., _. 2-1
2.3 Unpacking & Inspecting _, _._. .._. _._, ._, ._. _. 2-2
2.4 Selecting & Setting The Base Address ___. ___. __.._. .__. _, _. 2-2
2.5 Setting The Interrupt Level 2-3
2.6 Hardware Installation _. _, _. _. _. _. _. _. _. 2-3
2.7 110 Connector Pin Assignments _._. _._, ._. ,.. 2-4


CHAPTER 3 REGISTER FUNCTIONS & LOCATIONS

3.1 l/O Map ................................................................................. 3-l
3.2 Introduction To The 9513 .............................................................. 3-l
3.3 Master Mode Register.. ................................................................ 3-4
3.4 Counter Mode Registers ............................................................... 3-6
3.5 Digital 110 ............................................................................... 3-7
3.6 Interrupt Input ...................... .................................................... 3-7


CHAPTER 4 CALIBRATION


CHAPTER 5 PROGRAMMING

5.1 General ,. ., ,. . . . . . . ., ,. ,. ., ._. _, 5-l
5.2 Loading The CTM5.BIN Driver Routine (BASIC) .,_, .__. _. 5-l
5.3 CALL Statement Format (BASIC) _,. ., ., ,. ,.. 5-3
5.4 Use Of The CALL Routine ., .._. ., ., ., ,. 5-4
5.5 MODE CALL Descriptions ., .._. __._, ._, ,. __. 5-5
MODE 0 - initialize _.. _. .._. __. __. 5-5
MODE 1 - Set A Counter Mode Register ., _. ___. _. _. _, 5-6
MODE 2 Multiple Counter Control Commands _. _. _. _. 5-7
MODE 3 Load Counter Load Register ,. ___. _. _. 5-8
MODE 4 - Read Selected Counter Hold Register ,.. .__. _, 5-9
MODE 5 Read The Digital Input Port. .._, _._ 5-9
MODE 6 - Write To Digital Output Port ., _., ., ,, 5-10
MODE 7 - Latch Counters & Save On interrupt ,_ ._. __,_. _. 5-10
MODE 8 Return Status Of Interrupts _._. _._. ___ ._. _. 5-12
MODE 9 -Transfer Data During/After Interrupt ,, __, _. 5-13
Contents

MODE IO - Measure Frequency .................................................. 5-14
MODE 11 - Latch Counters & Save On Interrupt: Dump Data To
Selected Offset & Segment .................................................. 5-15
5.6 Summary Of Error Codes ............................................................. 5-17
5.7 Assembly Language Programs & Calls In Other Languages,, ...................... 5-l 7
5.8 Multiple CTM-05s In One System .................................................... 5-18
5.9 Example Programs .................................................................... 5-18
5.10 Integer Variable Storage .............................................................. 5-19


CHAPTER 6 INSTRUCTIONS FOR PRODUCT RETURN



APPENDIX A INSTRUCTIONS FOR PCFCTM05 CALLABLE DRIVER




. . .
CHAPTER 1

INTRODUCTION


1 .l GENERAL
The CTM-05 is a multi-function counter-timer and digital expansion board for the IBM PC and
compatibles. The board offers five I&bit up/down counters, a IMHz crystal timebase with divider,
and separate general-purpose g-bit TTL input/output (I/O) ports. An Advanced Micro Devices
AMD-9513 System Timing Controller IC (Integrated Circuit) supports the board's counting and timing
functions.



1.2 FEATURES
l Five independent l&bit up/down counters.
l 7 MHz maximum input frequency.
l Binary or BCD counting.
l 1 MHz internal crystal oscillator with tapped scaler.
l Programmable frequency output.
l Time-Of-Day option.
l Alarm comparators on Counters 1 and 2.
l Complex-duty-cycle outposts.
l One-shot or continuous outputs.
l Programmable count gate/source selection.
l Programmable input and output polarities.
l Programmable gate functions.


Additional functions separate from the counter-timer include the following:

l Eight bits of lTL/DTL digital input with latch.
- Eight bits of TTL/DTL digital output with latch.
l Level-selectable interrupt input channel.




1.3 APPLICATIONS
l Event counting for pulse-output devices (flowmeters, wattmeters, etc.).
l Programmed frequency synthesis.
l Co-incidence alarms.

l-l
CTM-05 USER GUIDE

l Frequency measurements.
l F/V conversion and pulse accumulation.
9 Period and pulse duration measurements.
l Time dealy generation.
l Periodic interrupt generation.
l Frequency Shift Keying @SK).




1.4 BLOCK DIAGRAM
oemz lNlEm?"rn
N-UT
PORT




1.5 OPTIONAL I/O ACCESSORIES
To simplify complex I/O connections, an optional screw-connector board (STA-U) connects to the
CTM-05 Board I/O connector via a flat-insulation displacement cable (C-1800).



1.6 SPECIFICATIONS
Counter Timer AM9513 (Advanced Micro Devices)
Five counter/timers:
l Independent or Cascadable.
l Programmable as up or down counters in either
Binary or
Binary Coded Decimal (BCD).
l Programmable to count on positive or negative edge.
l Programmable output polarity.


1-2
CHAPTER I: INTRODUCTION

l Programmable gating on either logic level or edge.
l Selectable counter input clock.

Time Base l.OOMHz (kO.Ol% from 0 to 70