AD2000 User's Manual - RTD

Transcription

AD2000User'sManualffiRealTimeDevices,Inc." AccessingtheAnalog World',"ISO9001 and AS9100 Certified

An?nooUser'sManualL .l-Lt-t\t\,\,ffiREALTIMEDEVICES,INC.Drive820 ennsylvaniaPhone: (814')234-8087FAX:(814)234-5218

PublishedbyRealTime Devices,Inc.820 N. University Dr.P.O.Box 906StateCollege,PA 16804Copyright @ 1990by Real Time Devices,Inc.All rights reservedPrintedin U.S.A.Rev.B 9241

TABLE OF CONTENTSPageINTRODUCTIONHow to Use This Manual.When You Need Help.i-2.i-2CHAPTER I - QUrCK START-GETTTNG YOUR AD2000 RUNNTNG.1-lWhat ComesWith Your AD2000.1-lThe Hardware.'.l-1FunctionsYou CanSet.1-2Setting the Base I/O Address14.InstallingttreAD2000in YourComputer. 16TheSoftware.16D e m oD i s k1{.BackingUp YourDisk.l:7InitializingYour AD2000.1-8Selectingan Analog Input Channe1.1-9Settingthe Input Gain.1-10Takingan A/D Reading.CHAPTER 2 - FUNCTIONAL try.AID HAPTER 3 JUMPER SETTINGSS1- AnalogInputSignalTypeDIP Switch.HeaderConnector.P2- BaseVO AddressIntervalTimer (PIT) VO HeaderConnector.P3 * Programmable.3-2.3-2.3-2P4,P5,andP7 - IntemrptHeaderConnectors.P4- EXTINTandPPIINTRAIntemrpts.P5 - PIT Output Interrupts.(EOC) Interrupt.P7 - A/D End-of-Convert(EOC)MonitorHeaderConnectorP6- End-of-ConvertVoltageRangeHeaderConnector.P9 AID Converter.34.3-5.3-5.3-5.36.36

PageCHAPTER 4 - PROGRAMMING YOUR AD2OOOSelectingan Analog Input Channe1.Settingthe Input Gain.Takingan A/D Reading.PeripheralInterface.Programmingthe lelntemrptsIlardware(EOC)Signa1.A/D End-of-ConvertPPIIntemrpsPITIntemrpsCHAPTER 5 - CALIBRATION PROCEDURESRequiredEquipment,.A/D .GainCircuiry CalibrationAD2000 SpecificationsAPPENDIX A APPENDIX B - Connector Pin Assignments.APPENDIX C - ComponentData Sheets.APPENDIX D - Configuring the AD2000 for SIGNAL*MATHAPPENDIX E - Configuring the AD2000 for ATLANTIS.A P P E N D I XF - W a r r a n t y . . . . . . . . . . .5-1.5-2.5-2.5-3.A-l.81.C-1.D-l.E-l.F-l

LTSTOF 5343-73-83-94-r5-1PageTypical LaboratorySetup.AD2000 Board Layout.BaseI/O AddresHeaderConnectff,I2AID ConversionWordFormat.AD2000FunctionalBlock DiagramEOC Timing Diagram.AD2000 Board Layout.D I P S w i t c h5 1 . . . . . . . . . . . . . .PIT VO HeaderConnectorPTEOCMonior HeaderConnectorP6.AID itionFormat.AD2000 Board -5. . . . 3-5.3-6.36.3-6.4-2.5-1

iv

LIST OF ionsAD2000VO Map.Bit WeightsA/D ConverterA/D ConverterReadingsfor GainCalibrarion.Page1-3. 1-5.5-3. 5-3

INTRODUCTION

This manualshowsyou how to operateandprovidestechnicaldatafor RealTime Devices'AD2000 rentialor single-endedacquisitionboard.The AD2000features12-bithigh-speedoperatein Minterfaceallowsversatileconversion.Thisi-l PCforadatacollection.setupusinglaboraorya sIrTUf nECompEtibleS l g n a lc o n d l t l o n l n gD s c g u i s l t l o nd, o t a r e d u c t l o n ,grdphlcs,onalgsls,conlrol, data storsgeRUTOHRTIONL R BOERTORTFig. i-1 - Typical LaboratorySetupThe AD2000 featuresa high-resolution(12-bit) analog-to-digitaland converter,digital VO, and timer/countersthatprovide flexibility for many applications.Its six-layer construction,including sep:uatepower and ground planes,It plugsdirectly into anyunusedexpansionslot (shortor stics.size)in the computer.All externalI/O connections,includingPC bus-sourcedpower,areaccessibleat therearpanelofthe computerwhen the boardis installed.Severalof ttreAD2000's functionscanbe readily adaptedfor your specificrequirements.Throughprogrammingand/or jumper or switch settingsmadeon the board,you can:. Selectthe baseVO address,. Choose8 differential or 16 single-endedanaloginput channels,. Selectthe activechannel,. Selectthe channelgain,. Selectthe analoginput voltagerangeandpolarity,. Conrol 16TTL/CMOS-compatibledigital VO lines,. Control three l6-bit, 8 MHz timer/countercircuits (theprogrammableinterval timer),. Monitor theA/D conversionusingtheend-of-convert(EOC)signal,. Generateintemrptsignals.Many of these functions are set up at the factory, basedon typical data collection requirementsand customerspecificationswhenordering.Therefore,you cansuccessfullyinstall andrun theAD2000 with minimal understandingaboutchangingandcontrolling them.On the otherhand,you may want to understandeverythingahut your boad sothat you caneffectively useeachfeature.With this in mind, this manualprovidesbasicinformationto get theboardupof eachfunction.andrunning,aswell asdetailedinformationfor a full understandingi-1

How to UseThis ManualThismanualis designedto helpyouinstallandgetyourAD2000runningquickly,while n. Begin by readingChapterI in ordero useyour boardasquickly aspossible.This chapteryouto erreadthrough5 he chaptersand appendixesin this manualaredescribedin denil below.Chapter1, "Quick Start--Geuing Your AD2000 Running," providesthe instructionsnecessarytoinsall theboardanduseits basicfunctions.Theinformationcontainedin this chapterdoesnot coverhow !o changethe boardseurp,exceptfor thebaseICI address.Chapter2, "Functional Description,"providesa block diagnm and a functional discussionof theboard.Chapter3, 'Tumper Settings,"describeseachheaderor jumper circuit on the board and how it iscontrolled.Chapter4, "ProgrammingYour AD2000,' describeshow the board canbe programmedusing thedemonstrationsoftware.Chapter5, "Calibration Procedures,"providesinstructionsfor boardcalibration.Appendix A, "AD2000 Specifications,"containsa completelisting of boardspecifications.Appendix B, "ConnectorPin Assignments,"conlainsthe pinous of the externalVO connecorsandthe matingconnectors'part numbers.Appendix C, 'Component Data She ts,"contains manufac[rers' data sheetsfor major boardcomponents.Appendix D, "Configuring the AD2000 for SIGNAL*MATH," containsinformation aboutseuingboardjumpers and and initializing the board to run the SIGNAL*MATH acquisitionand analysisprogram.Appendix E, "Configuring the AD2000 for ATLANTIS," coniainsinformationaboutsettingboardjumpersto run the ATLANTIS dix F, "Warranty," containsboardwarrantyinformation.When You NeedHelpWhenyou areworking with the AD2000 interfaceboard,this manualandthe demosoftwareincludedin your packagewill providesufficientinformationto properlyconnol all of theboard'sfunctions.If, reunabletoobtainproperresponses1fusyou. For assistance,call (814) 234-8087during regularbusinesshours,easternstandardtime or easterndaytght time,to (814) 234-5218.Be sure!o includeyour company'sname,your name,youror senda FAX requestingassistancenumber,descriptionof the problem.anda brieftelephonei-2

CHAPTER 1RUNNINGQUICK START GETTING YOUR AD2OOO

To get startedusingyour AD2000 interfaceboard,you must:- Selectby jumpera baseI/O addresswhich doesnot contendwith any ottrerperipheraldevice.- Installtheboardino yourPC.- Connecta signalto oneofthe analoginputchannels.- Run the AD2000 software.Unlessyou haveotherrequirements,thesestepsareall that are necessaryto useyour AD2000 board.This chapterexplainshow to insrallyoru AD2000anduseits basicfunctions.You will learnhow to:. Changethe baseVO addresssetring,. Install the boardin your PC,. Initialize the board,. Selectthe analoginput channeland gain,. Take an A/D reading.This chapterallows you to immediately start using the basic functions of your AD2000 board for daa collectionapplications.This chapterdoesnot explainhow !o rammablenordoesitexplainhowto ibedin Chapters2 through4.I/Ofunctionsnotcoveredseuingsexceptfor the base address.What ComesWith Your AD2000The standardAD2000 boardpackageincludes:1IIAD20005.5-inch (1a0mm)interfaceboard(fits short slot)AD200Odemodiskuser'smanualAdditional items, suchas the AD2000 2-cableset (order numberXK40-l), extenderboardsor SIGNAL*MATH orATLANTIS applicationsoftware,areavailablefor this boardandare includedon an as-orderedbasis.All signalson your board are madeeasily accessiblewith Real Time Devices' XB40 VO extenderboard and XC40expansioncable.The extenderboardhastwo 20-pinterminalstripsanda prototypeareato supportany specialcircuitryyou mayrequireto conditionthesignals.For example,if you areprototypingsolid-staterelaysor optoisolalors,this caneasily be done with an XM0. The expansioncable terminatesin a 40-pin wire-wrap headerconnectorsuitableforinstallationin standard0.1 inch spacingperf-boardmaterialavailablefrom mostelectronicdisributors.The HardwareThe AD2000 interfaceboard is shownin Figure l-1. A completelisting of the board specificationsis containedinAppendix A. The AD2000 hasseveralfeatureswhich are user-controlledthroughhardwareor software.Most of ed;theremainingare switch nyslot(shortor full-size) in an IBM PC/XT/AT or compatiblecomputer.Two 4Gpin connectorson the board, P8 and Pl5,accommodateall of theboard'sextemalI/O. In operation,theseconnectorsarecabledsothat all S0linesareaccessibleat the rearpanelof ttrecomputer(seethe boardinstallationinstructionslater in this chapter).FunctionsYou Can SetTo allow the AD2000 interfaceboardto be adaptedto your needs,severalfunctionscanbe setup to perform specifictasksby changingthe hardwareconfigurationor throughsoftware.Table l-1 lists eachfunction you can control, thefacory (or default) settingif applicable,and wherein this manualyou can find informationaboutits settings.l-l

U L*-Sy-1lU;tH.t5 lHl-.2-r**;--7 ,.-ll I-tui srA-F-"EIJ Ff,--dru-rE?tP2:nlilc-12-BitA/D BoardFig. 1-1 - AD2000 Board LayoutThe functionswhich you can control throughhardwareare:- BaseI/O address,- Analog input channeltype,- Analog input channelvoltagerangeandpolarity,- End-of-convert.monitor,- PIT timerrcounters(hardwareand software),- Intemrpts.The functionswhich you cancontrol throughsoftwareare:- Analog input channelselection,- Analog input gain selection,- Digital VO,- PIT timer/counters(softwareand hardware),- Boardinitialization.Settingthe BaseVO Address(BA), theAD2000boarduses12addresslocationsin yourcomputer'sI/O space.TableStartingwith thebasel/Oaddress1-2 lists the VO map for the AD2000. It is importantto recognizethat someof your computer'sVO addresslocationswill alreadybe occupiedby internalI/O andotherperipherals.If your AD2000boardtries to useI/O addresslocationsalreadyin useby anotherdevicein your syst m,addresscontentionwill result.Hence,theboardwill not operate,or atbestwill operateerratically.VO addresscontentionis one of the most commonproblemsencounteredwhen adding an interfacedevice to yourBy ddrcssjumpercircuitisprovidedontheAD2000board.the position of thejumper on the headerconnectorlabeledP2 Qocatedjust to the left of center,nearthe botom of theboard),thebaseI/O addresssettingcanbe changedto any oneofeight locations.L-2

Table 1-1-AD2000 Board Functions and SettlngsFUNCTIONFACTORY SETTINGUSER INFORMATIONBasel/OAddress300hex(768decimal)To changethis setting,see"Settingthe Basel/OAddress,"Chapter1AnalogInputChannelType8 differentialchannelsTo select16 single-endedchannels,seeS1 eSoftware-controlSee "Selectingan tGainSelectionlableSoftware-controlSee"Settingthe InputGain,"Chapter1, anddemodiskAnaloglnputVoltageRangeand Polaritywhenordering To changethesesettings,User-specifiedsee51 and P9 discussions,Chapter3.-Convert(EOC)Monitor Connectedto PA7End-ofSee P6 discussion,Chapter3.Digitall/O16 gthe PPl,Chapter4 ngthe PlT,"Chapter4 anddemodiskl/O ConligurationClocklnput:5MHzGateInput: 5 VClockOutput:To PBSee P3 discussion,Chapter3DisabledSee P4,P5,and P7discussions,Chapter3, Programmable(PlT)CircuitryInterruptsl-3

headerconnector,P2,with thejumperinstalledat thefactory-setlocationof 300FigureI -2 showsthebaseI/O neof llypins,pairfromisfollows:left to right, asofsettingconespondingto each2002402802C03003403803C0listedin Table1-2,BA equals280.is changedto 280hex,thenfor the 12operationsFor example,if thebaseI/O addressThus,to sendthechannelselectionandgaindatato port B of thePPI,its addressof BA 1 becomes281 hex.If thefactorysettingof 300hexwill causecontentionin essmakea noteof its valueon thetableinsidethebackcoverof thismanual.setting.OnceyouhavesetthebaseI/O address,You will needto know this settingfor usein your programs.g)NooooP2Fig. 1-2 -Base l/O AddressConnector,P2Installingthe AD2000in Your ComputerBeforeinstalling the AD2000 in your computer,makesurethat thebaseI/O addresshasbeenproperly selectedandallhow to gshavebeenconfiguredo aresettingsattheasaddress.,VOyou changethem.The intemrptsgeneratedby your AD2000aredisabled(not connected)whenyou receiveyour board.If you intendto herfunctionsnot coveredin this chapteris providedin Chapters2 through4. Usethesechaptersasnecessaryto configureyour boardbeforeinstallation.To install your AD2000, follow thesestep-by-stepprocedures:1.TURN OFFTIIE POWERTO YOURCOMPUTERFIRST.Referto theowner'smanualfor yourcomputer,andremovethe top cover.2. Selectan unusedexpansionslot (shortor full-size)in which to installyourboardandremoveitscorrespondingblank bracketfrom therearpanelof the computerby removingtte screwat thetop of the bracket.mustbe inslalledon3. Beforeplacingthe boardinto the computer,two sPSpair cableon analogVO connectorP8.Theninstallthestandardcableon Pl5. Eachcableis a4Oline externalVO cablewhich extendsthroughthe connectorslot in the rearpanelof thecomputer.Both cablesrun througha singleslot wheretheyprovide80lines of externalI/O toyourI/O dtheboard.Thisconfigurationcomputer.AppendixB lists the signalcarriedon eachpin of theseconneclors.To install thecables:a. Removethestrainrelief clampattachedto theAD2000bracketlocatedon theright sideofthe board.b. Connectthe socketconnectorto boardconnectorfor andpressfirmly to makesurethatthesocketconnectoris fully seatedon the board.Each cableprovidedis labeledwith the connector'sP numberfor easyidentification.The cableshavestrainreliefson one connectorandnot on the other.Theconnectorwithout the sFainrelief is to be installedon the board.After both cablesareinstalledon theboard,positionthemsothattheypassovertheflangein theboard'sbracket.t-4

Table 1-2-AD2000 l/O MapFUNCTIONA4A3A2A1AOR/WBA HEXPortAPortB R/WWR/W0123000000001111xxxx0101wwRR4or65 PI101wl/D ounter0Counter1Counter2ControlWordNOTE:x don'tcaresettingl-5

c. Re-at6chtheclampto thebracketusingthehardwaresuppliedwith your AD2000,securingthe ribbon cablesin place.4. l.J:tercheckingthat the cablesare correctly installedon the board,orient the board inside thecomputerso that thecablesextendthroughtherearpanelopeningandthe cardedgeconnectorlines up with the expansionslot connector.Then,pressdown on the metalbrackettab and thetop of the boarduntil the boardis firmly seatedin the expansionslot connector.5. Securethe bracketbackin placewith the screwandput the coverback on your computer.Now your boardis readyto beconnectedvia theexternalconnectorsat therearof thecomputer.After theseconnectionshavebeenmade,the boardis readyfor operation.The SoftwareThe AD2000 operatesunder softwarecontrol. Programmingincludesthe analoginput channelselectionand gain,control of the the A/D conversion,the programmableperipheralinterface,and the programmableinterval timer. Theanaloginput channelandgain selectionsandtakingan A7Dreadingarecoveredin this chapter.Digital I/O control andcontrol of the programmableinterval timer are more complex,and are de.scribedin Chapter4, "ProgrammingYourAD2000."Regardlessof what programminglang"age you use, you can write programstlat conEol the AD2000 board. Thedemonstrationdisk which accompaniesyour AD2000 containsexamplesin Turbo C, Turbo Pascal,and BASIC.Nearly all modernMS-DOS-basedPC languageshaveI/O referenceinstructions.Theseare the insructions to controlthedataransfers to andfrom theI/O ports.Consultyour programminglanguagereferenceto find theseinstnrctionsforyour favorite language.Listed below are the VO referenceinstructionsusedby somecommonlanguages.BASICinput:output:INPOUTTURBO PASCALPortPortTURBOCinportbouQortbDemoDiskIncluded with your AD2000 is a demo disk which providesprogramminginstructionsand exampleprogramsforcontrolling the functionsof your interfaceboard.This demodisk is divided ino directories,eachof which is namedaccordingto the languageusedto write 0re programsit contains.The files within eachdirectory coniain exampleprogramsanda documentationfile witi generalinformation.In addition,your demodisk contain

AD2000 User's Manual ffi RealTimeDevices, Inc." A