Home

User`s Manual V1 - Chase Scientific Company

image

Contents

1. AD160 User Manual 60 MSPS PC 104 ANALOG INPUT MODULE Return Value None Example ad160 Digitize 0 Immediately starts digitizing 4 3 2 7 ad160 DIG DONEY Description Returns a 1 value if digitizing 1s complete otherwise a 0 Used as a polling device instead of interrupt for delaying until digitizing is complete before transferring data to system memory Declaration BYTE ad160 DIG DONE void Parameters None Return Value BrdNum lt CardNum lt 4 0 Digitizing NOT DONE yet 1 Digitizing complete Example i 0 while ad160 DIG DONE icc A415 if i gt 1000000 break Delay until digitizing is done t 4 3 2 8 ad160_Transfer_Data Description Called after ad160_DIG_DONE has come back true to transfer data from card to system memory The user can call any number of samples up to that previously set by ad160 Set Memory Size This function called be called any number of times as long as the total number does not exceed that set by adl160 Set Memory Size Declaration BYTE ad160 Transfer Data PVOID UserArray DWORD NumSamples Parameters UserArray Pointer to one dimensional array defined by user NumSamples Any number of samples up to Memory Size previously set Return Value 0 Everything is ok 1 Digitizing did not complete Example ad160 Transfer Data UserArray 1024 Moves 1024 samples to UserArray O Chase Scientific Company 360 221 84
2. 3 2 Acquiring Analog Input Data Before capturing data the user must first setup the correct digitizing rate determine if they re going to use external or internal trigger mode and trigger polarity After proper setup is performed you re ready to digitize When the digitize function is called the A D converter is then activated after the first trigger event and the digitized analog signal is stored into buffer RAM Data is then transferred to system RAM using another function call IMPORTANT The RAM on the AD160 is designed so that every time a sample is read out an on board address counter is automatically incremented What this means is that if the user is limited in how much data they can read out at a given time due to 16 bit DOS for example then the user can read the samples out in 16K bursts and then store the data in another location such as a solid state disk drive or specially configured memory 4 SOFTWARE DRIVERS 4 1 Introduction The primary objective in designing software drivers is to get the user up and running as quickly as possible The details on installing software drivers are listed in 4 2 xx While the listing of function calls and their parameter definitions are listed in section 4 3 xx the programming examples in section 4 4 x will show you how to include them into your programs The driver source codes are designed to work under all versions of 16 bit DOS and Linux with Kernel Code versions 2 2 x through 2
3. S tBasePortAddt 2 otn id em A AS 4 3 2 2 ad160 Reset essere 4 3 2 3 ad160_SetClockRate 4 3 2 4 ad160 Set Memory Size 4 32 5 SetTrigPol eno egeret 4 3 2 6 ad160 Digitize 4 3 2 7 ad160 DIG DONE 4 3 2 8 ad 160 Transfer Dita etin getto tee e D cea RS REEL uae DE eR Nee a agak Ka ec den 4 3 2 9 ad 160 PowerDown eei epa RO ee pee emicat ide dice egi RUE RR OO OE 4 4 PROGRAMMING EXAMPLES lt i tete c bet p e e iod e ee ede ede e HEU E e CR IEEE DENS ALIADOS ToSBIT G Example A NG a aan aa GHI Redi ere ER us JT 2EINUX C CT E Example s ate ea endete hoe s P U P pyoe Y 21 ERIS VETE an a naa a en goa Ga AG Ka Bana a a ag a a PG a a aa AN a AL NK NG a GK E EM IM 21 SD MAINTENANCE 552 Kaga ag na a a Ran a a ASN inea ree KE Aa a EN GA a EE GU E A ag a Ng a aa err a b 21 O Chase Scientific Company 360 221 8455 2 AD160 User Manual 60 MSPS PC 104 ANALOG INPUT MODULE ILLUSTRATIONS TABLES FIGURE 1 BLOCK DIAGRA Moeoconnconconnonnocnnonnnonnonnnonnonnnonncnnnonccnnnoncconncnonnncnnconnonnconnoonconnonn con roca sens een non coanonooss 8 FIGURE 2 BOARD LAY OUT eeeeeeeeeeee tenentes tentes ttn sto seen sense tasse tastes senses senses senses senses sens eene ion 9 FIGURE 3 4 PIN DIGITAL I O CONNECTOR eerte enses enses tensis 00000000 anan 0e0 nen ea sense nenen en nen seu 10 O Chase Scien
4. free DataArray fclose foutl return 0 4 4 2 LINUX C C Example 6 10 2006 Debug on Fedora 5 Linux Version 2 6 15 Downloaded 3 20 06 Web site http www chase2000 com Email support chase2000 com c Chase Scientific 2006 include lt stdio h gt include lt stdlib h gt include lt alloc h gt include lt string h gt include lt math h gt include lt asm io h gt lt sys io h gt Supersedes asm io h include adl60drv_o H Actual driver routines for AD160 bbb b KK KKK KK k kk k k k k k kk k k k kk k k k k k kk k k k kk k k k kk kk k AKA KAKA KAKAK KAKAK EI int main int argc char argv typedef WORD Array One Dimensional Array 16 bit unsigned Array DataArray O Chase Scientific Company 360 221 8455 19 AD160 User Manual 60 MSPS PC 104 ANALOG INPUT MODULE unsigned long MemorySize int i FILE foutl foutl fopen datal txt w ad160 SetBasePortAddr 0x240 printf Set BasePortAddr Mn printf CTRL PORT read x n n inb 0x240 ad160 Reset Resets Key Control Bits printf Reset Wn printf CTRL PORT read x n n inb 0x240 ad160_PowerDown 1 Power Down Card Test activate PWRDWN printf Activate PWR DWN high An EE printf CTRL PORT read x n n inb 0x240 return 0 and return ad160_PowerDown 0 Power Up Card deactivate PWRDWN printf De Activate PWR_DWN
5. Call Chase Scientific for the latest information on drivers for other operating system platforms or check the web site for the latest updates Software drivers are provided as source code in DOS 16 bit Borland C 5 2 code and Linux GNU GCC Version 4 1 0 Actual Listing of files on Diskette CD for Windows DIRECTORIES FILES AD160 Drivers BASE DIR readme txt This file AD160 12 8M 104 manual pdf Manual DOS 6p22 Directory for 16 Bit Borland C Drivers AD160drv c AD160 Driver Source AD160DRV H AD160 Driver Header AD160 EX C AD160 Example Source calls driver AD160 EXE AD160 Compiled Example uses Free Borland Turbo C 2 02 LINUX FC 5 2 6 15 Directory for GNU GCC Version 4 1 0 adi60drv o cpp AD160 Driver Source O Chase Scientific Company 360 221 8455 4 AD160 User Manual adl60drv o H JA ad160 test cpp ad160 test makefile ad160 test 1 3 2 Hardware The AD160 hardware consists of a single PC 104 compliant module The module is shipped with a manual with 60 MSPS PC 104 ANALOG INPUT MODULE AD160 Driver Header AD160 Example Source calls driver Example of Executable Compiled on Fedora Core 5 Type makefile to Compile Example code into Executable complete hardware and software descriptions The ISA bus connector PC 104 only portion is the only connector on the card There is no active or passive pass thro
6. repairs It is void if the serial number is altered defaced or removed Chase Scientific shall not be liable for any consequential damages including without limitation damages resulting from loss of use Some states do not allow limitation or incidental or consequential damages so the above limitation or exclusion may not apply to you This warranty gives you specific rights You may also have other rights that vary from state to state Chase Scientific warrants products sold only in the USA and Canada In countries other than the USA each distributor warrants the Chase Scientific products that it sells NOTICE Chase Scientific reserves the right to make changes and or improvements in the product s described in this manual at any time without notice O Chase Scientific Company 360 221 8455 6 AD160 User Manual 60 MSPS PC 104 ANALOG INPUT MODULE 2 HARDWARE DESCRIPTION 2 1 Introduction The AD160 hardware consists of the following major functions e 1 12 bit 60 MSPS synchronous single ended bipolar A D Inputs DC coupled 1 TTL Trigger Input 2 2 Block Diagram Singe Ended 12 BIT 60MHZ 50 ohm Load A D CONVERTERS SMA Connectors 60 MHZ CRYSTAL CLK CONTROLLER 1 MEG MEMORY CLOCK TRIG DETECT 8M optional clk divider E TTL INPUT TRIG LOCAL BUS MEMORY CON Trig In SMA Connectors CONTROLLER TROLLER SE GLUE LOGIC QUENCER PC 104 BUS Figure 1 Block Diagram O Chase Scientific Company 36
7. 0 221 8455 7 AD160 User Manual 60 MSPS PC 104 ANALOG INPUT MODULE 2 3 Board Drawing u11 UEZ ug 81 u10 TTL ZW mni mmni 51 t h 31 mC MIL munggu S IA R3 E M EA ls U3 JP1 Inpu tut MILII ua fs EE IPS R25 m R23 Analog Input atl MO aja mRi7 i R12 niunt dy kt rr A ra EN B ana d a A CHASE SCIENTIFIC 8D150 12 8M 104 REV B 03 05 2006 Figure 2 Board Layout O Chase Scientific Company 360 221 8455 8 AD160 User Manual 60 MSPS PC 104 ANALOG INPUT MODULE 2 4 Board I O 2 4 1 Header Pinouts and Pin Descriptions N A 2 5 Hardware Register Definitions Due to hardware protocol complexity the details on how to use these ports are beyond the scope of this manual The software drivers should provide an effortless integration path for the user However if the need arises that is beyond what the software drivers can provide please call the factory for technical support 2 6 Analog Input Ranges and Resolution Analog input range is by default 0 528V Consult factory for user gain setting options The resolution is 12 bits O Chase Scientific Company 360 221 8455 9 AD160 User Manual 60 MSPS PC 104 ANALOG INPUT MODULE 3 THEORY OF OPERATION 3 1 Introduction Because the PC 104 bus is significantly slower than the digitizing rate of the AD160 the data must first be digitized and stored on the AD160 and then transferred to system memory at the slower bus speed
8. 55 16 AD160 User Manual 60 MSPS PC 104 ANALOG INPUT MODULE 4 3 2 9 ad160 PowerDown Description Places AD160 in the lowest possible power state AD160 must be powered up for TBD microseconds before digitizing Declaration void ad160 PowerDown BYTE PwrDwn Parameters PwrDwn 0 Board is Powered ON and ready for digitizing 1 Forces board into a Powered OFF state Cannot digitize in this state Return Value None Example ad160 PowerDown 1 Puts AD160 card into a low power state 4 4 Programming Examples 4 4 1 DOS 16 BIT C Example Kf AD160 Sample File Calls adl60drv c Ey x 16 Bit DOS Application tested on MSDOS 6 22 Ji Filename ad160 example c S x z ay Web site http www chase2000 com Email support chase2000 com xy c Chase Scientific 2006 Z Bi include lt dos h gt include lt stdio h gt include lt stdlib h gt include lt string h gt include lt conio h gt include lt alloc h gt include lt math h gt include adl60drv c Actual driver routines for AD160 typedef WORD Array One Dimensional Array 16 bit unsigned Array DataArray NA main O Chase Scientific Company 360 221 8455 17 AD160 User Manual 60 MSPS PC 104 ANALOG INPUT MODULE 1 INITIALIZE VARIABLES ALLOCATE MEMORY unsigned long i FILE foutl Alloca
9. 6 2 HARDWARE DESCRIPTION bicccccssssssssccsesensessecscessesesssnccnsssecsessevsdsesssesusvesesscccesssecossscuesdevsscsevescenccneseeseaseuees 7 21 INTRODUCTIONS iin n re trn re reae eet Lea aks sete or pe ERAS 7 2 2 Brock DIAGRAMA a a erede e ee ee iced S Ee RD S OP eee Ese EE 7 2 3 BOARD LYRA WING Hei oiii secet es tees a ice eheu 8 24 BOARD MO e boots Aet Leod e A cfe eos an cc eio iets A cades rd 9 2 4 1 Header Pinouts and Pin Descriptions essent nennen enne 9 2 9 HARDWARE REGISTER DEEINITIONS A ER REN OE e ete PER REEL ba 9 2 6 ANALOG INPUT RANGES AND RESOLUTION cs cccccessssscececcesssscecccesssssccecessesaceesecesssaeeecceeseaeesecesseaeescesessnaeeeceessss 9 3 THEORY OF OPERA TION P E X 10 Bol INTRODUCTION rre ede t dert o ret a e eL av ve tea e tos o Feb ahead n o v EE gd ta teen Vadose ves 10 3 2 ACQUIRING ANALOG INPUT DATA otto ERUPTIONE eee 10 ASOETWARE DRIVERS ATT 10 A T INTRODUCTION it peter reor ee rm d n ere c n e eee 10 4 2 DRIVER INSTALLATION oi A a Re Wa MNEs OR GHAIT EE 10 ADAC Bits DOS e ete ede dae 10 4 2 2 Linux Installation Kernels 2 2x 2 4x 2 6x sssssssssssseeseeeeeeeeeee eene eene 10 4 2 3Windows 9S ME 2000 XP eese ede La a ana nee teuer a de eo eee eemper n 11 4 3 FUNCION CAELS aii EI Re UGG Ur HIR E HOHER HINWEG 11 4 31 Function Declarati ns AC aa ana d a Kg E ex ecd A Soe das e hee Ee e 11 4 3 2 Function Call Descriptions Usage 4 3 2 1 ad 160
10. 6 x 4 2 Driver Installation 4 2 1 16 Bit DOS DOS drivers are much simpler to use than Windows drivers especially if they are not RAM resident types like they are in this case Just include i e include ad160drv c in your program and you re done See sample code ad160_example cpp for more information 4 2 2 Linux Installation Kernels 2 2x 2 4x 2 6x O Chase Scientific Company 360 221 8455 10 AD160 User Manual 60 MSPS PC 104 ANALOG INPUT MODULE The Linux source driver code is almost as easy to use as the DOS driver code We have provided a make file and example user code for your convenience so that you have a place to start Please study the example file ad160_test cpp thoroughly 4 2 3 Windows 98 ME 2000 XP Not applicable at this time 4 3 Function Calls 4 3 1 DOS HEADER FILE Function Declarations in C fe AD160 Header File for 16 Bit Borland Turbo C 2 02 JE el x Filename adi60drv h LS Web site http www chase2000 com Email support chase2000 com fe El c Chase Scientific 2006 AE el ifndef adl160drvH define ad160drvH typedef unsigned char BYTE typedef unsigned short WORD typedef unsigned long DWORD typedef void PVOID DWORD Memory Size WORD BasePortAddr voi kkk USER ROUTINES d ad160 SetBasePortAddr WORD 0x240 DEFAULT BASE PORT ADDRESS Change as needed CKCKCKCkC
11. An printf CTRL PORT read x n n inb 0x240 ad160_SetClockRate 1 f Set Clock to 7 5 MHz 1860 2930 3 15 497 5 printf SetClockRate to 7 5MHz An printf CTRL PORT read x n n inb 0x240 ad160_Set Memory Size 17 Set Memory Size to 128K MemorySize 131072 ad160_ Set Memory Size 23 Set Memory Size to 128K MemorySize 8388608 ad160_ Set Memory Size 10 Set Memory Size to 128K MemorySize 1024 printf Set Memory Size to 8M Samples Mn printf SEG PORT read x n n inb 0x241 ES RS Ni akak LEE ALLOCATE MEMORY FOR DataArray LADRAR RAS ARA AA NASA AR if DataArray Array calloc MemorySize sizeof WORD NULL printf Not Enough Memory n exit 1 printf Set Trigger Polarity An SetTrigPol 0 printf CTRL PORT read x n n inb 0x240 printf Start Digitize An ad160 Digitize 0 printf CTRL PORT read x n n inb 0x240 printf Waiting for PostTriggering to Complete An i 0 while ad160 DIG DONE i itl if i gt 1000000 break printf DIG DONE 1 ay oe printf Polling Iterations d n n i Chase Scientific Company 360 221 8455 20 AD160 User Manual 60 MSPS PC 104 ANALOG INPUT MODULE ad160_ Transfer Data DataArray MemorySize printf Transfer Data from Board to System Memory An printf CTRL PORT read x n n inb 0x240 ad160 Reset Resets Key Cont
12. User Manual for AD160 12 8M 104 Single Channel 60 MSPS 12 bit PC 104 Analog Input Module CHASE SCIENTIFIC COMPANY P O Box 1487 Langley WA 98260 Tel 360 221 8455 Fax 360 221 8457 Email techsupport chase2000 com Web http www chase2000 com Original Document AD160 12 8M 104 manual odt created 10 23 2006 updated 4 5 2007 O Copyright 2006 by Chase Scientific Company This manual the AD160 module and the software drivers outlined in this document are copyrighted with all rights reserved Under the copyright laws the above mentioned may not be copied in whole or in part without the express written consent of Chase Scientific Company AD160 User Manual 60 MSPS PC 104 ANALOG INPUT MODULE TABLE OF CONTENTS 1 GENERAL INFORMATION ien eae ein noe rao naue eno aereo eua siena ioa eei goa oa Gera aaa en ge euge Cae n ina aao ke epa aa aeo ee guae 4 TL INTRODUCTION inni eter AED E YR E GI ER ET GM ORE EUER ERE Ee vs 4 1 2 REFERENCES aa AS a a Na aT OE GTDC T o eue E NE Ve REC EE aks 4 TB DIELIVERABLES sciet ete e i etes eee ag e cada 4 LLOSA de ooo a a A oo ser AL bak Saito ci Mute tA Do ree ld art 4 JA AAA WE a a a O oc ad Sak 5 1 323 Checklist iea E It ida 5 1 4 PRODUCT SPECIFICATION Std C o e e e e pr pe t dite 5 1 5 TECHNICAL SUPPORT SOFTWARE UPDATES eese enne eene een en nennen ense nene nere nere eene nean een nee 6 1 6 WARRANTY ta ere i ede eode ee EP Ec eg oe Cet M e ON E S V ITE de eS
13. eclaration void ad160 Reset void O Chase Scientific Company 360 221 8455 13 AD160 User Manual 60 MSPS PC 104 ANALOG INPUT MODULE Parameters None Return Value None Example ad160 Reset Resets card before ad160 Digitize is called 4 3 2 3 ad160 SetClockRate Description Closes AD160 drivers Should be called after finishing using the driver However if no other software uses the windrv xxx usual situation then there is no need to close it until user is ready to completely exit from using their main software program Declaration void ad160 SetClockRate BYTE CLK SEL 0 3 gt 60 30 15 7 5 MHz Parameters CLK SEL 0 lt CLK SEL lt 3 where 0 1 2 3 gt 60 30 15 7 5 MHz Return Value None Example ad160 SetClockRate 1 Set clock rate to 60 Mhz 4 3 2 4 ad160 Set Memory Size Description Sets the exact size of memory that the card will use while digitizing Declaration void ad160 Set Memory Size BYTE MemSize Parameters MemsSize 4 lt MemSize lt 23 if MemSize 4 Memory Size 16 if MemSize 5 Memory Size 32 if MemSize 6 Memory Size 64 if MemSize 7 Memory Size 128 if MemSize 8 Memory Size 256 if MemSize 9 Memory Size SLZ if MemSize 10 Memory Size 1024 if MemSize 11 Memory Size 2048 if MemSize 12 Memory Size 4096 if MemSize 13 Memory Size 8192 if MemSize 14 Me
14. igger Slope Positive Negative Coupling GENERAL Power Supply Vcc DC 5V 410mA Ave Running 5V 130mA PWR DWN Operating Temperature 40 to 85 degrees C standard Operating Humidity 5 to 95 non condensing Size PC 104 3 55 x 3 775 Data Bus O Chase Scientific Company 16 bits PC 104 i e ISA 360 221 8455 AD160 User Manual 60 MSPS PC 104 ANALOG INPUT MODULE 1 5 Technical Support Software Updates For technical support Phone 360 221 8455 Fax 360 221 8457 Email techsupport chase2000 com Mail Chase Scientific Company P O Box 1487 Langley WA 98260 For software updates Email techsupport chase2000 com Web http www chase2000 com 1 6 Warranty Chase Scientific Company hereafter called Chase Scientific warrants to the original purchaser that its AD160 12 1M 104P and the component parts thereof will be free from defects in workmanship and materials for a period of ONE YEAR from the data of purchase Chase Scientific will without charge repair or replace at its option defective or component parts upon delivery to Chase Scientific s service department within the warranty period accompanied by proof of purchase date in the form of a sales receipt EXCLUSIONS This warranty does not apply in the event of misuse or abuse of the product or as a result of unauthorized alterations or
15. kCkCkCkCk KAKAK KAKA ck k ck k ck k ck k ck k ck k ck k ck ck ck ck ckck KAKAK AKK PortAddr AD160 default 0x240 void ad160 Reset void void ad160 SetClockRate BYTE CLK SEL 1 4 gt 60 30 15 7 5 MHz void ad160 Set Memory Size BYTE MemSize SEE BELOW FOR SIZES el void SetTrigPol BYTE TrigPol voi d ad160 Digitize BYTE UseExtTrig BYTE ad160 DIG DONE void BYTE m void ad160 PowerDown BYTE PwrDwn if MemSize 4 Memory Size if MemSize 5 Memory Size if MemSize 6 Memory Size if MemSize 7 Memory Size Chase Scientific Company E ad160 Transfer Data PVOID UserArray DWORD NumSamples 16 32 64 128 360 221 8455 11 AD160 User Manual H H H H H H H H H H H H H H H H ky fendi c void void void void void void BYTE BYTE Email mSize mSize Memory Size mSize 1 mory Size mSize 1 Memory Size mSize 1 mory Size mSize 1 mory Size mSize 1 mory Size mSize 1 mSize 1 Memory Size mSize 1 mory Size mory Size mSize 1 mory Size mSize 2 mory Size 5 6 7 mSize 18 9 0 1 mSize 2 mory Size mSize mory Size mSize mory Size HEADER FILE mo
16. mory Size 1024 T mSize 11 mory Size 2048 TE mSize 12 mory Size 4096 dE mSize 13 mory Size 8192 if mSize 14 mory Size 16384 dE mSize 15 mory Size 32768 TE mSize 16 mory Size 65536 T mSize 17 mory Size 131072 if mSize 18 mory Size 262144 dE mSize 19 mory Size 524288 if mSize 20 mory Size 1048576 T mSize 21 mory Size 2097152 T mSize 22 mory Size 4194304 if mSize 23 mory Size 8388608 fendif 4 3 2 Function Call Descriptions Usage 4 3 2 1 ad160 SetBasePortAddr Description Sets the base I O port address which the remaining function calls use The AD160 card has a default value of 0x240 as the base address At the time of the this writing the base address can only be programmed at the factory Declaration void ad160 SetBasePortAddr WORD PortAddr AD160 default 0x240 Parameters PortAddr Hex Value 0x240 only Return Value None Example ad160 SetBasePortAddr 0x240 4 3 2 2 ad160 Reset Description Activates a master hardware reset function on the AD160 This primarily returns the card to a ready state by resetting the memory counters and triggering functions re arms This should be called immediately after opening card for the first time and every time before ad160_Digitize is called This function call does not effect Trigger Polarity Memory Size or Clock Rate previously set using other function calls D
17. mory Size 16384 O Chase Scientific Company 360 221 8455 14 AD160 User Manual 60 MSPS PC 104 ANALOG INPUT MODULE if MemSize 15 Memory Size 32768 if MemSize 16 Memory Size 65536 if MemSize 17 Memory Size 131072 if MemSize 18 Memory Size 262144 if MemSize 19 Memory Size 524288 if MemSize 20 Memory Size 1048576 if MemSize 21 Memory Size 2097152 if MemSize 22 Memory Size 4194304 if MemSize 23 Memory Size 8388608 Return Value None Example ad160 Set Memory Size 23 Sets memory size to 8M 4 3 2 5 SetTrigPol Description Sets the edge polarity of the external trigger Declaration void SetTrigPol BYTE TrigPol Parameters TrigPol 0 Positive Edge Triggered 1 Negative Edge Triggered Return Value None Example SetTrigPol 0 Set trigger to Positive 4 3 2 6 ad160 Digitize Description Edge Triggered mode Sets the segment size If NumSegments see ad160 SetNumSegments is set to 1 you can use all segment sizes listed below If using multiple segments more than 1 segment then you can only use SegSize 0 lt SegSize lt 5 Declaration void ad160 Digitize BYTE Parameters UseExtTrig ExtTrig 0 Uses automatic internal trigger mode 1 Waits for external trigger to occur before digitizing O Chase Scientific Company 360 221 8455
18. rol Bits printf Reset Wn pr printf CTRL PORT read x n n inb 0x240 PES AA EE oe TARA PAS TASA AO T TE 6 WRITE CH1 DATA TO FILE Datal txt EAS A E O O pe O RSS printf Writing CH1 Data from Memory to Files Datal txt An for i 0 i lt MemorySize 1 printf Sd n DataArray i amp OxOFFF fprintf foutl d n DataArray i OxOFFF printf Writing Complete n n printf CTRL PORT read xMn inb 0x240 fprintf foutl Sd n inb CTRL PORT 7 FREE DataArray Memory CLOSE FILE foutl Datal txt free DataArray fclose foutl return 0 5 MISCELLANEOUS 5 1 Calibration The ad160 has no user feature to calibrate for input and output gain accuracy or offsets The gains and offsets are calibrated at the factory to be within 3 at 25 C and nominal voltages with inputs terminated by 50 ohms source 5 2 Maintenance No maintenance is required However a yearly calibration is recommended if the user desires to maintain the ad160 modules specified accuracy Call factory for maintenance and or extended warranty information O Chase Scientific Company 360 221 8455 21 AD160 User Manual 60 MSPS PC 104 ANALOG INPUT MODULE Trademarks MS DOS Windows 3 1 Windows 95 Windows NT Windows 2000 and Windows XP are registered trademarks of Microsoft Corporation O Chase Scientific Company 360 221 8455 22
19. ry Size Debug on Fedora 5 Memory Size 60 MSPS PC 104 ANALOG INPUT MODULE 256 5122 1024 2048 4096 8192 16384 32768 65536 131072 262144 524288 1048576 2097152 4194304 8388608 Downloaded 3 20 06 Chase Scientific 2006 typedef unsigned char typedef unsigned short WORD typedef unsigned long DWORD typedef void PVOID ad ad ad ad ad ad ad ad ifndef adl60drv_ O H define _ad160drv_O_ H USER ROUTINES L60 Reset void L60 SetClockRate L60 SetBasePortAddr WOR TrigPol BYTE A AD160 default Web site http www chase2000 com support chase2000 com D PortAddr BYTE C ES 160 Digitize BYTI O Chase Scientific Company 160 DIG DONE void 160 Transfer Data PVOID UserArray DWORD NumSamples 160 PowerDown BYTE PwrDwn K SI l60 Set Memory Size BYTE MemSize SetTrigPol BYTE EL E UseExtTrig Linux Version 2 6 15 0x240 0 3 gt 60 30 15 7 5 MHz SE E BI ELOW FOR SIZI 360 221 8455 ES E 12 AD160 User Manual 60 MSPS PC 104 ANALOG INPUT MODULE if mSize 4 mory Size 16 Ef mSize 5 mory Size 327 TE mSize 6 mory Size 64 TE mSize 7 mory Size 128 if mSize 8 mory Size 256 dE mSize 9 mory Size 5127 if mSize 10
20. stTriggering to Complete An i 0 while ad160 DIG DONE i itl if i gt 10000 break printf DIG DONE 1 An printf Polling Iterations d n n i VAE o A O A O M CELA Mos 4 TRANSFER DATA FROM AD160 SRAM TO DataArray iA A A na aa A A A eect eecee printf Transfer Data from Board to System Memory n ad160 Transfer Data DataArray Memory Size Manually transfers data from CH1 buffer El printf CTRL PORT read x n n inportb CTRL PORT ad160 Reset Resets Key Control Bits printf Reset Wn printf CTRL PORT read x n n inportb CTRL PORT O Chase Scientific Company 360 221 8455 18 AD160 User Manual 60 MSPS PC 104 ANALOG INPUT MODULE trang adang A O A an ba Ting dadi E EET 5 WRITE CH1 DATA TO FILE Datal dat frx printf Writing CH1 Data from Memory to Files Datal dat An for i 0 i lt Memory Size 1 i Memory Size i printf Sd n DataArray i amp OxOFFF fprintf foutl Sd n DataArray i OxOFFF printf Writing Complete n n printf CTRL PORT read x n inportb CTRL PORT fprintf foutl din inportb CTRL PORT O testes etes se a gan a 6 FREE DataArray Memory CLOSE FILE foutl Datal dat ponere E iatis drip adio Ca afi A Ha AAA
21. te memory for dynamic variable DataArray See adi60drv h for declaration of DataArray 357 if DataArray Array calloc 1024 sizeof WORD NULL printf Not Enough Memory n exit 1 foutl fopen datal dat w O A ce tose slenssece 2 SETUP CARD Jk M a a adl160 SetBasePortAddr 0x240 printf Set BasePortAddr An printf CTRL PORT read x n n inportb CTRL PORT ad160_Reset Resets Key Control Bits printf Reset An printf CTRL PORT read x n n inportb CTRL PORT ad160_PowerDown 0 Power Up Card printf De Activate PWR_DWN An printf CTRL PORT read x n n inportb CTRL PORT ad160_SetClockRate 1 Set Clock to 60 MHz printf SetClockRate to 60 MHz An printf CTRL PORT read x n n inportb CTRL PORT ad160_Set Memory Size 10 Set Memory Size to 1024 Samples printf Set Memory Size to 1024 Samples Mn printf SEG PORT read x n n inportb SEG PORT printf Set Trigger Polarity An SetTrigPol 0 printf CTRL PORT read x n n inportb CTRL PORT Ree eee A A Se a ee ee eek 3 DIGITIZE WAIT FOR DONE Jc c AA C bc mi a D A ss co printf Start Digitize n ad160 Digitize 0 printf CTRL PORT read x n n inportb CTRL PORT printf Waiting for Po
22. tific Company 360 221 8455 3 AD160 User Manual 60 MSPS PC 104 ANALOG INPUT MODULE 1 GENERAL INFORMATION 1 1 Introduction The AD160 12 8M 104 is a PC 104 analog I O module which features one 1 12 bit high speed singled ended 50 ohms analog input channel capable of capturing data at up to 60 MSPS with a minimum bandwidth of 20 Mhz 100 Mhz optional The AD160 module also comes standard with power down capability and operates over industrial temperature range standard 40 C to 85 C The analog input and trigger inputs are available on SMA connectors The Analog input has up to 8Meg of software selectable onboard memory The trigger source can be either an external TTL trigger or on board software trigger Timing is controlled by an onboard clock circuit referenced to a 60 MHz crystal oscillator and can be programmed for 60MHz 30MHz 15MHz and 7 5MHz Once A D conversions are completed data can be transferred from the module to main memory via I O port reads using simple function calls 1 2 References P996 Standard for Compact Embedded PC Modules PC 104 Specification Version 2 3 June 1996 by PC 104 Consortium IEEE P996 draft standard 1987 by IEEE Standards Committee This bus standard was the basis for the first PC 104 standard released in 1992 1 3 Deliverables 1 3 4 Software The AD160 comes with source code drivers for 16 bit DOS and 32 bit Linux Software comes on a single 3 5 diskette or Mini CD
23. ugh PC 104 Plus connector 1 33 Checklist Part Number Description AD160 12 8M 104 Single Channel 60 MSPS 12 bit A D PC 104 Module AD160 Drivers 3 5 diskette with 16 Bit DOS source code and 32 Bit Linux source code Includes examples AD160 Manual User manual for AD160 board and software drivers 1 4 Product Specification all specifications are at 25C unless otherwise specified HIGH SPEED ANALOG INPUTS CH1 2 Number of inputs 1 Synchronous Single Ended into 50 ohms A D Resolution 12 bit 1 part in 4096 Input Bandwidth 20 MHz minimum 1V pk to pk Input Range The A D count of 0 equals 0 525V A count of 4095 equals 0 525V order option 3 for user specified FIXED gain Acquisition Time to Full Scale Step 16 ns typical to 0 0196 1 2 LSB Input Coupling 50 ohms load to ground shield Overvoltage Protection 6V Maximum Nonlinearity 2 LSB typical Memory Size 8048576 samples maximum 1048576 standard Segment Sizes Software selectable memory sizes of 128 256 8048576 in multiples of 2 Acquisition Mode Single shot initiated by software external or internal triggering see trigger sources Timebase 60 MHz 30 MHz 15 MHz 7 5 Mhz Software Selectable Trigger Location Fixed trigger position at beginning of each segment Sources external TTL signal internal software tr

Download Pdf Manuals

image

Related Search

Related Contents

  951-130-441 EN  取扱説明書    descarga ficha técnica - Coyote Harley Davidson  Moser Li+Pro  SAS0922 - IBC Water  Data sheet  

Copyright © All rights reserved.
Failed to retrieve file