Amplicon Liveline PC27E Manuel d'instructions

Naviguer en ligne ou télécharger Manuel d'instructions pour Non Amplicon Liveline PC27E. Amplicon Liveline PC27E Instruction manual [en] Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 120
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
PC215E
PC215E
PROGRAMMABLE
DIGITAL
INPUT/OUTPUT
AND COUNTER/TIMER
BOARD
This Instruction Manual is supplied with the PC215E to provide the user with sufficient information to utilise the
purchased product in a proper and efficient manner. The information contained has been reviewed and is believed to be
accurate and reliable, however Amplicon Liveline Limited accepts no responsibility for any problems caused by errors
or omissions. Specifications and instructions are subject to change without notice.
PC215E Instruction Manual Part Nº 85 956 294 Issue A3
© Amplicon Liveline Limited
Prepared by Jonathan East
Approved for issue by A.S. Gorbold, Operations Director
Vue de la page 0
1 2 3 4 5 6 ... 119 120

Résumé du contenu

Page 1 - AND COUNTER/TIMER

PC215EPC215EPROGRAMMABLEDIGITALINPUT/OUTPUTAND COUNTER/TIMERBOARDThis Instruction Manual is supplied with the PC215E to provide the user with sufficie

Page 2 - DECLARATION OF CONFORMITY

Page 5PC215EFigure 2 - PC215E Block DiagramPort CPort BPort A82C55PPI - YPort CPort BPort A82C55PPI - XCTR 2CTR 1CTR 0Address OffsetDecoderInterrupts

Page 3

Page 95PC215E6.6.9 Digitally- and Voltage-Controlled Oscillator Functions6.6.9.1 Prepare a Digitally-Controlled Oscillator - TCsetDCOImplements a di

Page 4

PC215E Page 96MaxF Float. Frequency corresponding to themaximum digital input data value, which itselfdepends on the channel width specified inDIOset

Page 5

Page 97PC215E6.6.9.2 Prepare a Voltage-Controlled Oscillator - TCsetVCOImplements a voltage controlled oscillator which periodically reads a voltage

Page 6 - 1. INTRODUCTION

PC215E Page 98the update ticks.freq0V Float. Output frequency, in Hertz,corresponding to 0.0 Volts on the analog inputchannel.freq10V Float. Output

Page 7

Page 99PC215E6.6.10 Digital Input/Output Functions6.6.10.1 Test if Digital I/O Chip is Free - DIOisAvailableChecks if a particular Digital I/O (DIO)

Page 8

PC215E Page 1006.6.10.2 Configure a Digital I/O Port for Input or Output - DIOsetModeSets up a digital I/O port for basic input or output.i = DIOsetM

Page 9 - 1.5.1.2 Windows DLL

Page 101PC215E6.6.10.3 Re-define Channel Width within a Digital I/O Chip - DIOsetChanWidthRedefines the number of bits per DIO channel to be used in

Page 10

PC215E Page 1026.6.10.4 Send Digital Output Data - DIOsetDataWrites a data value to a DIO channel. It is assumed that the channel has already been s

Page 11 - ! CAUTION

Page 103PC215E6.6.10.5 Read Digital Input Data - DIOgetDataReads a data value from a DIO channel. It is assumed that the channel has already been se

Page 12

PC215E Page 1046.6.11 Switch Scanner Matrix Functions6.6.11.1 Setup a Switch Scanner Matrix - DIOsetSwitchMatrixSets up one, two or three 82C55 DIO

Page 13 - 2. GETTING STARTED

PC215E Page 61.5.1.3 DOS LibraryA DOS library for Microsoft and Borland C/C++ is supplied, which has exactly thesame functionality as the Windows DLL.

Page 14

Page 105PC215E6.6.11.2 Query Status of a Switch within the Scan Matrix - DIOgetSwitchStatusQueries the status of a particular switch in the switch ma

Page 15 - '1'

PC215E Page 1066.6.12 Bi-Directional Data Bus Functions6.6.12.1 Prepare an 8-bit Bi-Directional Data Bus - DIOsetBiDirectionalBusPrograms Group A of

Page 16

Page 107PC215E6.6.12.2 Free-up Bi-Directional Data Bus Digital I/O Chip - DIOfreeBiDirectionalBusFrees up the DIO chip used by the given Bi-Direction

Page 17 - 3. MAKING THE CONNECTIONS

PC215E Page 1086.8 PC215E Interface Guide For LABTECH NOTEBOOKThe LABTECH NOTEBOOK drivers supplied by Amplicon on the PC215E distribution diskettear

Page 18

Page 109PC215E6.8.1 Channel Assignments:Digital Input/Output channels:Channel 0 PPIX Port AChannel 1 PPIX Port BChannel 2 PPIX Port CChannel 3 PPIY Po

Page 19

PC215E Page 1106.9 Guide to User ProgrammingWhen developing an application specific program, it is advised that the supplied dynamic linklibrary func

Page 20 - 36 Pin Connector

Page 111PC215EAPPENDICESAPPENDIX A - GLOSSARY OF TERMSThe following glossary explains some terms used in this manual and in data acquisition and con

Page 21 - 4. USING THE PC215E

PC215E Page 112Common Mode Rejection Ratio (CMR): A measure of the equipment's ability to reject common modeinterference. Usually expressed in de

Page 22

Page 113PC215EInterface: A shared boundary defined by common physical interconnection characteristics, signal characteristicsand meanings of intercha

Page 23 - 1 / freq

PC215E Page 114Software: The non-physical parts of a computer system that includes computer programs such as the operatingsystem, high level language

Page 24

Page 7PC215E1.8 Contacting Amplicon Liveline Limited for Support or ServiceThe PC215E board is produced by Amplicon Liveline Limited and maintenance

Page 25

Page 115PC215EAPPENDIX B PC215E CIRCUIT LAYOUT DRAWINGA PCB layout drawing of the PC215E Board is given below. A full set of circuit drawings is ava

Page 26

PC215E Page 82. GETTING STARTED2.1 General InformationThe PC215E software diskette contains six ready-to-run executable programs, three for DOSand thr

Page 27

Page 9PC215E2.5 Software InstallationTo install the PC215E software onto your hard disk, insert disk 1 into drive A: and select‘File|Run...’ from the

Page 28

PC215E Page 10'1''0'ONOFFONOFF'1''0'SW1800 400 200 100 80 40 20 10Most Significant MiddleDigitDigit21 345678Fi

Page 29

Page 11PC215EPC215E IRQ Interrupt UsageJumper 1 Name Number Description— 0 8 Timer ) Not available on the— 1 9 Keyboard ) Bus Connectors— IRQ

Page 30

PC215E Page 123. MAKING THE CONNECTIONS3.1 The Input/Output ConnectorThese input/output connections are made through the connector protruding from t

Page 31

Page 13PC215EPlease note that the counter/timer clock and gate input sources are selected in software. if youselect one of the five internal frequenci

Page 32

PC215E Page 143.3 Use of Shielded CablesIn order to maintain compliance with the EMC directive, 89/336/EEC, it is mandatory that thefinal system inte

Page 33

PC215EDECLARATION OF CONFORMITYAMPLICON LIVELINE LIMITEDCENTENARY INDUSTRIAL ESTATEHOLLINGDEAN ROADBRIGHTON BN2 4AW UKWe declare that the product(

Page 34

Page 15PC215E62 Pin ConnectorGround < B1 A1 < -I/O CHCK (bracket end of board)+ Reset < B2 A2 < > SD7+5 Volts < B3 A3 < > SD6

Page 35

PC215E Page 164. USING THE PC215EThis chapter describes the various operations associated with implementing the user’s application.Programming and us

Page 36

Page 17PC215E4.2.1 Differential CounterTwo timer/counters can be used to form a Differential Counter pair from which the ratio of, or thedifference be

Page 37

PC215E Page 18MARK SPACEtM tS1 / freqmsratio = tM / (tM + tS) where msratio = mark to space ratiotM = mark time (seconds).tS = space time (seconds).fr

Page 38

Page 19PC215E4.2.6 Frequency/Period MeasurementAnother use for the pulse generation capabilities of the 82C54 is for one counter/timer to providea pre

Page 39

PC215E Page 20selected to either 1, 4, 8, 12, 16 or 24 bits by calling function DIOsetChanWidth (see section6.6.10.3 for more details). The PPI Port(

Page 40

Page 21PC215E4.2.11 Switch MatrixThe high number of digital I/O channels available on the PC215E board lends itself to a switchmatrix scanner implemen

Page 41

PC215E Page 224.2.12 8-Bit Bi-Directional BusIn mode 2 it is possible for an 82C55 PPI device to transfer data in two directions through asingle 8-bi

Page 42

Page 23PC215E5. STRUCTURE AND ASSIGNMENTS OF THE REGISTERSThe set of demonstration programs and routines provided with the PC215E allows the user acc

Page 43

PC215E Page 24ADDRESS Description Write/Read Bits GroupBA + 00 PPI X Port A Write/Read 8BA + 01 PPI X Port B Write/Read 8BA + 02 PPI X Port C Write/Re

Page 44

PC215EPROGRAMMABLE DIGITAL I/O AND COUNTER/TIMER BOARDTABLE OF CONTENTS1. INTRODUCTION...

Page 45

Page 25PC215E5.3.1 Programmable Peripheral Interface PPI-X Data Register Port AThis eight bit register writes to and reads from port A of the 82C55 P

Page 46

PC215E Page 265.3.2 Programmable Peripheral Interface PPI-X Data Register Port BThis eight bit register writes to and reads from port B of the 82C55

Page 47

Page 27PC215E5.3.3 Programmable Peripheral Interface PPI-X Data Register Port CThis eight bit register writes to and reads from port C of the 82C55 P

Page 48

PC215E Page 285.3.4 Programmable Peripheral Interface PPI-X Command RegisterThis is the command register for the PPI and can be used to set the opera

Page 49

Page 29PC215EMode 2 provides strobed bi-directional operation using port A as the bi-directional data bus. PortC3 to C7 bits are used for interrupts a

Page 50

PC215E Page 30Command Word for Bit Set/Reset Format5.3.5 Programmable Peripheral Interface PPI-Y Data Register Port AThis eight bit register writes t

Page 51

Page 31PC215EBIT ASSIGNMENTSThe bit layout of the PPI-Y port A data register is shown below.5.3.6 Programmable Peripheral Interface PPI-Y Data Regist

Page 52

PC215E Page 32BIT ASSIGNMENTSThe bit layout of the PPI-Y port B data register is shown below.5.3.7 Programmable Peripheral Interface PPI-Y Data Regis

Page 53

Page 33PC215EThe modes and programming of PPI operations are outlined in chapters 4 and 6 with the DigitalI/O connections shown in chapter 3.BIT ASSIG

Page 54

PC215E Page 34Mode 0 provides basic input and output operations through each of the ports A, B and C. Outputdata bits are latched and input data follo

Page 55

PC215E4.2.10 Voltage Controlled Oscillator 204.2.11 Switch Matrix 214.2.12 8-Bit Bi-Directional Bus 225. STRUCTURE AND ASSIGNMENTS OF THE REGISTERS.

Page 56

Page 35PC215ECommand Word for Mode Definition FormatCommand Word for Bit Set/Reset Format5.3.9 Z1 Counter 0 Data RegisterThe 82C54 Programmable Timer

Page 57

PC215E Page 36FUNCTIONThe Z1 Counter 0 Data Register is used to write and read 8 bit data to the 82C54 Z1counter/timer 0. The counter is normally conf

Page 58

Page 37PC215E5.3.10 Z1 Counter 1 Data RegisterThe 82C54 Programmable Timer Counter Z1 provides three 16 bit counter/timers which can beindependently

Page 59 - 6. PROGRAMMING THE PC215E

PC215E Page 38BIT ASSIGNMENTSThe bit layout of the Z1 counter 1 data register is shown below.5.3.11 Z1 Counter 2 Data RegisterThe 82C54 Programmable

Page 60

Page 39PC215EFurther information on programming the 82C54 Programmable Counter/Timer is given inchapters 4 and 6.BIT ASSIGNMENTSThe bit layout of the

Page 61

PC215E Page 40As the control register and each counter have separate addresses (offsets 0, 1, 2 and 3) andeach control word specifies the counter it a

Page 62

Page 41PC215E5.3.13 Z1 Counter/Timer Status RegisterThis status register provides the means to interrogate the three sixteen bit counter/timers of th

Page 63

PC215E Page 42Bits 5…0 Counter's programmed Mode exactly as written in the last Mode Control WordBit 6 State of the addressed counter element0 Co

Page 64

Page 43PC215EFurther information on programming the 82C54 Programmable Counter/Timer is given inchapters 4 and 6.BIT ASSIGNMENTSThe bit layout of the

Page 65

PC215E Page 44The output of counter 1 is available on the user socket, SK1 pin 58, and also as a possible clocksource for counter 2.The gate input to

Page 66

PC215E6.6.12 Bi-Directional Data Bus Functions 1066.7 PC215E Library Error Codes 1076.8 PC215E Interface Guide For LABTECH NOTEBOOK 1086.8.1 Channel

Page 67

Page 45PC215EFUNCTIONThe Z2 Counter 2 Data Register is used to write and read 8 bit data to the 82C54 Z2counter/timer 2. The counter is normally confi

Page 68

PC215E Page 46RegisterOffsetWrite and/orReadRegisterWidthRegisterTitleMnemonic1716Write 8 bits82C54 Z2 Counter/TimerControl RegisterZ2 CTCFUNCTIONProv

Page 69

Page 47PC215E5.3.18 Z2 Counter/Timer Status RegisterThis status register provides the means to interrogate the three sixteen bit counter/timers of th

Page 70

PC215E Page 48BIT ASSIGNMENTSBit layout of the counter/timer status word register is shown below.Bits 5…0 Counter's programmed Mode exactly as wr

Page 71

Page 49PC215E5.3.19 Group Z Clock Connection RegisterThis is the register that can be used to select the counter/timer clock sources for the sixcount

Page 72

PC215E Page 505.3.20 Group Z Gate Connection RegisterThis is the register that can be used to select the counter/timer gate input sources for the six

Page 73

Page 51PC215E5.3.21 Interrupt Source Selection RegisterThis is the register that can be used to select one or more interrupt source for the PC215Eboa

Page 74

PC215E Page 52BIT ASSIGNMENTSBit layouts of the Interrupt Source register is shown below.5.3.22 Interrupt Status RegisterThis is the register that ca

Page 75

Page 53PC215EThe Six Interrupt SourcesThe six sources are as follows:1. PPI X Port C bit 0 digital input/output2. PPI X Port C bit 3 digital input

Page 76

PC215E Page 546. PROGRAMMING THE PC215EThe distribution diskette supplied with the PC215E contains a Windows setup program, which installsthe softwar

Page 77

Page 1PC215E1. INTRODUCTION1.1 The Amplicon 200 SeriesThe Amplicon 200 Series of Personal Computer based data acquisition products provides veryhigh

Page 78

Page 55PC215E6.3 Windows DLL and ExamplesThe PC215E DLL is a 16-bit Windows programmer's interface to the PC215E board. Providedthat the compile

Page 79

PC215E Page 566.4.1 Borland C++ User Information1) Ensure that the library DIO_TC.C and the header file DIO_TC.H are in a directory where thecompile

Page 80

Page 57PC215E• Double-click on the empty Form1 design window to bring up the code window for theForm_Load() subroutine. At runtime, this routine wil

Page 81

PC215E Page 586.6 Windows and DOS Library FunctionsDetails are given of each of the functions provided in the supplied Windows Dynamic LinkLibrary (D

Page 82

Page 59PC215E6.6.1.2 Get the Name of a Board - getBoardModelReturns the model name of a registered board.i = getBoardModel (h)whereh Integer: Board&

Page 83

PC215E Page 606.6.2 Interrupt Control Functions6.6.2.1 Enable a Board's Interrupt Source(s) - setIntMaskEnables or disables one or more of a bo

Page 84

Page 61PC215E6.6.2.3 Enable a Board's Interrupts- enableInterruptsEnables the interrupt level registered for a board, by unmasking the correspon

Page 85

PC215E Page 626.6.3 Data Buffer Functions6.6.3.1 Allocate an Integer Data Buffer - allocateIntegerBufCreates a data buffer, by allocating a block of

Page 86

Page 63PC215E6.6.3.3 Free up an Integer Data Buffer - freeIntegerBufFrees a block of memory previously allocated for the given data buffer by theallo

Page 87

PC215E Page 646.6.3.5 Read Data from an Integer Buffer - readIntegerBufReads a data item from an integer buffer, which is returned via a user-supplie

Page 88

PC215E Page 21.2.2 Product ListProduct Number Product Type Brief DescriptionPC212E Counter/timer, Digital I/O board 12 counters, clock/gate source, 24

Page 89

Page 65PC215E6.6.3.7 Write Data to an Integer Buffer - writeIntegerBufWrites a single integer data item to an integer data buffer.i = writeIntegerBuf

Page 90

PC215E Page 666.6.3.9 Copy a block of Data to an Integer Buffer - copyToIntegerBufCopies a block of integer data to an integer buffer.i = copyToInteg

Page 91

Page 67PC215E6.6.3.11 Copy a Block of Integer Data from an Integer Buffer - copyFromIntegerBufCopies a segment of an integer data buffer to a block o

Page 92

PC215E Page 686.6.3.13 Query Number of Interrupt Operations to date on a Buffer - getIntItemThis function can be called for any data buffer currently

Page 93

Page 69PC215E6.6.4 Timer/Counter Functions6.6.4.1 Test if Timer/Counter is free - TCisAvailableChecks if a particular timer/counter channel is curren

Page 94

PC215E Page 706.6.4.2 Free-up Timer/Counter - TCfreeResourceFrees a timer/counter channel previously reserved for use by one of the following functio

Page 95

Page 71PC215E6.6.4.3 Connect Timer/Counter Clock Source - TCsetClockConfigures a timer/counter clock input source.i = TCsetClock(h, chip, chan, clk)w

Page 96

PC215E Page 726.6.4.4 Connect Timer/Counter Gate Source - TCsetGateConfigures a timer/counter gate input source.i = TCsetGate(h, chip, chan, gat)wher

Page 97

Page 73PC215E6.6.4.5 Configure Timer/Counter Mode - TCsetModeSets a timer counter to one of its five available modes of operation. Reading and loadi

Page 98

PC215E Page 746.6.4.6 Read Timer/Counter Status - TCgetStatusReturns the mode and status of a timer/counter by performing a read-back operation on th

Page 99

Page 3PC215E PC272E 72 Lines Digital I/OFigure 1 - Product Configurator Block DiagramPC212E12 Counters24 Lines Digital I/OPC214E3 Counters48 Li

Page 100

Page 75PC215E6.6.4.7 Set Timer Count Value - TCsetCountSends a 16-bit count value to a timer/counter.i = TCsetCount (h, chip, chan, count)where hInte

Page 101

PC215E Page 766.6.4.8 Read Timer's current Count Value - TCgetCountLatches and reads a timer/counter's 16-bit count value, using the read-b

Page 102

Page 77PC215E6.6.4.9 Read Timer's current Up-Count - TCgetUpCountLatches and reads a timer counter value, in the same way as TCgetCount, but ret

Page 103

PC215E Page 786.6.5 Differential Counter Functions6.6.5.1 Setup Differential Counter Pair - TCsetDiffCountersSets up two counter/timers for a differe

Page 104

Page 79PC215EY1 = 8Y2 = 12Z1 = 16Z2 = 20.chan2 Integer. Timer/counter #2 channel numberwithin the chip (0, 1 or 2).clk2 Integer. Timer #2 clock sour

Page 105

PC215E Page 806.6.5.2 Read Differential Count - TCgetDiffCountReturns the difference between the count values of the two counters specified in theTCs

Page 106

Page 81PC215E6.6.5.4 Free Differential Counter Pair - TCfreeDiffCountersFrees the counter/timers associated with a differential pair, as setup by fun

Page 107

PC215E Page 826.6.6 Frequency Generation Functions6.6.6.1 Send Monostable Pulse - TCsetMonoShotCreates a single pulse of specified duration on the o

Page 108

Page 83PC215E6.6.6.2 Generate Astable Multivibrator Waveform - TCsetAstableGenerates a clock signal of specified frequency and mark-to-space ratio. T

Page 109

PC215E Page 846.6.6.3 Free-up Astable Multi-vibrator Counter/Timers - TCfreeAstableFrees the two timer counters used for an astable multi-vibrator, a

Page 110

PC215E Page 41.4 Features of the PC215E• Six 16-bit, 10 MHz counter/timers, each with six programmable counter modes• Crystal clock/divider with 5

Page 111

Page 85PC215E6.6.7.2 Start a Millisecond Stopwatch - TCstartStopwatchStarts a stopwatch which has been previously setup by the TCsetStopwatch functio

Page 112

PC215E Page 866.6.7.4 Prepare an Event Time Recorder - TCsetEventRecorderSets up an event recorder which records the times of positive edges on a PPI

Page 113

Page 87PC215E6.6.7.5 Free-up Event Recorder Timer and Digital Input Channels - TCfreeEventRecorderFrees up the event recorder handle. This function

Page 114

PC215E Page 886.6.7.7 Free-up Stopwatch Counter/Timers - TCfreeStopwatchFrees the timer/counters used by a stopwatch, as previously setup by TCsetSt

Page 115

Page 89PC215E6.6.8 Frequency Input and Output Functions6.6.8.1 Measure Period of an External Signal - TCgetExtPeriodReturns the period of an externa

Page 116 - APPENDICES

PC215E Page 906.6.8.2 Measure Frequency of an External Signal - TCgetExtFreqReturns the frequency of an external signal, in Hertz. The external sign

Page 117 - PC215E Page 112

Page 91PC215E6.6.8.3 Generate a Frequency - TCgenerateFreqGenerates a square wave of specified frequency on a single timer/counter. See section 4.2.

Page 118

PC215E Page 926.6.8.4 Generate an Accurate Frequency - TCgenerateAccFreqGenerates a square wave frequency accurate to 0.1% using two cascaded timer/

Page 119 - PC215E Page 114

Page 93PC215E6.6.8.5 Multiply an External Frequency - TCmultiplyFreqMeasures an external signal’s frequency, then generates another signal whose freq

Page 120

PC215E Page 946.6.8.6 Divide an External Frequency - TCdivideFreqMeasures an external signal’s frequency, then generates another signal whose freque

Commentaires sur ces manuels

Pas de commentaire