background image

 

3-4

Theory of Operation

KPCMCIA-12AIAOH User’s Manual

 

Trigger circuit

 

The KPCMCIA-12AIAOH PC card can be triggered by the software (i.e., an internal trigger), an 
external TTL input,* the analog input passing through the preset threshold, or the pacer clock. 
For the TTL or analog trigger, an active trigger edge can be selected for either the low-to-high 
transition or the high-to-low transition.

In one-shot trigger mode, one trigger, either internal or external, starts one scan of all the channels 
specified in the scan list. The pacer clock does not have any effect in this mode. Multiple scans 
can be set up by issuing (or receiving) multiple triggers.

In continuous trigger mode (without pre-trigger), a software, TTL, or analog trigger starts a series 
of scans in which the first is initiated immediately upon receiving the trigger and the rest occur 
each time the pacer clock fires. The process continues until the software issues an A/D stop 
command.

If the internal trigger (or the software trigger) is selected, a trig/arm command from software 
serves as a trigger as soon as it is received by the PC card. For the external trigger sources (TTL 
or analog), the same command is taken as an arm command, which arms the PC card so the first 
proper trigger edge since the reception of the arm command serves as the trigger. Any trigger 
edges before the first one will be ignored. Unexpected edge transitions during the configuration 
of the trigger source and edge will not be taken as triggers as long as the PC card is not armed.The 
pre-trigger option can be selected in continuous mode (not allowed in one-shot mode) with exter-
nal trigger sources (TTL or analog but not with internal trigger). If the option is selected, the arm 
command will actually start the pacer clock so the input channels specified in the scan list are 
scanned each time the pacer clock fires and the scan results are placed in the data FIFO. However, 
once the almost-full threshold (programmed as an integer multiple of the scan list length) of the 
data FIFO is reached, the least recent scan is automatically discarded and the most recent one is 
placed in the data FIFO. This filling and discarding continues until the external trigger (TTL or 
analog) activates. At that point, no more discarding will be performed, and the normal data acqui-
sition process starts with half FIFO full of data samples right before the trigger. A/D event bits 
are not set until the trigger activates, guaranteeing that no interrupts can be sent before the trigger 
eventually activates.

 

*NOTE

In “Paced” mode, the same input pin is shared between external clock 
and external trigger, hence only one function can be used (not both si-
multaneously).

 

A/D converter and data FIFO

 

The KPCMCIA-12AIAOH PC card always assumes a bipolar input range of ±10V if the gain is 
one. The output data format will always be in 2’s complement (and left justified for 12-bit ver-
sions). The data acquisition time of the A/D converter is 2µs, while its conversion time is no more 
than 8µs. The A/D converter output is fed into the data FIFO providing data buffering of 2048 
samples.

The hardware design guarantees that the A/D converter, once triggered, will perform a conversion 
for every analog input channel specified in the scan list at the selected scan speed and feed the 
results into the data FIFO. In between scans, the PC card waits until another trigger activates (one-
shot mode) or the pacer clock fires (continuous mode).

The data FIFO has two programmable thresholds: one for almost full and the other for almost 
empty. The KPCMCIA-12AIAOH PC card only uses the almost-full threshold and ignores the 
other. Upon power up or reset, the almost-full threshold is defaulted to 7 bytes to full (3.5 samples).

When the FIFO is full, no more samples can be written into the FIFO. At the end of each scan, 
the KPCMCIA-12AIAOH PC card sets a data-lost flag if the data FIFO is already full. 

Summary of Contents for KPCMCIA-12AIAOH

Page 1: ...KPCMCIA 12AIAOH Type II PCMCIA Card User s Manual A G R E A T E R M E A S U R E O F C O N F I D E N C E...

Page 2: ...ss 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 Sof...

Page 3: ...KPCMCIA 12AIAOH Type II PCMCIA Card User s Manual 1999 Keithley Instruments Inc All rights reserved Cleveland Ohio U S A Second Printing July 2002 Document Number 98936 Rev B...

Page 4: ...into the manual Addenda are num bered sequentially When a new Revision is created all Addenda associated with the previous Revision of the manual are incorporated into the new Revision of the manual E...

Page 5: ...s that a shock hazard exists when voltage levels greater than 30V RMS 42 4V peak or 60VDC are present A good safety practice is to expect that hazardous voltage is present in any unknown circuit befor...

Page 6: ...components in mains circuits including the power transformer test leads and input jacks must be purchased from Keithley Instru ments Standard fuses with applicable national safety approvals may be use...

Page 7: ...of Operation Introduction 3 2 DC DC power supply 3 2 Analog input multiplexer 3 3 Programmable gain control 3 3 Scan list 3 3 Trigger circuit 3 4 A D converter and data FIFO 3 4 Interrupt and status 3...

Page 8: ...read only C 10 Digital output register base 3 write only C 11 Digital input register base 3 read only C 11 Pacer clock base 4 5 6 write only C 12 Command register base 7 write only C 12 Trigger arm co...

Page 9: ...eory of Operation Figure 3 1 State transition diagram of A D conversion process 3 6 4 I O Connections Figure 4 1 KPCMCIA 12AIAOH PC card D 37 output connector KCAB AIAO 4 3 C I O Registers Figure C 1...

Page 10: ...list queue entry bit definitions C 6 Table C 7 Scan list queue programming example 1 C 7 Table C 8 Scan list queue programming example 2 C 7 Table C 9 Control register bit definitions C 8 Table C 10 S...

Page 11: ...1 Introduction...

Page 12: ...rigger and pre trigger are two new features added to the KPCMCIA 12AIAOH PC cards One of the D A channels channel 1 can be used to set up the analog trigger level anywhere in the full input range of t...

Page 13: ...te sampling rates from 0 006Hz to 100kHz 0 to 100kHz with external clock source Software TTL or analog trigger with programmable threshold Pre trigger capability up to the size of the data FIFO Two 12...

Page 14: ...nt for repair include the following information Your name address and telephone number The invoice or order number and date of equipment purchase A description of the problem or its symptoms The RMA n...

Page 15: ...2 Installation...

Page 16: ...the adapter into any type II PCMCIA socket All other configuration options are determined by the DriverLINX software and operating system as discussed in your DriverLINX documentation Software setup...

Page 17: ...3 Theory of Operation...

Page 18: ...eatures are programmable Functionally the KPCMCIA 12AIAOH PC card consists of the following components DC DC power supply Analog input multiplexer Programmable gain control A D converter Data FIFO Sca...

Page 19: ...list entry via software The settling time of the analog front end meets the speed requirement However if the amplifier is saturated it may need a longer time to recover which may cause distortion in t...

Page 20: ...clock fires and the scan results are placed in the data FIFO However once the almost full threshold programmed as an integer multiple of the scan list length of the data FIFO is reached the least rece...

Page 21: ...e 3 write only of four output bits bits 0 to 3 The output port is latched but the input port is not Four input lines are connected to the digital input port each represents one bit in the port When re...

Page 22: ...ine moves from S1 to S4 which can be set to 10 s 20 s or 40 s If there are more channels to scan in the list the state machine will skip to S1 for another conversion loop Other wise it will return to...

Page 23: ...s In mode 1 the event is the timer overflow In mode 2 it is the external gate control going from low to high In mode 3 the event comes from the pacer clock In the synchronous update modes the data wor...

Page 24: ...lue written into the reload register denoted as X for the sake of the discussion determines the divisor or modulus for timing and counting Since the final count before reloading is always 65535 hexade...

Page 25: ...4 I O Connections...

Page 26: ...tput 22 27 DA1 D A channel 1 output 20 7 GND Power supply ground return 19 24 ExtClk shared with A D Timer Counter external clock input 18 8 ExtGate Timer Counter external gate control 17 11 ExtOut Ti...

Page 27: ...7 pin D shell connector If the cable is not identified as such do not use it with the KPCMCIA 12AIAOH PC cards Figure 4 1 KPCMCIA 12AIAOH PC card D 37 output connector KCAB AIAO 1 2 3 4 5 6 7 8 9 10 1...

Page 28: ...5 Optional Accessories...

Page 29: ...5 2 Optional Accessories KPCMCIA 12AIAOH User s Manual The following optional accessories are available from Keithley STP 37 STA U EXP 1600...

Page 30: ...A Specifications...

Page 31: ...eshold set in full A D input range 10V Rising falling directions 10mV hysteresis Sampling rate 0 006Hz to 100kHz with internal clock source External clock rate DC 5MHz NOTE In Paced mode the same inpu...

Page 32: ...ower consumption 210mA full power 70mA power down Operating temperature 0 to 50 C Storage temperature 0 to 70 C Humidity 0 to 95 non condensing Size cable not included Standard PCMCIA type II Weight 1...

Page 33: ...B PCMCIA Interface...

Page 34: ...hat is routable to any system interrupt via the PCMCIA socket controller Two sets of registers are on the KPCMCIA 12AIAOH PC card the configuration registers and program registers The configuration re...

Page 35: ...rd I O card Card configuration and status register CCSR Refer to Table B 3 The KPCMCIA 12AIAOH PC card uses two bits in this register When bit 1 is set to 1 it indicates a pending interrupt The bit wi...

Page 36: ...C I O Registers...

Page 37: ...rs can be accessed as 16 bit I O registers They can also be accessed with 8 bit I O instructions The remaining registers are 8 bit wide Each entry in Table C 1 is discussed in detail in the following...

Page 38: ...ation the 16 bit word read from or written into the register has different meanings as described in Table C 3 The selection bit in Table C 3 is also called the program access control bit as defined in...

Page 39: ...written into the FIFO will be returned The data FIFO reg ister is read only under this mode You cannot write data bytes into the data FIFO through I O instructions Mode setting The FIFO operation mode...

Page 40: ...e data FIFO register provided no more data bytes are written into the FIFO by the A D converter under mode 1 or 3 The same happens to the FIFO almost full flag if the data bytes available in the FIFO...

Page 41: ...aranteed The scan list queue is write only The scan list queue should be flushed before writing any entries into it Refer to Command reg ister base 7 write only for information about the scan list que...

Page 42: ...7 should always be set properly The internal channel is selected by bits 8 through 11 MSB while the internal gain for the selected channel is specified by bits 12 and 13 MSB The internal gain can onl...

Page 43: ...ng also indicates that all digital output lines bits 0 to 3 will be used for external channel selection and two of the four digital input lines bits 1 and 3 will be used for external gain selection A...

Page 44: ...r signal is chosen as the trigger edge if the bit is set to 1 Otherwise the rising edge is selected The edge selection will be ignored if the internal trigger source is specified For the analog trigge...

Page 45: ...flag It is 0 when the PC card is in the process of scan ning the input channels specified by the scan list and 1 when it is finished Bit 6 is the A D running flag A 1 here indicates that the A D is bu...

Page 46: ...egister base 3 read only As mentioned before two of the digital input lines are shared with external trigger bit 0 and external clock bit 2 The other two lines are also used for external gain control...

Page 47: ...counter is reloaded The pacer clock generation continues until the KPCMCIA 12AIAOH PC card receives the stop command represented by writing a 1 at bit 4 of the command register Refer to Com mand regis...

Page 48: ...up The flush command may also be followed by FIFO threshold programming After the FIFO is flushed the FIFO empty flag is set to 1 and the almost full and full flag reset to 0 The flush FIFO command al...

Page 49: ...his bit to 0 by writing an all 0 byte to the auxiliary control register Then send a flushA D FIFO command with the same bit setting by writing a byte of 40H hex 40 to the same register This setting wi...

Page 50: ...o 15 select the D A channel in which bits 13 14 and 15 must all be set to 0 and bit 12 is either set at 0 to select D A channel 0 or 1 to select D A channel 1 Refer to Table C 15 for bit definitions D...

Page 51: ...ay either be passed immediately into the output register direct update mode or loaded into the output register upon receiving the synchronous event synchronous update modes Bits 1 and 0 of the auxilia...

Page 52: ...Bits 3 and 4 in the auxiliary control register base 15 write determine the timer modes as sum marized in Table C 17 Mode 0 is used to reload the up counter Note that the reloading only takes place wh...

Page 53: ...s 65535 or hexadecimal FFFF Suppose D is the divisor also called modulus for counter of the timer and X is the value written into the reload register The relation between the two is D 65536 X The up c...

Page 54: ...mer counter port base 10 base 11 in this section for more information Bits 1 and 0 specify the D A update modes Refer to Section 3 and D A update modes in this section for more information Table C 18...

Page 55: ...by writing a 0 into bit 5 of the auxiliary control register Refer to Section 3 and Timer counter port base 10 base 11 in this section for more information Bit 5 tells whether the D A port buffer regis...

Page 56: ...CCSR B 3 Channel configuration C 7 Clock source C 8 Command register base 7 write only C 12 Configuration and option register COR B 3 Control register base 2 write only C 8 D D A channel output C 15 D...

Page 57: ...control 3 3 R Reading the contents of the timer counter C 18 S Scan list 3 3 Scan list queue programming C 6 Scan list queue register base 1 write only C 6 Scan rate selection C 15 Software setup 2 2...

Page 58: ...e 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...

Reviews: