Home
LPCI-AIO16A and LPCI-AIO16E User Manual
Contents
1. nnnnnnnnnnnnnnnnnnnrnnnnrnnnnnne 24 Operational Modes 20 eeede E ae eda aa ees eege hee 24 Programming oos 6 00 Sadana de ea a ee ea ee is 25 Reading and Loading the Counters eee eeeeaeeeeeeeseeeeetaeeetaeeseneeeeeeeess 26 Appendix B Calibration cccccceecceee eee eeeeeeeeeeeeeeeeeeeseeaaeeeeeeeeeeeeeneeeaaees 28 Breakdown Calibrating the DACe eee eeeaaeeeeaee sense seaeeesaeeseaeeseenees 29 Step By Step Calibrating the DACe cee eeeaaeeeeaeeseeeeeseaeeesaeeseeeenaees 30 Breakdown Calibrating the A D ccccceceeeceeeeeeneeceeeeeceaeeeeaaeeeeaeeseeeeseaeeesaeeseeeeneeeess 31 Step By Step Calibrating the A D ccccccceeeeceeeeeeeeeeeeeeeceaeeeeeaeeeeeeeseeeesaeeesaeeseneeenaees 32 Table B 1 Factory EEPROM Calibration Locations 34 Customer Comments AA 35 4 Manual LPCI AIO16A Chapter 1 Introduction This low profile PCI based Data Acquisition card is an ideal solution for applications requiring high resolution and high speed analog input analog output and digital I O capabilities This manual applies to both the 16A version and the 16E version with the primary difference being the achievable sampling speed Wherever a reference is made to a sampling frequency or clock frequency 500k applies only to the 16A version while 250k applies only to the 16E version Features e 16 bit resolution A D e Sampling rate 16A version 500Ksamples sec maximum aggregate
2. 16E version 250Ksamples sec maximum aggregate 16 single ended or 8 differential analog inputs Channel by channel ranges of 0 1V 0 2V 0 5V 0 10V 1V 2V 5V 10V A D Start sources Software Timer and External Trigger rising or falling edge software selectable A D Modes Single Channel or Scan Offset Gain Error Calibration Noise reduction with Channel Oversampling Over voltage protection of 40V to 55V First In First Out FIFO A D buffer Two 12 bit Digital to Analog DAC outputs DAC error calibration 16 high current Digital I O lines 16 bit programmable counter timer Applications e Equipment monitoring e Environmental measurements Embedded data acquisition e Education Laboratory Functional Description This product is a PCl based Analog to Digital converter board with 16 single ended or 8 differential analog inputs The board is capable of sampling speeds up to 500K samples sec Analog input channels are enabled as a consecutive set by software Each channel within the set is independently configured by jumpers software to accept one of ten different analog input ranges Analog to digital conversion starts or A D starts are issued one of three ways Software Start Timer Start or External Trigger Start A D starts are software configured to be either rising or falling edge Additionally A D starts are software configured to be Single Channel or Scan Single Channel samples data once from the next consecutive
3. Once this address is written to A D conversions will be enabled if the A D Start Source is either Timer Start or External Start Trigger If the A D Start Source is Software Start conversions will begin after a write to Base Address 1 6 Read A D data from the A D Data FIFO with a read from Base Address 0 1 It is helpful to use the flags in Base Address 12 and the IRQ flags in Base Address 13 when deciding to read A D data Ss Write Function Read Function A D Software Start A D Data cil ig Counter Timer Configuration DAC 0 Output Data 1 2 3 we Hw wa Je Clock Configuration A D DAC FIFO Status Flags ee Eege i ees Es N 13 EN 15 DIO Configuration 8255 EEPROM access EEPROM access Gain Offset Calibration Data DAC Calibration Data Write Reset Register PO Pp Board Model Table 4 1 Register Definitions C E F 10 11 13 14 15 17 18 19 1A 1B 1C 1E 12 Manual LPCI AIO16A NOTE Reading and writing words 16 bits may only be done on even address boundaries ie Base Address 0 2 etc Reading and writing bytes 8 bits can be done on even or odd boundaries Base Address 0 1 read A D Data Base Address 0 a ae a ap ap a2 an ao Base Address 1 s t ana ans an2 am ano ao as ad15 ad0 gt A D data Reading a word from Base Address 0 will provide the best performance Two consecutive byte re
4. This board features digitally controlled potentiometers which are used to adjust the gain and offset of the A D function and the gain of the DAC function This allows both the analog inputs and outputs to be calibrated from software in the field In order to obtain accurate data the proper values must be loaded into the digital potentiometers each time the board is powered If no constants are loaded the potentiometers will power on to the center of their ranges which will result in a non or poorly calibrated situation When the board ships from the factory it already has a valid set of calibration constants preloaded into the EEPROM for your immediate use The various calibration steps are all wrapped up in a calibration program for your use This program runs in DOS and compatible environments only and is written in Borland C C 3 1 with source code provided You will need a DVM and a calibrated voltage source to run the program The following steps are only necessary if you are writing your own calibration program e g for a new operating system If you are unable to run the provided calibration program it is recommended you examine its source code for details on performing the calibration in your own code The rest of the chapter is broken down into several sections First is an overview a kind of executive summary describing the two major steps involved in calibrating the board Following this is a breakdown of the 5 calib
5. at ACCES discretion for any products which are proved to be defective during the warranty period In no case is ACCES liable for consequential or special damage arriving from use or misuse of our product The customer is responsible for all charges caused by modifications or additions to ACCES equipment not approved in writing by ACCES or if in ACCES opinion the equipment has been subjected to abnormal use Abnormal use for purposes of this warranty is defined as any use to which the equipment is exposed other than that use specified or intended as evidenced by purchase or sales representation Other than the above no other warranty expressed or implied shall apply to any and all such equipment furnished or sold by ACCES Ordering Guide LPCI AIO16A Full featured version with 16 Bit 500kHz A D and two 12 Bit D A s e LPCI AlO16E Full featured version with 16 Bit 250kHz A D and two 12 Bit D A s Optional accessories e STA 50 SCSI Screw Terminal Board mounted on standoffs e CAB50 3 SCSI Round Wire Cable Assembly 3 long with one touch lock latches 3 Manual LPCI AIO16A TABLE OF CONTENTS Ordering Guide 3 00 5 0 aiiee hands Beis ain a et ate a tat 3 Chapter 1 Introduchon cece ceeecneee eee eee eeeeeeeeaaeeeeeeeeeeeeeeneeneeeeeeees 5 FO Ate seess Ee Mach ecb eene eege seaweeds 5 Applications geed ee irienner ii EENAA N deus E EENS EENS 5 Functional Description 5 Figure 1 1 Block DiagraM unenian aei a iier 6 Analog
6. po o Remember that all of these steps are already encapsulated in a C language DOS compatible Calibration program that ships free with the board For the fastest way to write your own calibration program consider referring to the source code of the Calibration program 34 Manual LPCI AIO16A Customer Comments If you experience any problems with this manual or just want to give us some feedback please email us at manuals accesio com Please detail any errors you find and include your mailing address so that we can send you any manual updates Vo ACCES I O PRODUCTS INC 10623 Roselle Street San Diego CA 92121 Tel 858 550 9559 FAX 858 550 7322 www accesio com 35 Manual LPCI AIO16A
7. will be available All equipment originally manufactured by ACCES which is found to be defective will be repaired or replaced subject to the following considerations Terms and Conditions If a unit is suspected of failure contact ACCES Customer Service department Be prepared to give the unit model number serial number and a description of the failure symptom s We may suggest some simple tests to confirm the failure We will assign a Return Material Authorization RMA number which must appear on the outer label of the return package All units components should be properly packed for handling and returned with freight prepaid to the ACCES designated Service Center and will be returned to the customer s user s site freight prepaid and invoiced Coverage First Three Years Returned unit part will be repaired and or replaced at ACCES option with no charge for labor or parts not excluded by warranty Warranty commences with equipment shipment Following Years Throughout your equipment s lifetime ACCES stands ready to provide on site or in plant service at reasonable rates similar to those of other manufacturers in the industry Equipment Not Manufactured by ACCES Equipment provided but not manufactured by ACCES is warranted and will be repaired according to the terms and conditions of the respective equipment manufacturer s warranty General Under this Warranty liability of ACCES is limited to replacing repairing or issuing credit
8. CNT 0 the counters selected by CO through C2 are latched simultaneously When STA 0 the counter status byte is read when the counter I O location is accessed The counter status byte provides information about the current output state of the selected counter and its configuration The status byte returned if STA 0 is 26 Manual LPCI AIO16A OUT Current state of counter output pin NC Null count This indicates when the last count loaded into the counter register has actually been loaded into the counter itself The exact time of load depends on the configuration selected Until the count is loaded into the counter itself it cannot be read RW1 RWO Read Write command M2 M1 MO Counter mode BCD BCD Ois binary mode otherwise counter is in BCD mode If both STA and CNT bits in the readback command byte are set low and the RW1 and RWO bits have both been previously set high in the counter control register thus selecting two byte reads then reading a selected counter address location will yield 1st Read Status byte 2nd Read Low byte of latched data 3rd Read High byte of latched data After any latching operation of a counter the contents of its hold register must be read before any subsequent latches of that counter will have any effect If a status latch command is issued before the hold register is read then the first read will read the status not the latched value 27 Manual LPCI AIO16A Appendix B Calibration
9. and Offset is half of this value For example 5Volt range has a Span of 10V and an Offset of 5V If the A D reads FFE9 counts on a 0 10V range the voltage being indicated is 10 FAE9 FFFF 0 or 9 801 Volts Store the value from the digital calibration potentiometer into a spot in the EEPROM for use on the next and subsequent board initializations The correct spot in EEPROM varies with the A D range and single ended differential selection being calibrated We recommend you use the same locations as our provided Calibration program drivers and samples as shown in Table B 1 below Write the value using the procedure outlined in the description of Base 19 in Chapter 5 For example if calibrating the Gain of the 0 10 Volts Single Ended setting of the board we recommend you write the calibration potentiometer value into the D location of the EEPROM 33 Manual LPCI AIO16A Step 2 Write the Calibration Constants into the Calibration Potentiometers Step 2 applies to both DAC and A D Calibration Step 1 involved applying or measuring voltages connecting pins and sources etc Step 1 only needs to be performed if the data from the A D appears to be out of calibration or approximately every 6 12 months depending on environmental and usage considerations Step 2 however needs to be performed every time the board is reset In Step 2 you merely perform a read from the EEPROM and write the value to the digital calibration potentiometers for each of
10. half If the count is even then the output is a symmetrical square wave If the count is odd then the output is high for N 1 2 counts and low for N 1 2 counts Periodic triggering or frequency synthesis are two possible applications for this mode Note that in this mode to achieve the square wave the counter decrements by two for the total loaded count then reloads and decrements by two for the second part of the wave form 24 Manual LPCI AIO16A Mode 4 Software Triggered Strobe This mode sets the output high and when the count is loaded the counter begins to count down When the counter reaches zero the output will go low for one input period The counter must be reloaded to repeat the cycle A low gate input will inhibit the counter This mode can be used to provide a delayed software trigger for initiating A D conversions Mode 5 Hardware Triggered Strobe In this mode the counter will start counting after the rising edge of the trigger input and will go low for one clock period when the terminal count is reached The counter is retriggerable The output will not go low until the full count after the rising edge of the trigger Programming On this card the 8254 counters occupy the following addresses hex Base Address 8 Read Write Counter 0 Base Address 9 Read Write Counter 1 Base Address A Read Write Counter 2 Base Address B Write to Counter Control register The counters are programmed by writing a control b
11. set to differential 1 jumpers set to single ended gainMode gt 0 jumpers set to GNL 1 jumpers set to GNH dacO gt 0 DAC 0 has 0 10V range 1 DAC 0 has 0 5V range dac1 gt 0 DAC 1 has 0 10V range 1 DAC 1 has 0 5V range empty gt 0 A D Data FIFO is empty 1 A D Data FIFO is not empty halfFull gt 0 A D FIFO is at least half full 1 A D FIFO is not at least half full fifoFull gt 0 A D Data FIFO is not full 1 A D Data FIFO is full Base Address 13 read write IRQ Configuration and Status Base Address 13 write ies haFulligen Writing to this address will configure the IRQs for End of Conversion EOC End of Scan EOS A D Data FIFO at least half full and A D Data FIFO full Below are the IRQ enable bit patterns eoclrqEn gt 0 disable the EOC IRQ 1 enable the EOC IRQ eosIrqEn gt 0 disable the EOS IRQ 1 enable the EOS IRQ halfFulllrqEn gt 0 disable the A D Data FIFO 1 enable the A D Data FIFO is at least half full IRQ is at least half full IRQ fulllrqEn gt 0 disable the A D Data FIFO 1 enable the A D Data FIFO full IRQ full IRQ Base Address 13 read ite halfFullirg Once any of the above IRQ enables are set to 1 the corresponding condition will cause an IRQ to be generated All four enables can be set at the same time A read of this address allows the a
12. wish to load the 8 bit value you wish to load and an End byte Similar to the operation of the EEPROM the calibration correction values are loaded serially into the digital potentiometers in the board Therefore to load a value of 4F into the A D Gain potentiometer the following writes are performed Write Value Description S O EE These two bits are the address of the potentiometer to write 00 is A D offset 01 is gain Write 2 is the MSB Write 3 is the LSB E 0 MSB of data Bit D7 of Write 3 should be the D7 bit of the calibration correction value you are loading 5 Axo 81 D7 should be bit D6 of the calibration value _ 6 Oxxxxxxt 01 D7 should be bit D5 of the calibration value LU Oxwxxxxt 01 D7 should be bit D4 of the calibration value 8 x01 81_ D7 should be bit D3 of the calibration value _ _ 9 tooo 81 D7 should be bit D2 of the calibration value 11 too 81_ D7 should be bit DO of the calibration value For ease of reference the bits which can change are typeset in bold For details on the operation of the Digital Potentiometer refer to the Analog Devices AD8403 datasheet Base Address 1A write DAC Calibration Data Write SCH The board contains 2 digital potentiometers used to calibrate the DACs The two calibration corrections provided are Gain for DACO 00 and DAC1 01 These two corrections are internally addressed 0 and 1 Each calibration correction consists o
13. 18 Manual LPCI AIO16A Reading from the EEPROM Similarly reading a word takes 10 writes enable code start bit read opcode 2 bits 1 0 and the address 6 bits MSB first followed by 16 reads to acquire the data from the EEPROM followed by one write to terminate communication with the EEPROM Therefore to read from address 4 perform the following writes and reads Write Value Description O MSB of address Bit 7 should be 1 or 0 based on the D5 bit of address in the EEPROM to be Read Always set DO to 1 6 Oxxxxxx1 01 Bit 7 should be bit D4 of address Always set DO to 4 O Z O 8 1xxxxxx1 81_ Bit7 should be bit D2 of address Always set DO to 1 Z o Oooo 01 Bit should be bit D1 of address Always set DO T 0xxxxxx1 01 LSB of address Bit 7 should be 1 or 0 based on the DO bit of address to be read Always set DO to 1 Read 1 Bit D7 of this Read returns the Most Significant Bit D15 of the 16 bit data stored at the address specified in writes 5 through 10 D7 contains bit D14 from the word at the specified address D7 contains bit D12 from the word at the specified address D7 contains bit D13 from the word at the specified address D7 contains bit D11 from the word at the specified address Write 11 Oxxxxxx0 00 End Always write 00 as the last step For ease of reference the bits which can change are typeset in bold There must be at least a 4us delay between each of the 11 writes and 1
14. 3 DIFF Ch7 SE Ch7 DIFF Ch6 SE Ch6 DIFF Ch1 SE Ch1 DIFF Ch2 SE Ch2 DIFF Ch3 SE Ch3 DIFF DAI GND DAC 1 Digital Ground Channel 9 Single ended or Channel 1 differential inverting input Channel 15 Single ended or Channel 7 differential inverting input Channel 14 Single ended or Channel 6 differential inverting input Channel 13 Single ended or Channel 5 differential inverting input Channel 12 Single ended or Channel 4 differential inverting input Channel 8 Single ended or Channel 0 differential inverting input Channel 3 differential inverting input Channel 7 differential non inverting input Channel 6 Singled ended or Channel 6 differential non inverting input Channel 1 Singled ended or Channel 1 differential non inverting input Channel 2 Singled ended or Channel 2 differential non inverting input S Channel 3 Singled ended or Channel 3 differential non inverting input Analog Ground for DAC 1 Digital to Analog Output Channel 1 DIO5 DIO1 DIO7 DIOO DIO10 Counter Timer 2 Out Counter Timer 0 Out Counter Timer 0 Clock External Start Trigger GND GND Ch10 SE Ch2 DIFF Ch4 SE Ch4 DIFF Ch5 SE Ch5 DIFF Ch0 SE Ch0 DIFF GND GND DAC 0 gt e E E E Esc e Q Q Q Q Z Z Z Z J D J D 50 DAO GND Description Digital I O Bit 3 pulled up Digital I O Bit 2 pulled up Digital I O Bit 5 pulled up Digital I O Bit 1 pulled up Digita
15. 6 reads After the last write operation which ends communication with the EEPROM it will be unavailable for 20ms Do not access the EEPROM during this period The Software Master CD contains sample programs demonstrating the use of the EEPROM in a variety of languages including a driverlet which encapsulates the complexities of the process Using this driverlet is as simple as passing the address and data in the EEPROM you wish to write or the address from which to read to our functions It is highly recommended that you use the provided source code as a basis for your own programs 19 Manual LPCI AIO16A Base Address 19 write Gain Offset Calibration Data Write SCH The board contains 2 digital potentiometers used to calibrate the gain amp offset The two calibration corrections provided are A D Offset 00 and A D Gain 01 These two corrections are internally addressed 0 and 1 Each calibration correction consists of a value from 0 255 8 bits corresponding to the internal value of the digital potentiometer A D Offset corresponds to the B in a Y mX B equation A D Gain is the m term of the same equation The value you load into these calibration potentiometers is normally read from the EEPROM and written here only during program initialization and only needs to be written once per power on cycle To load one of the calibration correction values you must write the address 0 1 of the correction you
16. Hl CT 6 Table 1 1 Analog Input Range Gelechon 7 AID St r oaae a a td eT eg ee EE ees 7 Oversample 4c cc0 nce ini eee fei ee eee ti eee 7 Calibration eier ACEN fee hd Eege ee A eee 7 A D EIERE etd ee ee ea 8 Interrupt Request IRQ cc cece eeeeeeceeeeeeeaeeeeeeeceaeeeeaaeeseaeeseeeeesaaeeesaaeseeeeeseaeeesaeeneaeessaees 8 Analog Outputs DAC oriei aiaiai ine avi uiai ea apia iai a iai aiani 8 Digital e HE 8 Counte TMA geen ee hae eee i eae ed ete ee ee 8 Included with your board AAA 9 Chapter 2 Installation 00 cece cece eee eeeeeeeee eee eee e ee tecceaaeeeeeeeeeeeeeeeeeaaaees 10 Chapter 3 Option Selection A 11 Figure 3 1 Option Selection Map 11 Chapter 4 Programming eeeeeeeeeneeneneeeeeerrnrrnrtersertrrtnnnnnnsserernrnnnnnenseeennnn 12 A D Order of Operations aoinean Mie ee a i Reder Saye es 12 Table 4 1 Register Definitions A 12 Writing to the EEPROM egene e TR tener che degt RAe Ae SEAN Re stances AER 18 Reading from the EEPROM e ardain e aaa ao aaan aa aei teen EA rae DAE eet 19 Chapter 5 Connector Pin Aesignments 0 ccccccccceeeeeeeeeeeeeeeeeeeeeeaeees 22 Table 5 1 Connector Pin Assignments c cceeeeeeeeeeeeeeeeeeeeeeaeeeeeaeeeeeeeseeeesaeeteaeeeeeeees 22 Chapter 6 Specifications 20sereegegedieggeedeggdged eege eee 23 Ee e Mi aa A eed T Seb eects Hien ed eee eee se 23 Digtal W O WEE 23 Appendix A 82C54 Counter Timer Operation
17. Vo ACCES I O PRODUCTS INC 10623 Roselle Street San Diego CA 92121 O 858 550 9559 Fax 858 550 7322 contactus accesio com www accesio com LPCI AlO16A and LPCI AIO16E LOW PROFILE PCI HIGH PERFORMANCE ANALOG I O BOARDS USER MANUAL MLPCI AlO16A A2 Notice The information in this document is provided for reference only ACCES does not assume any liability arising out of the application or use of the information or products described herein This document may contain or reference information and products protected by copyrights or patents and does not convey any license under the patent rights of ACCES nor the rights of others IBM PC PC XT and PC AT are registered trademarks of the International Business Machines Corporation Printed in USA Copyright 2008 by ACCES UO Products Inc 10623 Roselle Street San Diego CA 92121 All rights reserved WARNING ALWAYS CONNECT AND DISCONNECT YOUR FIELD CABLING WITH THE COMPUTER POWER OFF ALWAYS TURN COMPUTER POWER OFF BEFORE INSTALLING A BOARD CONNECTING AND DISCONNECTING CABLES OR INSTALLING BOARDS INTO A SYSTEM WITH THE COMPUTER OR FIELD POWER ON MAY CAUSE DAMAGE TO THE I O BOARD AND WILL VOID ALL WARRANTIES IMPLIED OR EXPRESSED 2 Manual LPCI AIO16A Warranty Prior to shipment ACCES equipment is thoroughly inspected and tested to applicable specifications However should equipment failure occur ACCES assures its customers that prompt service and support
18. ads first Base Address 1 and then Base Address 0 will grab one conversion s data from the A D FIFO If issuing two byte reads it is important to know that the A D FIFO increments to the next conversion s data only after the byte read from Base Address 0 The byte read from Base Address 1 must be done before the byte read from Base Address 0 or the lower data byte will be lost Base Address 1 write A D Software Start Software start Writing any value to this address will begin one A D Start Base Address 2 5 write A D Programmable Gain Configuration Base Address 2 Bit 7 BitO Ch3 SoftwareGain Ch2 SoftwareGain Ch1 SoftwareGain ChO SoftwareGain Base Address 3 Bit7 Bit Ch7 SoftwareGain Ch6 SoftwareGain Ch5 SoftwareGain Ch4 SoftwareGain Base Address 4 Bit 7 Bit 0 Ch11 SoftwareGain Ch10 SoftwareGain Ch9 SoftwareGain Ch8 SoftwareGain Base Address 5 Bit 7 S Ch15 SoftwareGain Ch14 SoftwareGain Ch13 SoftwareGain Ch12 SoftwareGain softwareGain 00 0 softwareGain 01 1 softwareGain 10 2 softwareGain 11 3 13 Manual LPCI AIO16A Writing to these addresses will set the Software Gain per channel see Table 1 1 Analog Input Range Selection Base Address 6 write A D Start End Channel Configuration start3 start0 gt A D start channel 0 15 end3 end0 gt A D end channel 0 15 Writing to this address will set the start and end address of the enabled set of channels Base Addre
19. alibration value 9 LUvout 8 D7 should be bit D2 of the calibration value For ease of reference the bits which can change are typeset in bold For details on the operation of the Digital Potentiometer refer to the Analog Devices AD8403 datasheet Base Address 1B write Reset Register ffoReset Writing to this address will reset the following fifoReset gt OD N A 1 reset the A D Data FIFO dioReset gt N A 1 reset the 8255 Port A and Port B dacReset gt N A 1 reset the DACs back to zero masterReset gt N A 1 reset all of the above all configuration addresses Base Address 1C through 1E unused Base Address 1F read Board Model po fo o o o 0o o o Reading from this address will indicate the presence or absence of a card LPCIAIO gt N A 1 LPCIAIO Card detected 21 Manual LPCI AIO16A Chapter 5 Connector Pin Assignments Connector P3 50 pin SCSI female P1 PCI connector P2 Factory Use header Pin Signal Name Description Pin Signal Name 1 DIO4 Digital I O Bit 4 pulled up DIO3 2 DIO6 Digital I O Bit 6 pulled up DIO2 3 4 5 6 10 11 N N N N N N Le E LA N O N Ur DIO8 DIO9 DIO11 DIO12 DIO14 DIO13 DIO15 DGND DGND Ch9 SE Ch1 DIFF Ch15 SE Ch7 DIFF Ch14 SE Ch6 DIFF Ch13 SE Ch5 DIFF Ch12 SE Ch4 DIFF Ch8 SE Ch0 DIFF Ch11 SE Ch
20. asure the output value of the DAC with a DVM 1 3 Adjust the value in the digital calibration potentiometer for that DAC until the voltage read by the DVM matches the known value being output 1 4 Store the value from the digital calibration potentiometer into a spot in the EEPROM for use on the next and subsequent board initializations 1 5 Repeat steps for the other DAC Step 2 Write the Calibration Constants into the Calibration Potentiometers For details on Step 2 please refer to section Step 2 near the end of this appendix 1 The value corresponding to a known voltage to output depends on the range of the DAC as selected by jumpers on the board Software can determine the current jumper configured range using the status register at Base 8 Chapter 6 The correct spot in EEPROM varies with the DAC number being calibrated and the currently selected range see note 1 Please note you could use any location in the EEPROM you want as long as you always use the same location We recommend you use the same locations as our provided Calibration program drivers and samples as shown in Table B 1 following 29 Manual LPCI AIO16A Step By Step Calibrating the DACs Now let s describe these steps in detail 1 1 1 5 Output a known value to the DAC You should determine the maximum range of the DAC using Base 12 see Chapter 5 Pick a value approximately 5 lower than this maximum By using a value lower than the maxim
21. bility to see which IRQ flag generated the IRQ Below are the IRQ flags eoclrq gt 0 no EOC IRQ occurred 1 EOC IRQ occurred eoslrq gt 0 no EOS IRQ occurred 1 EOS IRQ occurred halfFulllrq gt 0 no A D FIFO is at least 1 A D FIFO is at least half full IRQ occurred half full IRQ occurred fulllrq gt 0 no FIFO full IRQ occurred 1 FIFO full IRQ occurred Reading this address also clears any of the IRQ flags that are set 16 Manual LPCI AIO16A Base Address 14 read write Port A DIO 8255 era EC EE ER REN EE EE E a7 a0 gt Port A data Reading from this address will return the digital data on Port A Writing to this address will output the digital data on Port A Readback is supported while in the output mode Be sure to refer to Base Address 17 for controlling Port A s input output direction Base Address 15 read write Port B DIO 8255 by be f a be be be BO b7 b0 gt Port B data Reading from this address will return the digital data on Port B Writing to this address will output the digital data on Port B Readback is supported while in the output mode Be sure to refer to Base Address 17 for controlling Port B s input output direction Base Address 16 Unused Base Address 17 write DIO Configuration 8255 modeSeiFlag PontADi SR Writing to this address configures the input output direction for Ports A and B A 1 must alway
22. channel within the enabled set A Scan samples data from all channels within the set at the fastest possible rate An onboard FIFO allows the analog data to be buffered and read out at a later time The FIFO has two flags FIFO half full and FIFO full which can both trigger an IRQ Two 12 bit DAC outputs are provided Output ranges of 0 5V and 0 10V are field selectable with jumpers per output Also provided are 16 Digital I O lines in 2 groups of 8 lines Both Digital I O bytes are individually software selectable as input or output A fully programmable 8254 16 bit counter is provided with a maximum input frequency of 1OMHz The clock and output can be accessed externally for extended functionality 5 Manual LPCI AIO16A 16 SEI VREF 8 DIFF L SIGNAL COND 16 BIT A D CONVERTER INCL CAL ADJ 500 KSamples Second A D DATA FIFO MUX CHO Hie CHO LOe EEPROM CAL DATA 16 SE 8 DIFF L ANALOG INPUTS Cl STATUS eT as REGISTER CH15 e CONTROL INTERRUPT REGISTERS MUX_INCREMENT amp CONTROL LOGIC INTERNAL DATA BUS CONTROL 16 BITS DIGITAL 2x8 BITS INPUT OUTPUT DATA E BUFFERS 16 BITS A D START o ocw 0v SELECT SIGNAL COND INCL CAL ADJ DAC A o DUAL 12 BIT DAC SIGNAL COND DAC BO INCL CALADJ CTRO CTRO CTR2 INPUT OUT OUT Figure 1 1 Block Diagram Analog Inputs There are a total of 16 single ended or 8 d
23. e prompts to install the software for the card Leave the Master CD in the drive and proceed to the next step Installing the Card into the Computer slot CAUTION ESD A single static discharge can damage your card and cause premature failure Please follow all reasonable precautions to prevent a static discharge such as grounding yourself by touching any grounded surface 1 If the computer is a Low Profile Computer then back out the two screws on the I O connector to remove the regular size bracket that ships installed on the card and install the Low Profile bracket onto the card and tighten the connector s bracket screws Save the regular size bracket in case the card ever needs to be moved to another computer at a later time 2 Shut down the computer and remove the cover 3 Install the card in the computer paying particular attention to the mounting bracket s retention screw to ensure a good ground connection exists 4 Install an I O cable onto the card s I O connector 5 Power on the computer which should auto detect the card depending on operating system and automatically finish installing the drivers 6 Run PClfind exe to complete installing the card into the registry and to determine the assigned resources 7 Now would be a good time to run one of the provided sample programs that was copied to the newly created card directory from the CD to test and validate your installation 10 Manual LPCI AIO16A Chapter 3 Opti
24. es reading the value out of the correct EEPROM location and writing it to the calibration potentiometer The details of Step 2 are described near the end of this appendix following 30 Manual LPCI AIO16A Breakdown Calibrating the A D A D Calibration while fundamentally different than the DAC calibration process described above is also very similar In the A D calibration you are determining the amount of calibration error adjusting the digital potentiometers until the error is eliminated and storing the adjustment for later use Unlike the DAC there are two digital potentiometers for the A D offset adjust and gain adjust The same two steps apply Step 1 Determine the calibration constants Step 2 Write the calibration constants into the calibration potentiometers First let s expand Step 1 into its component sub steps for the A D Step 1 Determine the Calibration Constants for the A D 1 1 Offset Adjust Apply Ground to the A D input Acquire the voltage using the A D converter Adjust the value in the digital calibration potentiometer for the A D until the voltage read by the A D indicates 1 count 1 1 4 Store the value from the digital calibration potentiometer into a spot in the EEPROM for use on the next and subsequent board initializations 1 2 Gain Adjust 1 2 1 Apply a known voltage to the A D Input 1 2 2 Acquire the voltage using the A D converter 1 2 3 Adjust the value in the digital calibration potentio
25. f a value from 0 255 8 bits corresponding to the internal value of the digital potentiometer DAC Offset corresponds to the B in a Y mX B equation DAC Gain is the m term of the same equation The nature of the DAC circuitry eliminates the need to provide offset B calibration The value you load into these calibration potentiometers is normally read from the EEPROM and written here only during program initialization and only needs to be written once per power on cycle 20 Manual LPCI AIO16A To load one of the calibration correction values you must write the address 0 1 of the correction you wish to load the 8 bit value you wish to load and an End byte Similar to the operation of the EEPROM the calibration correction values are loaded serially into the digital potentiometers in the board Therefore to load a value of 4F into the DAC Gain potentiometer the following writes are performed Write Value Description _ S O 1xxxxxx0 80 Enable code Always write 80 as the 1 byte Oxxxxxx1 01 These two bits are the address of the potentiometer to write 00 is DACO gain 1xxxxxx1 81 01 is DAC1 gain Write 2 is the MSB Write 3 is the LSB 4 Oxxxxxx1 01 MSB of data Bit D7 of Write 4 should be the D7 bit of the calibration correction value you are loading 1xxxxxx1 81 D7 should be bit D6 of the calibration value 6 Oxxxxxxt 01 D7 should be bit D5 of the calibration value 8 x00 81_ DZ should be bit D3 of the c
26. f scale reading 0000 or FFFF counts set the Pot to FF and take another reading One of these two readings will not be railed off scale Increment or decrement the Pot load value until the data read from the A D reads 0001 For the most accurate results continue decrementing or incrementing the Pot until the reading first becomes 0000 Store the value from the digital calibration potentiometer into a spot in the EEPROM for use on the next and subsequent board initializations The correct spot in EEPROM varies with the A D range and single ended differential selection being calibrated We recommend you use the same locations as our provided Calibration program drivers and samples as shown in Table B 1 below Write the value using the procedure outlined in the description of Base 19 in Chapter 5 For example if calibrating the Offset of the 0 10 Volts Single Ended setting of the board we recommend you write the calibration Potentiometer value into the 5 location of the EEPROM 32 Manual LPCI AIO16A 1 2 1 2 1 1 2 2 1 2 3 1 2 4 Gain Adjust Apply a known voltage to the A D Input When adjusting the gain a known voltage very near the maximum input of the A D converter will result in a good reading across the entire range Alternately calibrating the A D to a voltage near the actual application voltage you ll be expecting in your system results in perfect readings in your specific system In the vast majority of case
27. figuration details Digital UO This board contains an 8255 like Programmable Peripheral Interface PPI There are 2 ports A and B available for Digital I O Both the low byte port A and high byte port B can be individually software configured as inputs or outputs In output mode each port supports readback of the last written values Each DIO line is capable of sourcing 24mA or sinking 24mA By default the DIO lines are pulled up with a 10KO resistor to 5V Counter Timer The highly versatile 8254 contains three counter timers Counter Timer 0 is available for general purpose use Counter Timer 1 amp 2 are dedicated for use in timing A D starts The output of Counter Timer 2 is available on the P2 connector Counter Timer Oe clock and output signals are brought out to the connector Both signals are buffered and capable of sourcing 24mA or sinking 24mA Counter Timer 0 s clock is pulled up with a 10KQ resistor to 5V Counter Timer 0 s clock input is software selectable between an internal 10MHz clock and the external Counter Timer 0 clock on the P2 connector The maximum allowed frequency for the clock is 10MHz 8 Manual LPCI AIO16A Model Options e FIFOx x FIFO sample capacity o 2K 4K 16K 32K 1K is standard size e S0x Special number designator application specific contact factory o Examples configuration jumpers factory set high gain version etc Included with your board The following items are included wi
28. ground pin on P2 For example to ground Channel 0 connect P2 Pin 1 to P2 Pin 3 To ground a channel in Differential mode connect the channel s pin and the channel 8 s pin together and preferably to ground For example to ground channel 0 in differential mode connect Channel 0 P2 Pin 1 to Channel 8 P2 Pin 2 and preferably to ground P2 Pin 3 as well Acquire the voltage using the A D converter The simplest way is using the Software Mode Software mode is described in Chapter 5 Programming In essence it consists of five steps Set Channel Set Gain Start Conversion Wait for End of Conversion Read Data For calibration purposes the Channel should be whichever channel is grounded The Channel Scan Limits register at Base 2 should contain only that one channel Read the data using the EMPTY bit to indicate when data is available Software gain at Base 4 should be configured for whichever range you ll actually be using or the Gain x1 setting The software gain amplifier is a laser trimmed part and does not need separate calibration per setting For optimum results data should be heavily averaged to eliminate any noise from the computations Adjust the value in the digital calibration potentiometer for the A D until the voltage read by the A D indicates 1 count Many methods of determining values for the digital calibration potentiometer exist One possible method Set the Pot to O and take a reading If the result is of
29. he SC1 and SCO bits in a 16 bit hold register An alternative method of latching counter s which has an additional advantage of operating simultaneously on several counters is by use of a readback command to be discussed later A subsequent read operation on the selected counter returns the held value Latching is the best way to read a counter on the fly without disturbing the counting process You can only rely on directly read counter data if the counting process is suspended while reading by bringing the gate low or by halting the input pulses For each counter you must specify in advance the type of read or write operation that you intend to perform You have a choice of loading reading a the high byte of the count or b the low byte of the count or c the low byte followed by the high byte This last is of the most general use and is selected for each counter by setting the RW1 and RWO bits to ones Of course subsequent read load operations must be performed in pairs in this sequence or the sequencing flip flop in the 8254 chip will get out of step The readback command byte format is REESEN CNT When is 0 latches the counters selected by bits CO C2 STA When is 0 returns the status byte of counters selected by CO C2 Co C1 C2 When high select a particular counter for readback CO selects Counter 0 C1 selects Counter 1 and C2 selects Counter 2 You can perform two types of operations with the readback command When
30. ifferential analog inputs on this board A consecutive set of channels are enabled disabled by software This set of channels is constructed by a start and end channel Sampling begins on the start channel and continues through every successive channel until the end channel is sampled Once the end channel has been sampled the process repeats again from the start channel All channels within the set are jumper configured as either single ended or differential 10 input ranges 6 bipolar and 4 unipolar are selectable by jumpers software Each jumper configuration allows four voltage ranges to be configured by software for each individual channel Table 1 1 The unipolar ranges are 0 1V 0 2V 0 5V and 0 10V The bipolar ranges are 0 5V 1 2V 2 5V 5V and 10V Refer to the option selection map for jumper range settings 6 Manual LPCI AIO16A Table 1 1 Analog Input Range Selection Jumpers SoftwareGain 0 SoftwareGain 1 SoftwareGain 2 SoftwareGain 3 Unipolar 0 10V 0 5V 0 2V 0 1V GNH Bipolar 5V 2 5V 1V 0 5 GNL Bipolar 10V 5V 2V 1V Each channel input has an over voltage protection of 40V to 55V A D Start This board offers three software selectable sources for A D Start Software Start Timer Start and External Start Trigger Software Start generates an A D Start every time the software command is issued Timer Start uses the on board timer to generate an A D Start Frequencies rang
31. ing from 2 33 10 Hz to 500kHz are possible with Timer Start External Start Trigger uses the External Trigger pin on the connector to generate an A D Start Frequencies up to 500kHz are allowed for External Start Trigger A D Start is also software configured as rising or falling edge An A D Start can be one of two software selectable types for this board Single Channel or Scan A D Starts that are Single Channel sample one channel within the enabled set per A D Start This allows for total control over the time skew between channels Scan on the other hand will sample all the channels within the enabled set per A D Start Channels are sampled at 500kHz to minimize the time skew between channels Oversample To minimize noise the board implements a technique called Oversampling Oversampling is a technique which continuously samples a channel multiple times at 500kHz Quickly taking several samples from the same channel allows the signal to be averaged Averaging a signal can greatly reduce the noise injected by both the signal and the board system The oversample range is from 0 to 255 software selectable and applies to every channel within the enabled set A channel is always sampled once plus the number of oversamples that was configured Therefore an oversample of 0 will sample a channel once initial sample plus 0 oversamples oversample of 1 will sample a channel twice initial sample plus 1 oversample up to an oversample of 255
32. ions apply for use in describing operation of the 8254 Clock A positive pulse into the counter s clock input Trigger A rising edge input to the counter s gate input Counter Loading Programming of a binary count into the counter Mode 0 Pulse on Terminal Count After the counter is loaded the output is set low and will remain low until the counter decrements to zero The output then goes high and remains high until a new count is loaded into the counter A trigger enables the counter to start decrementing Mode 1 Retriggerable One Shot The output goes low on the clock pulse following a trigger to begin the one shot pulse and goes high when the counter reaches zero Additional triggers result in reloading the count and starting the cycle over If a trigger occurs before the counter decrements to zero a new count is loaded Thus this forms a re triggerable one shot In mode 1 a low output pulse is provided with a period equal to the counter count down time Mode 2 Rate Generator This mode provides a divide by N capability where N is the count loaded into the counter When triggered the counter output goes low for one clock period after N counts reloads the initial count and the cycle starts over This mode is periodic the same sequence is repeated indefinitely until the gate input is brought low Mode 3 Square Wave Generator This mode operates periodically like mode 2 The output is high for half of the count and low for the other
33. l I O Bit 7 pulled up Digital I O Bit 0 pulled up Digital I O Bit 10 pulled up Output from 8254 Counter Timer 2 output Output from 8254 Counter Timer 0 output 8254 Counter Timer 0 Clock input pulled up External Analog to Digital Conversion Start Trigger input pulled up software selectable rising falling edge Digital Ground Digital Ground Analog Ground anne anne 10 Single ended or 2 differential inverting input nalog Ground nanne anne 4 Singled ended or 4 differential non inverting input Ground nanne nanne 5 Singled ended or 5 differential non inverting input nalog Ground annel 0 Singled ended or hannel 0 differential non inverting input C C A C C Analog C C A C C Analog Ground Analog Ground Digital to Analog Output Channel 0 Analog Ground for DAC 0 Table 5 1 Connector Pin Assignments 2 N Manual LPCI AIO16A Chapter 6 Specifications Analog Inputs ADC Type Sampling rate Resolution Number of channels Bipolar ranges Unipolar ranges Board Calibration System Calibration Input impedance A D Start Sources A D Start Types Channel Oversampling Overvoltage protection Crosstalk Analog Outputs Channels Resolution Voltage Ranges Conversion Frequency Simultaneous Update Digital UO Type Lines Input voltage Output voltage Output current Counter Timer Type Available Counters Input Frequency Counter
34. meter for the A D until the voltage read by the A D matches the input voltage 1 2 4 Store the value from the digital calibration potentiometer into a spot in the EEPROM for use on the next and subsequent board initializations E T On Step 2 Write the Calibration Constants into the Calibration Potentiometers For details on step 2 please refer to the section Step 2 near the end of this appendix Note 1 Zero calibration is performed to a value of 1 count instead of O to avoid railing the inputs a condition where you calibrate the board off the end of a range due to the inability of the device to report voltages above the maximum or below the minimum Note 2 The correct spot in EEPROM varies with the A D range and single ended differential selection being calibrated We recommend you use the same locations as our provided Calibration program drivers and samples as shown in Table B 1 below Note 3 The known voltage to use varies with the jumper selected A D input range For best results apply a voltage within 5 of the full scale voltage for your selected range 31 Manual LPCI AIO16A Step By Step Calibrating the A D Step 1 Determine the Calibration Constants for the A D 1 1 1 1 1 Offset Adjust Apply Ground to the A D input For best results all channels should be grounded Any single channel would also work To ground a single channel in single ended mode connect its input pin on connector P2 to a
35. n IRQ can also be generated after the end of a conversion EOC or after the end of a scan EOS These IRQs help in taking A D data off the board quickly The selection of the IRQ to be used is made automatically by the BIOS when the card is installed and detected Analog Outputs DAC There are two analog outputs on this board Each analog output is adjusted by output calibration circuitry including a digital potentiometer The DACs have two output ranges of 0 5V or 0 10V These are individually chosen through jumper selections on the board Refer to the option selection map for the jumper selections Please note that the DACs are labeled DAC A and DAC B on the PC board but typically referred to as DAC 0 and DAC 1 in the manual These terms are interchangeable as DAC 0 is the same as DAC A DAC 1 the same as DAC B The digital calibration potentiometers are serial devices with data being entered bit by bit Although the details of writing bit by bit are described in Appendix B it is expected that data will be loaded using a software subroutine Make sure that the correct calibration constants are loaded into the digital potentiometers before using the analog outputs Refer to Appendix B for calibrating the DACs Lastly the DACs have a mode of operation called simultaneous update that will update both DACs simultaneously after DAC1 has been written to Otherwise each DAC will update upon being written to Refer to Chapter 5 Programming for con
36. nce connected the DVM should read 9 499 Volts but may not be exactly correct Remember if you re using a different known output value you should see a number near it not near 9 499 Adjust the value in the digital calibration potentiometer for the DAC you re calibrating until the reading on the DVM shows your known output value You adjust this potentiometer s value using the process described in Base 19 in Chapter 5 Probably the best way to quickly find the correct value is to initialize the potentiometer with half its maximum value use 80hex then increment or decrement the value until the DVM reads accurately Once you ve determined the value that correctly adjusts the DAC output to match the known output voltage store it in the EEPROM for later use Doing so allows you to re write the value into the calibration potentiometer on the next board initialization without resorting to storing the values in a reference database or calibration configuration files on a hard disk or floppies etc The location into which you store the value varies based on the DAC number you re calibrating and the range you have selected on the board via jumpers Consult Table B 1 for a list of the locations the provided Calibration software samples and drivers use Repeat these steps for the other DAC When you ve finished these steps the DACs are calibrated The next time the board is reset only Step 2 needs to be performed In brief this involv
37. on Selection The Setup Program from the Software Master CD may be referred to for assistance in selecting the appropriate options for your application Software can determine the jumper selections by reading the status register at Base Address 12 Chapter 4 The standard card has a Counter Timer two 12 bit Analog Outputs 16 lines of Digital I O and a 16 channel 16 bit 500Khz A D Converter with 1K Sample FIFO Jumpers are available on the board to configure the following DAC output voltage ranges A D input mode single ended or differential input range and unipolar bipolar BIPOLAR NV N Wi UNIPOLAR Figure 3 1 Option Selection Map 11 Manual LPCI AIO16A Chapter 4 Programming A D Order of Operations This is a guide of steps to take before beginning an A D conversion Behavior may become unpredictable if these steps are not followed Configure the channel gains Base Address 2 5 Configure the start and end channel Base Address 6 Configure the number of oversamples per channel Base Address 7 4 Configure Counter Timer 1 amp 2 if using Timer Start or External Start Trigger Base Address 8 B If using External Start Trigger connect the trigger source to the appropriate I O connector pin 5 Configure the A D Start Source as Software Start Timer Start or External Start Trigger Configure A D Start as rising or falling edge Configure A D Start as Single Channel or Scan Base Address 11
38. r reset Typically each time your program executes you ll write these values even if the program was run before 28 Manual LPCI AIO16A Many devices using digital potentiometers require the software to load the calibration coefficients from a file on disk matching the file to the board based on a manually entered serial number or some similarly complex method This board instead contains EEPROM to store the calibration constants This makes it very simple the board remembers its own constants there s no need for a file on disk or serial number lookup databases etc The details are different between A D and DAC calibration and are discussed separately below Breakdown Calibrating the DACs DAC calibration is very simple and provides a clear introduction to several of the concepts used in calibrating the A D The process is designed to evaluate the differences between what you ve asked the DAC to output and what it really produces This difference is the amount the board is out of calibration By adjusting digital potentiometers in the DAC circuit you reduce this calibration error by successive approximation until it reaches zero When it is zero and the board is calibrated you store the amount of adjustment for later use First lets expand Step 1 mentioned above into its component sub steps for the DAC Step 1 Determine the Calibration Constants for the DAC 1 1 Output a value corresponding to a known voltage on a DAC 1 2 Me
39. ration steps for the DAC This breakdown is an engineering summary providing enough detail that someone very familiar with the board could proceed Then an in depth step by step walkthrough is provided Following this is a breakdown of the steps for the ADC Finally an in depth step by step walkthrough is provided for the ADC Steps are numbered consistently between the overview breakdown and step by step sections of this section so you can easily flip between them to build an understanding of the process Overview Calibrating without using the provided calibration program This overview applies to both the DAC calibration and ADC calibration Two parts exist to the calibration process and understanding these two parts is key to the entire procedure Step 1 Determine the calibration constants Step 2 Write the calibration constants into the calibration potentiometers Step 1 only needs to be performed if the board s data begins to appear out of calibration A good rule of thumb is to determine new calibration constants every six to twelve months of regular use If your environment undergoes frequent environmental changes more frequent calibration may be indicated When the board ships from the factory it already has a valid set of calibration constants preloaded into the EEPROM for your immediate use Step 2 writing the calibration constants into the digital calibration potentiometers must occur each time the board is powered up o
40. s either calibration method will result in correct data Continuing our example from above when calibrating the 0 10V range a voltage near 10 Volts is recommended we ll use 9 95 Volts as our Known Voltage Using a calibrated voltage source apply your known voltage to the inputs of at least one A D channel The other channels should not have signals connected or should be grounded To connect a known voltage to channel 0 connect the voltage to P2 Pin 1 and use P2 Pin 3 as the reference ground Acquire the voltage using the A D converter See step 1 1 2 Adjust the value in the digital calibration potentiometer for the A D until the voltage read by the A D matches the input voltage Many methods of determining values for the digital calibration potentiometer exist One possible method Set the Pot to O and take a reading If the result is off scale reading 0000 or FFFF counts set the Pot to FF and take another reading One of these two readings will not be railed off scale Increment or decrement the Pot load value until the data read from the A D reads the Known Voltage To convert from counts to voltage use the following equation Volts Span Counts MaxCounts Offset MaxCounts on a 16 bit A D is 65536 and Span and Offset vary with the selected range In any unipolar range Offset is zero and the Span is equal to the maximum voltage In any bipolar range the Span is equal to the maximum input voltage minus the minimum input voltage
41. s be written to bit 7 when configuring Below are the Port direction bits modeSetFlag gt 0 configuration not enabled 1 configuration enabled portADir gt 0 Port A is output 1 Port A is input default portBDir gt 0 Port B is output 1 Port B is input default Base Address 18 read write EEPROM access Base Address 18 read Base Address 18 write SCH The EEPROM is intended to hold calibration data for the A D Gain and Offset correction and the Gain Correction data for both DACs Calibration is only needed for GNL GNH and BIP UNI jumper selected ranges so a total of 4 A D Input calibration data pairs are used Consult the provided calibration program or sample code for information on the locations in the EEPROM used to store the calibration data Although the EEPROM is intended to contain calibration data it is unlikely your program will need to keep calibration data for the ranges you are not going to use In this case you can use those locations in the EEPROM for your own purposes 17 Manual LPCI AIO16A Writing to the EEPROM In order to write to the EEPROM an enable code and start bit must be transmitted then the write opcode 2 bits 01 followed by the address location of the data to be loaded into the EEPROM 6 bits MSB first followed by the data 16bits MSB first Then the transmission is ended with 00 Therefore to write a value of aa55 to location 5 you wo
42. size Clock Clock Period Clock Pulse Width High Clock Pulse Width Low Input Output Voltage Current General Power Required Operating Temperature Storage Temperature Humidity Size Bus Type UO Connector Cable Accessory Successive approximation 16A version 500k samples sec maximum aggregate 16E version 250k samples sec maximum aggregate 16 bit 16 single ended or 8 differential jumper selectable 0 5V 1 t2V 2 5V 5V and 10V jumper software selectable 0 1V 0 2V 0 5V 0 10V jumper software selectable Programmable Digital Potentiometers to calibrate for gain offset error Program provided to calibrate entire system 1MQ Software Start Timer Start and External Start Trigger rising or falling edge software selectable Single Channel or Scan software selectable 0 255 consecutive samples channel software selectable 40 to 55V 60dB 400kHz 2 12 bit 0 5V 0 10V jumper selectable 100k conversions sec Yes 8255 Port A and Port B only 16 programmable as inputs or outputs in groups of 8 pulled up Logic low OV min to 0 8V max Logic high 2V min to 5V max Logic low OV min to 0 55V max Logic high 2V min to 5V max Logic low 24mA max sink Logic high 24mA max source 82C54 programmable interval counter Counter 0 10MHz max 16 bit Internal 10MHz or Externally supplied software selectable pulled up 100ns min 30ns min 40ns min Same as Digi
43. ss 7 write A D Oversample Configuration overSamp7 overSamp0 gt Channel Oversample 0 255 Writing to this address will set the number of oversamples to take per channel Base Address 8 B Counter Timer Configuration Counter Timer 0 is fully programmable for general use Counter Timer 1 amp 2 are concatenated together output of Counter Timer 1 is routed to the clock input of Counter Timer 2 The concatenated Counter Timer 1 amp 2 are used for A D Start both Timer Start and External Start Trigger The output of Counter Timer 2 is the source for the aforementioned A D Starts The output of Counter Timer 2 is available on Pin 43 of connector P2 For detailed information on programming the 8254 Counter Timer device please refer to Appendix A Base Address C D write DAC 0 Output Data Base Address C e o6 das oa o3 da2 dt dei Base Address D x E a e tad a da11 da0 gt DAC 0 data Writing a 12 bit value to this address will output the corresponding voltage on DAC 0 refer the Option Selection map for output voltage range If the DAC simultaneous bit Base Address 10 bit 1 is set then DAC 0 s output will update after writing to DAC 1 14 Manual LPCI AIO16A Base Address EE write DAC 1 Output Data Base Address E da7 da6 da5 da4 Da3 da2 dei dao Base Address F Cx x x x an dato das da11 da0 gt DAC 1 data Writing a 12 bit value to this address will outp
44. tal I O 5VDC 100mA typical 12VDC 50mA typical 0 to 70 C 50 to 120 C 5 to 90 RH non condensing Conforms to MD2 Low Profile PCI Specification 6 1 L x 2 1 H Universal PCI compatible with PCI X bus 50 Pin Type II SCSI female with jack screws Three foot shielded round wire cable with molded backshells 23 Manual LPCI AIO16A Appendix A 82054 Counter Timer Operation The board contains one type 8254 programmable counter timer The 8254 consists of three 16 bit presettable down counters Each counter can be programmed to any count between 2 and 65 535 in binary format depending on the mode chosen The programmed value is a divisor and the output frequency equals the input frequency divided by the programmed value In this manual these three counter timers are designated Counter Timer 0 Counter Timer 1 and Counter Timer 2 Counter Timer 0 is for general use Counter Timer 1 s output in the clock input to Counter Timer 2 The output of Counter Timer 2 is used for A D Start or for general use timer not needed for A D Start Refer to the block diagram for more information Operational Modes The 8254 modes of operation are described in the following paragraphs to familiarize you with the versatility and power of this device For those interested in more detailed information a full description of the 8254 programmable interval timer can be found in the Intel or equivalent manufacturers data sheets The following convent
45. th your shipment Please take time now to ensure that no items are damaged or missing LPCI Analog and Digital I O card with high profile mounting bracket installed Low profile mounting bracket Software Master CD PDF user manual installed with product package Printed I O Quick Start Guide Pons 9 Manual LPCI AIO16A Chapter 2 Installation Configure Card Options via Jumper Selection Before installing the card into your computer carefully read Chapter 3 Option Selection of this manual then configure the card according to your requirements Our Windows based setup program can be used in conjunction with Chapter 3 to assist in configuring jumpers on the card as well as provide additional descriptions for usage of the various card options The software provided with this card is contained on CD and must be installed onto your hard disk prior to use CD Software Installation DOS WIN3 x 1 Place the CD into your CD ROM drive 2 Change the active drive to the CD ROM drive 3 Run the install program install exe 4 Follow the prompts to install the software for the card WIN95 98 NT 2000 XP 1 Place the CD into your CD ROM drive 2 The install program should automatically run If the install program does not run automatically click START RUN and type JLN STAL click OK or press ENTER 3 Follow the prompts to install the software for the card LINUX UNIX and Other OS s 1 Place the CD into your CD ROM drive 2 Follow th
46. the digital pots 2 1 Determine the location in the EEPROM for the calibration constants The register at Base 12 Chapter 5 indicates the currently jumper selected range for both the A D and the DAC Read this register Software should not assume the user has left the range setting where it was 2 2 Read the correction constants from the EEPROM Correlate the jumper settings as read with the Table B 1 and read the EEPROM entries for the A D Offset A D Gain and the DAC 0 and DAC 1 corrections Base 18 in Chapter 5 describes the process of reading from the EEPROM 2 3 Write each calibration constant to the correct Digital Calibration Potentiometer Refer to Chapter 5 Base 19 for more information on writing to the Digital Potentiometers EEPROM Location Calibration Value Stored Unused Unused Offset B 10V Differential Offset B 10V Single ended Offset B 0 10V Differential Offset B 0 10V Single ended Offset B 5V Differential Offset B 5V Single ended Unused Unused Scale M 10V Differential Scale M 10V Single ended Scale M 0 10V Differential Scale M 0 10V Single ended Scale M 5V Differential Scale M 5V Single ended 10 DAC 0 0 10V Range 11 DAC 0 0 5V Range 12 DAC 1 0 10V Range 13 DAC 1 0 5V Range 14 63 unused Table B 1 Factory EEPROM Calibration Locations TM olowo S N om on A oo
47. uld perform the following 27 writes Write Value Description O oS Oxxxxxx1 01 MSB of address Bit 7 should be 1 or 0 based on the D5 bit of address to be written Always set DO to 1 10 1Xxxxxx1 81 LSB of address Bit 7 should be 1 or 0 based on the DO bit of address to be written Always set DO to 1 11 1Xxxxxx1 81 MSB of data Bit 7 should be 1 or 0 based on the D15 bit of address to be written Always set DO to 1 2 13 14 15 16 7 E 19 20 21 2 23 24 25 26 1Xxxxxx1 81 LSB of data Bit 7 should be 1 or 0 based on the DO bit of data written Always set DO to 1 0xxxxxx0 00 End Always write 00 as the 27 byte For ease of reference the bits which can change are typeset in bold There must be at least a 4us delay between each of the 27 write operations to the EEPROM After the last write operation which ends communication with the EEPROM it will be unavailable for 20mS Do not access the EEPROM during this period Please note it is not possible to write to the EEPROM until an EEPROM WRITE ENABLE EWREN sequence has been written to Base A The EWREN sequence consists of the following bytes in order 81 01 01 81 81 01 01 01 01 00 Once the EWREN sequence has been written it is possible to write to the EEPROM as desired If you wish to subsequently disable writes to the EEPROM a disable sequence of bytes may be written to Base A as follows 81 01 01 01 01 01 01 01 01 00
48. um you avoid calibrating off the end of the range Alternately choose the voltage most likely to be output by your application in your own use For example if you re going to be using primarily voltages near 6 2 Volts you may want to calibrate it at that voltage Just substitute whatever voltage you choose in the math that follows Output this value to the DAC under calibration For example if your DAC is jumpered for the 0 10 Volt output range a value of 9 5 Volts 95 of 10 Volts would be a good choice Convert this voltage to a 12 bit digital count value Counts Volts MaxVolts MaxCounts so Counts 9 5 10 2412 1 0 95 4095 3890 25 Only a 12 bit integer numbers can be written to the DAC so we ll use 3890 as our count value This equates to F32 hex which wel write to the DAC under calibration Its important that you are precise when calibrating so don t forget about that 0 25 count we threw away If we run the equation backwards to determine what voltage F32 counts equates to we don t get 9 5 volts Let s run the math Volts Counts MaxCounts MaxVolts so Volts F32 FFF 10 0 9499 10 9 499 Volts Not quite 9 5 volts Measure the output value of the DAC with a DVM Now that we know precisely what output voltage to expect connect a DVM to the DAC output pin on P1 pin 25 or pin 26 for DAC 0 or DAC 1 respectively Use Pin 24 for ground The DVM should be set for DC voltage measurement O
49. ut the corresponding voltage on DAC 1 refer the Option Selection map for output voltage range Base Address 10 write DAC Configuration simultaneous gt 0 DACs update when written 1 DACs update upon write to DAC 1 Writing a 1 to Bit 0 will set the DAC simultaneous bit This causes both DACs to be updated on a write to DAC 1 Base Address 11 write A D Start amp Counter Timer 0 Clock Configuration startEdge startType startSource1 startSource0 Writing to this address will configure the A D Start Source A D Start Type A D Start as rising or falling edge and Counter Timer 0 s clock source Below are the different configuration bit patterns A D Start Source e Software gt startSource0 0 startSource1 0 e Timer gt startSourceO 1 startSource1 0 e External gt startSourceO 0 startSource1 1 A D Start Type e Single Channel gt startType 0 e Scan gt startType 1 A D Start Edge e Rising gt startEdge 0 e Falling gt startEdge 1 Counter Timer0 Clock e Internal 1OMHz gt clkSrc 0 e External Pin gt clkSrc 1 15 Manual LPCI AIO16A Base Address 12 read A D DAC FIFO Status Flags ffoFul half single ended Reading from this address will show the status of the following flags bipolar gt 0 jumpers set to unipolar 1 jumpers set to bipolar single ended gt 0 jumpers
50. which will sample a channel 256 times initial sample plus 255 oversamples Each channel s oversamples are taken before sampling begins on the next consecutive channel within the enabled set Calibration All Analog to Digital Converters ADCs suffer from offset and gain errors To account for this the board implements calibration hardware to adjust for the offset gain errors This is particularly helpful as aging occurs and or operating temperature changes The gain and offset are individually adjusted by means of digital potentiometers Constants are loaded into the potentiometers which are used to make these adjustments If constants are not loaded the potentiometers will be set to the center of their ranges by default Therefore for maximum accuracy appropriate constants should be loaded each time the board is powered Refer to Chapter 5 Programming and Appendix A for information on how to determine and load appropriate constants 7 Manual LPCI AIO16A A D FIFO The A D FIFO buffers the data out of the ADC This allows conversions to happen without constant CPU intervention Furthermore the FIFO s half full and full flags are readable by software They can also be used to generate interrupts If the FIFO becomes full A D conversions are paused and resume when at least one A D sample is read out of the FIFO Interrupt Request IRQ This board can be software enabled to generate an IRQ when the A D FIFO becomes half full or full A
51. yte into a counter control register The control byte specifies the counter to be programmed the counter mode the type of read write operation and the modulus The control byte format is as follows SCO0 SC1 These bits select the counter that the control byte is destined for Program Counter 0 Program Counter 1 Program Counter 2 Read Write Cmd See section on READING AND LOADING THE COUNTERS RWO RW1 These bits select the read write mode of the selected counter Counter Read Write Function Counter Latch Command i Read Write LS Byte 1 0 Read Write MS Byte 1 1 Read Write LS Byte then MS Byte MOo Me2 These bits set the operational mode of the selected counter 25 Manual LPCI AIO16A BCD Set the selected counter to count in binary BCD 0 or BCD BCD 1 Reading and Loading the Counters If you attempt to read the counters on the fly when there is a high input frequency you will most likely get erroneous data This is partly caused by carries rippling through the counter during the read operation Also the low and high bytes are read sequentially rather than simultaneously and thus it is possible that carries will be propagated from the low to the high byte during the read cycle To circumvent these problems you can perform a counter latch operation in advance of the read cycle To do this load the RW1 and RW2 bits with zeroes This instantly latches the count of the selected counter selected via t
Download Pdf Manuals
Related Search
Related Contents
Black & Decker Edger LST220 User's Manual STREET by 50 Auriculares internos con cable CMB DOM 7710CB AD75C20SNJ2 AJ65BT-D75P2-S3-MR-J2[ ]A Samsung GE107W Manuel de l'utilisateur OrigenAE C10 HSM Classic 90.2 Government Procurement Portal System User Guide Copyright © All rights reserved.
Failed to retrieve file