0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
VCM-DAS-1

VCM-DAS-1

  • 厂商:

    VERSALOGIC

  • 封装:

    -

  • 描述:

    PC/104; 100 KHZ, 16 CHANNEL

  • 数据手册
  • 价格&库存
VCM-DAS-1 数据手册
Reference Manual VCM-DAS-1/2 Analog & Digital Input/Output Module for the PC/104 Bus VCM-DAS-1/2 Analog & Digital Input/Output Module for the PC/104 Bus MVCMDAS1 Model VCM-DAS-1/2 Analog & Digital Input/Output Module for the PC/104 Bus REFERENCE MANUAL Doc. Rev. 4/9/2013 VERSALOGIC CORPORATION WWW .VERSALOGIC.COM 12100 SW Tualatin Road Tualatin, OR 97062-7341 (503) 747-2261 Fax (971) 224-4708 Contents Copyright © 2004-2013 All Rights Reserved Notice: Although every effort has been made to ensure this document is error-free, VersaLogic makes no representations or warranties with respect to this product and specifically disclaims any implied warranties of merchantability or fitness for any particular purpose. VersaLogic reserves the right to revise this product and associated documentation at any time without obligation to notify anyone of such changes. PC/104 and the PC/104-Plus logo are trademarks of the PC/104 Consortium. Table of Contents Other References .............................................................................................................. vii Overview ........................................................................................................................ 1 Using This Manual ............................................................................................................. 1 Introduction......................................................................................................................... 2 Features ............................................................................................................................... 2 General ................................................................................................................... 2 Analog Input .......................................................................................................... 2 Analog Output ....................................................................................................... 2 Digital I/O .............................................................................................................. 2 Technical Specifications ..................................................................................................... 3 Technical Support ............................................................................................................... 4 Repair Service ........................................................................................................ 4 Configuration ................................................................................................................. 5 Hardware Jumper Summary ............................................................................................... 5 Jumper Block Locations ........................................................................................ 6 Module Addressing............................................................................................................. 8 Analog Input Configuration ................................................................................................ 9 Input Range ............................................................................................................ 9 Low Pass Filter ...................................................................................................... 9 Analog Output Configuration ........................................................................................... 10 Output Range ....................................................................................................... 10 Analog Loopback................................................................................................. 11 5B01 Analog Signal Conditioning Rack .......................................................................... 12 Digital Input/Output Configuration .................................................................................. 13 Rack Power Control ............................................................................................. 13 Interrupt Configuration ..................................................................................................... 14 IRQ Selection....................................................................................................... 14 Shared Interrupt Configuration ............................................................................ 14 About Shared Interrupts ....................................................................................... 15 Regular Interrupts ................................................................................................ 15 Shared Interrupts .................................................................................................. 15 DMA Configuration.......................................................................................................... 16 Installation ................................................................................................................... 17 Handling ........................................................................................................................... 17 Arranging the PC/104 Stack ............................................................................................. 17 Signal Levels .................................................................................................................... 17 External Connectors ......................................................................................................... 18 Connector Functions ............................................................................................ 18 Connector Locations ............................................................................................ 18 Mating Connectors and Cable Assemblies .......................................................... 19 J1 – Digital I/O Connector ................................................................................... 20 J2 – Analog I/O Connector .................................................................................. 21 iii Registers ...................................................................................................................... 23 Introduction....................................................................................................................... 23 I/O Port Mapping .............................................................................................................. 23 I/O Port Register Functions ................................................................................. 24 Serial Port Interface (SPI) Register Functions ................................................................. 25 SPI Read Data Register ....................................................................................... 26 SPI Write Data Register....................................................................................... 27 SPI Select Register .............................................................................................. 28 Analog Input Registers ..................................................................................................... 29 ADC Periodic Trigger Rate Register ................................................................... 30 ADC Convert Register ......................................................................................... 31 ADC Select Register ............................................................................................ 32 Control Register ................................................................................................... 34 ADC Status Register ............................................................................................ 36 ADC Data High Register ..................................................................................... 37 ADC Data Low Register ...................................................................................... 38 Analog Input Data Representation....................................................................... 39 ADC Offset Digital Pot Register ......................................................................... 40 ADC Gain Digital Pot Register ........................................................................... 41 Access Example ................................................................................................... 41 Analog Output Registers................................................................................................... 42 Analog Output Gain Digital Pot Registers .......................................................... 43 Access Example ................................................................................................... 43 Analog Output Shift Register .............................................................................. 44 Access Example ................................................................................................... 45 Analog Output Data Representation .................................................................... 45 Digital I/O Registers ......................................................................................................... 46 Port Direction ...................................................................................................... 46 Register Functions ............................................................................................... 46 Digital Output Registers ...................................................................................... 47 Digital Input Registers ......................................................................................... 48 Operation ..................................................................................................................... 49 Analog Input – Polled Mode............................................................................................. 49 Polled Mode Steps ............................................................................................... 49 Channel selection ................................................................................................. 49 Trigger A/D conversion ....................................................................................... 49 Wait until done .................................................................................................... 49 Read data ............................................................................................................. 49 Analog Input – Interrupt Mode ......................................................................................... 50 Interrupt Mode Steps ........................................................................................... 50 Interrupt Service Routine ..................................................................................... 50 Initialize VCM-DAS-1/2 for interrupt mode ....................................................... 50 Initialize VCM-DAS-1/2 for Auto-trigger (if desired) ........................................ 50 Initialize interrupt controller ................................................................................ 50 Initialize CPU to receive interrupts ..................................................................... 51 Channel selection ................................................................................................. 51 Initialize VCM-DAS-1/2 for Auto-increment (if desired) ................................... 51 Trigger A/D conversion ....................................................................................... 51 iv iv Analog Output .................................................................................................................. 52 Route SPI Data to DAC Chip and Clear DACLOAD ......................................... 52 Write DAC Data Frame ....................................................................................... 52 Execute DACLOAD to Update Analog Output .................................................. 52 Digital I/O ......................................................................................................................... 53 Signal Direction ................................................................................................... 53 Signal Polarity ..................................................................................................... 53 Digital Input ......................................................................................................... 53 Digital Output ...................................................................................................... 53 System Reset ..................................................................................................................... 54 Calibration ................................................................................................................... 55 Required equipment .......................................................................................................... 55 Preparation ........................................................................................................................ 55 Isolate Analog Card ............................................................................................. 55 Jumper Configuration .......................................................................................... 55 Calibration Utility Program ................................................................................. 55 Calibrating Analog Input .................................................................................................. 56 Analog Input Offset ............................................................................................. 56 Analog Input Gain ............................................................................................... 56 Calculate .............................................................................................................. 56 Calibrating Analog Output ............................................................................................... 57 Calibrate Analog Output Channel #0 .................................................................. 57 Calibrate Analog Output Channel #1 .................................................................. 57 Save Calibration Values to EEPROM ................................................................. 57 Confirmation Of Calibration ............................................................................................ 57 Reload calibration parameters. ............................................................................ 57 Check Analog Output Channel #0 ....................................................................... 57 Check Analog Output Channel #1 ....................................................................... 57 Check Analog Input ............................................................................................. 58 Finishing Up ..................................................................................................................... 58 Appendix A — Schematics ......................................................................................... 59 v v Other References Burr-Brown Corp., (800) 548-6132, http://www.burr-brown.com/ ADS7805 16-Bit A/D Converter Analog Devices Inc., (800) 262-5643, http://www.analog.com/ AD8522 12-Bit D/A Converter AD976 16-Bit A/D Converter (alternate vendor) Integrated Device Technology Inc., (800) 345-7015, http://www.idt.com 74FCT16652T Parallel Port Interface Chip PC/104 Consortium, (650) 903-8304, http://www.controlled.com/pc104 PC/104 Resource Guide VersaLogic Corporation, (800) 824-3163, http://www.versalogic.com Embedded PCI (PC/104-Plus) Specification. Available on web site. vii Overview 1 This chapter introduces the VCM-DAS-1/2 Analog and Digital I/O Module, lists its features and specifications, and provides a brief overview of the installation and configuration process. Using This Manual Each chapter in this manual corresponds to a step in the installation and operation of the module. Chapter 1 – Overview Lists basic information, specifications, and system requirements. Use this chapter to familiarize yourself with the module and it’s capabilities. Chapter 2 – Configuration Describes how to jumper the module. Chapter 3 – Installation Describes how to install the VCM-DAS-1/2. Also provides information on the external connections. Chapter 4 – Registers Provides programming details and register descriptions. Chapter 5 – Operation Provides details on how to operate the Analog Input, Analog Output, Digital I/O, Digital Pots, and EEPROM circuits. Some software examples are given. Chapter 6 – Calibration and Diagnostics Describes the procedure for calibrating the module and running the included diagnostic software. Appendix A – Schematics Circuit diagrams. VCM-DAS-1/2 Reference Manual Overview – 1 Introduction The VCM-DAS-1/2 module provides 16 single-ended analog input channels, featuring fast 10 µs conversion times and ±5V or ±10V input ranges. Throughput up to 200 kHz may be realized with repeat conversions on one channel; up to 67KHz when scanning from channel to channel. The VCM-DAS-1/2 also includes two 12-bit analog output channels. These channels may be jumpered independently for 0 to 5V or 0 to 10V output at 5 ma each. Digital data is written in a serial fashion to update the analog values. Digital pots are used for calibrating the analog circuits. A 1K EEPROM is included to store the calibration values, and there is plenty of extra space in the EEPROM for general purpose use. The digital pots must be initialized whenever the computer system is reset. In addition to the analog sections, the module also includes 16 digital I/O lines. These digital lines feature TTL type outputs with readback, and are compatible with optically isolated modular I/O racks. Features GENERAL     +5V and ±12V supplies required Uses four electronic digital adjustment pots instead of manual pots Digital Pot settings are stored in an on-board 128 x 16 EEPROM Compatible with the industry standard 5B series of signal conditioners ANALOG INPUT            16 channels 16-bit input resolution Single ended, high impedance inputs Electronic digital calibration Up to 200K samples/second (VCM-DAS-2), up to 100K samples/second (VCM-DAS-1) ±5V and ±10V input ranges On board timer for periodic readings Auto retrigger mode Auto Channel Increment Mode DMA support Compatible with industry standard 5B01 series signal conditioners ANALOG OUTPUT       2 channels 12-bit resolution Electronic digital calibration 0-5V and 0-10V output range 40 µS update time Short circuit proof, 5ma output current DIGITAL I/O      2 – Overview Two 8-bit ports ±24 ma output drive Programmable read-only or read/write Opto 22 compatible EEPROM storage for user data VCM-DAS-1/2 Reference Manual Technical Specifications Specifications are typical at 25°C with 5.0V supply unless otherwise noted. Size: 3.8" x 3.6" (PC/104 standard) 0.6" component height Storage Temperature: –40C to 85C Free Air Operating Temperature: 0°C to +60°C Power Requirements: (all digital outputs low [no external load], both analog outputs sourcing or sinking 5 ma ea.) 5V ±5% @ 510 ma typ. ±12V ±5% @ ±20 ma typ. Analog Input: Channels: Resolution: Accuracy: Input Mode: Range: Conversion Time: Settling Time: Protection: Impedance: Retrigger Timer: Access: 16 16 bits, no missing codes ±0.003% (±3 LSBs) Single ended ±5V or ±10V (jumper selectable, all channels the same) 10 S (VCM-DAS-1), 5 S (VCM-DAS-2) 5 S (applies only when switching channels) ±35V overvoltage protection >1010, 20 pF Programmable 20 S, 50 S, 100 S, 250 S, 500 S, or 1 mS Direct I/O Analog Output: Channels: Range: Resolution: Accuracy: Update Time: Output Drive: Access: 2 0 to 5V or 0 to 10V (jumper selectable, each channel independent) 12 bits ±1.5 LSB 40 S 5 ma, 200 pF (each channel) Bitwise serial Digital I/O: Channels: Input Threshold: Architecture: Output Drive (H): Output Drive (L): Signal Direction: Short Protection: Access: 16 (non-inverting) TTL compatible Totem pole output with readback –24ma @ 2.4V +24ma @ 0.55V Byte programmable as input or output with readback Short circuit to ground, indefinite duration Direct I/O Digital Pots: Organization: Resolution: Access: 4 pots used to calibrate analog section 256 settings Serial EEPROM: Organization: Allocation: Access: Sixty-four 16-bit words Two words used for digital pots, 62 words available for general purpose storage Bitwise serial Bus Interface: I/O Ports: Occupies 16 ports on any 16-bit address boundary Interrupt Channel: IRQ10, IRQ11, or IRQ12 DMA Channel: DMA5, DMA6, or DMA7 External Connectors: Analog In/Out: Opto 22: 26-pin .1" dual-row header 34-pin .1" dual-row header Compatibility: PC/104: Full compliance, 16-bit data bus Specifications are subject to change without notice. VCM-DAS-1/2 Reference Manual 3 Overview –3 Technical Support If you have problems that this manual can’t help you solve, contact VersaLogic for technical support at (800) 824-3163 or (503) 747-2261. You can also reach VersaLogic by e-mail at Support@versalogic.com. REPAIR SERVICE If your product requires service, you must obtain a Returned Material Authorization (RMA) number by calling (800) 824-3163. Our standard turn-around time for repairs is five working days after we receive the product. Please provide the following information:  Your name, the name of your company, and your phone number  The name of a technician or engineer who we can contact if we have questions  Quantity of items being returned  The model and serial number of each item (the serial number is a 5 digit bar code)  A description of the problem  Steps you have taken to resolve or repeat the problem  The return shipping address Warranty Repair All charges are covered, including UPS Ground shipping charges for return back to your facility. Non-warranty Repair All non-warranty repairs are subject to diagnosis and labor charges, parts charges, and return shipping fees. We will need to know what shipping method you prefer for return back to your facility, and we will need to secure a purchase order number for invoicing the repair. Note! 4 – Overview Please mark the RMA number clearly on the outside of the box before returning. VCM-DAS-1/2 Reference Manual Configuration 2 This chapter describes how to configure the on-board options for the VCM-DAS-1/2 module. Configuration involves both hardware (jumper) and software configuration. The jumpers set the base address for the module and configure the analog circuitry for various modes of operation. Software configuration completes the process by initializing the analog calibration pots every time the card is reset. Warning! The VCM-DAS-1/2 module requires +5V, +12V, and –12V for normal operation. These voltages must be supplied through the PC/104 connector. Damage to onboard components will occur if all three voltages are not present at the same time. Hardware Jumper Summary Hardware option configuration is accomplished by installing or removing jumper plugs. In this chapter, the term “in” is used to indicate an installed jumper and “out” is used to indicate a removed jumper. Use the following key to interpret the jumper diagrams used in this manual: Figure 1. Jumpering Key VCM-DAS-1/2 Reference Manual Configuration – 5 JUMPER BLOCK LOCATIONS Jumpers are shown in as-shipped configuration. Note A/D CONVERTER TP1 V1 J2 ANALOG DIGITAL J1 V2 J3 V3 V4 PC/104 V5 V6 VersaLogic Corp. VCM-DAS-1 Rev. 2 Figure 2. Jumper Block Locations 6 6 – Configuration VCM-DAS-1/2 Reference Manual Table 1: Jumper Summary Jumper Block Description As Shipped Page Out 9 V1[1-2] Input Voltage Range In — 5V Input Range Out — 10V Input Range V1[3-4] Input Low Pass Filter In — Enabled Out — Disabled In 9 V2 Opto 22 I/O Rack Power In — I/O rack power provided by analog board Out — I/O rack power provided externally In 13 V3[1-2] Analog Loopback (Channel 0) In — Connects DAC 0 output to ADC 14 input for diagnostic loopback Out — Circuits operate independently In 11 V3[3-4] Analog Output 0 Voltage Range In — 0 to 10V Out — 0 to 5V In 10 V3[5-6] Analog Output 1 Voltage Range In — 0 to 10V Out — 0 to 5V In 10 V3[7-8] Analog Loopback (Channel 1) In — Connects DAC 1 output to ADC 15 input for diagnostic loopback Out — Circuits operate independently In 11 V4 Address Select (A4 – A9) V4[1-2] In – A9 Decoded Low V4[3-4] In – A8 Decoded Low V4[5-6] In – A7 Decoded Low V4[7-8] In – A6 Decoded Low V4[9-10] In – A5 Decoded Low V4[11-12] In – A4 Decoded Low 300h 8 IRQ 12 14 V5[1-2] V5[3-4] V5[5-6] Interrupt Request Select V5[7-8] Shared Interrupt Configuration In — Shared interrupts Out — Normal interrupts V6 DMA Channel Select IRQ 10 DMA 5 VCM-DAS-1/2 Reference Manual IRQ 11 Out Out Out Out Out Out – – – – – – A9 Decoded High A8 Decoded High A7 Decoded High A6 Decoded High A5 Decoded High A4 Decoded High IRQ 12 Out None DMA 6 16 DMA 7 7 Configuration –7 Module Addressing As shipped, the module is configured for a base address of 300h. The card occupies 16 consecutive I/O addresses (0300h to 030Fh). Ten of these addresses are mapped to control, data, and status registers. The remaining six addresses occupy positions in I/O space, but are not assigned to registers. See the Registers description section on page 23 for further register information. The base address can range from 000h to 3F0h on any 10h address boundary. Use the table below to select the jumpering for the appropriate upper and middle hex digits of the three digit base address (i.e., "1" and "4" = 140h). Note The lower digit is always "0". Figure 3. Jumper Block Locations 8 8 – Configuration VCM-DAS-1/2 Reference Manual Analog Input Configuration INPUT RANGE The module may be operated with an input range of ±5 volts or ±10 volts. To achieve the maximum digital resolution and to prevent saturation, the range which most closely matches the input signal should be chosen. All channels operate with the same input range. As shipped, the board is configured for ±5 volt input. Table 2: Input Range Jumper Jumper Block V1[1-2] As Shipped Description Input Voltage Range In — 5V Input Range Out — 10V Input Range Out LOW PASS FILTER A 1 MHz low pass filter between the instrumentation amplifier and the A/D converter can be selected to reject high frequency noise. Table 3: Low Pass Filter Jumper Jumper Block V1[3-4] Description Input Low Pass Filter In — Enabled Out — Disabled VCM-DAS-1/2 Reference Manual As Shipped In 9 Configuration –9 Analog Output Configuration The VCM-DAS-1/2 module features two unipolar analog output channels. Both channels are single-ended and are referenced to analog ground. The digital data format is straight binary. OUTPUT RANGE Each output channel can be configured independently to produce a unipolar output voltage range of 0-5 volts or 0-10 volts as shown below. Table 4: Output Range Jumpers Jumper Block Description As Shipped V3[3-4] Analog Output Voltage Range (Channel 0) In — 0 to 10V Out — 0 to 5V In V3[5-6] Analog Output Voltage Range (Channel 1) In — 0 to 10V Out — 0 to 5V In 10 10 – Configuration VCM-DAS-1/2 Reference Manual ANALOG LOOPBACK The two output channels can be connected (looped back) to two input channels for a direct readback of the voltage, or to provide analog output to a 5B01 signal conditioning rack. Analog loopback is also useful for diagnostic and calibration purposes. Table 5: Analog Loopback Jumpers Jumper Block Description As Shipped V3[1-2] Analog Loopback (Channel 0) In — Connects DAC 0 output to ADC 14 input for diagnostic loopback Out — Circuits operate independently In V3[7-8] Analog Loopback (Channel 1) In — Connects DAC 1 output to ADC 15 input for diagnostic loopback Out — Circuits operate independently In VCM-DAS-1/2 Reference Manual 11 Configuration – 11 5B01 Analog Signal Conditioning Rack When using a 5B01 series analog signal conditioning rack, the input range should be set to ±5V. If output channels are used, the Analog Loopback jumpers must be inserted and the output range configured for ±5V operation. Note: It is important to configure your 5B01 signal conditioning rack so that analog ground on the rack is connected to the eight analog ground signals on the interface connector. Most racks include a jumper or cutable trace for this purpose, which must be installed (shown as "A" below). To prevent ground loops, it is important that analog and digital grounds be connected together at only one point in the system. The VCM-DAS-1/2 brings these grounds together on the module circuitry itself, therefore any external connections between the two ground systems must be avoided. Most racks include a jumper or cutable trace that must be removed (shown as "D" below). Warning! To prevent analog output channel 0 from shorting to ground, it is very important to properly configure your 5B01 signal conditioning rack so that pin 25 is disconnected. Most racks include jumpers or cuttable traces that must be removed to leave pin 25 floating (shown as "B" and "C" below). Figure 4. 5B01 Analog Signal Conditioning Rack 12 12 – Configuration VCM-DAS-1/2 Reference Manual Digital Input/Output Configuration The VCM-DAS-1/2 has 16 digital I/O lines that can be programmed in groups of eight as inputs or outputs with readback. The I/O connector is compatible with 8 and 16 position modular I/O racks. RACK POWER CONTROL The VCM-DAS-1/2 module includes provisions for powering the external I/O rack assembly with +5 volts at 500 ma. When jumper V2 is installed, the I/O rack power line (I/O rack pin 49) is connected directly to +5 volts on the PC/104 Bus. If the I/O rack is powered by a separate external supply, either a jumper from the I/O rack or the V2 jumper must be removed. Warning! The +5 volt power output from the VCM-DAS-1/2 card can be shorted to ground if the connector is not correctly oriented at either end of the interface cable. The use of keys in the connectors, or very clear markings on the connectors, is recommended to prevent backwards connection of the cable. Table 6: Opto 22 Rack Power Jumper Jumper Block V2 Description Opto 22 I/O Rack Power In — I/O rack power provided by analog board Out — I/O rack power provided externally VCM-DAS-1/2 Reference Manual As Shipped In 13 Configuration – 13 Interrupt Configuration IRQ SELECTION Jumper V5 connects the interrupt request signal (analog input conversion complete) to one of three PC/104 Bus interrupt request lines. The choice of which jumper position to choose depends upon the capabilities of the CPU or interrupt controller used in the system. Table 7: Interrupt Request Jumpers Jumper Block V5[1-2] V5[3-4] V5[5-6] As Shipped Description IRQ 12 Interrupt Request Select IRQ 10 IRQ 11 IRQ 12 SHARED INTERRUPT CONFIGURATION Jumper V5[7-8] inserts a 1K pull-down resistor into the IRQ circuit for applications using shared IRQs. V5 Shared IRQ Resistor IRQ 10 Enabled IRQ 11 Disabled IRQ 12 Table 8: Shared Interrupt Jumper Jumper Block V5[7-8] 14 14 – Configuration Description Shared Interrupt Configuration In — Shared interrupts Out — Normal interrupts As Shipped Out VCM-DAS-1/2 Reference Manual ABOUT SHARED INTERRUPTS REGULAR INTERRUPTS  Sources are totem-pole drivers  Interrupt controller is set to edge trigger mode  Interrupts are requested by driving the IRQ line from low-to-high (positive edge triggering)  The CPU has a 4.7K pull-up resistor on each IRQ line to prevent stray interrupts on unused inputs. Unused IRQ lines assume a high state.  Only one interrupt source per IRQ line  The IRQ line can be left in a high or low state when not requesting interrupts. It is common practice, however, to leave the line in the low state.  A new interrupt is requested by lowering the IRQ line and raising it again SHARED INTERRUPTS  Sources are tri-statable, totem-pole drivers with the input tied high  Interrupt controller is set to level trigger mode  The CPU has a 4.7K pull-up resistor on each IRQ line to prevent stray interrupts on unused inputs. Unused IRQ lines assume a high state.  Each source has a 1K pull-down resistor tied to the IRQ line through a series jumper. Only one shared device per IRQ line should have the jumper installed. The pull-down resistor fights against the 4.7K pull-up resistor on the CPU, but the 1K wins, causing the IRQ line to assume a low state.  Interrupts are requested by enabling the tri-state driver. This drives the IRQ line from low-to-high.  The source must work against the pull-down resistor  Multiple sources are allowed per IRQ line. Software must distinguish which device made the interrupt request by polling the hardware within the Interrupt Service Routine.  When not requesting an interrupt, the tri-statable driver must be disabled. This leaves the IRQ line in a low state, allowing other sources on the same IRQ line to make requests of their own. VCM-DAS-1/2 Reference Manual 15 Configuration – 15 DMA Configuration The VCM-DAS-1/2 can be setup to generate a DMA transfer request upon analog input conversion complete. These requests can be routed to DMA channel 5, 6, or 7 depending upon the configuration of jumper V6. Table 9: DMA Channel Selection Jumpers Jumper Block Description V6 DMA Channel Select DMA 5 16 16 – Configuration As Shipped None DMA 6 DMA 7 VCM-DAS-1/2 Reference Manual Installation 3 Handling After removing the module from its protective wrapper, place the module on a grounded, staticfree surface, component side up. Use an anti-static foam pad if available. Do not slide the board over any surface. The module should also be protected during shipment or storage with anti-static foam and conductive bubble wrap. Warning! The VCM-DAS-1/2 is designed for reliability, however, electrostatic discharge (ESD) can damage on-board components. When handling the module, standard ESD procedures should be observed. If an ESD station is not available, you can provide some ESD protection by wearing a grounded antistatic wrist strap. Arranging the PC/104 Stack 1. Turn the system power off. Installing or removing modules from the PC/104 stack while the power is on may damage the system. 2. The VCM-DAS-1/2 module can occupy any stack position, however, if the stack contains PC/104-Plus modules, the VCM-DAS-1/2 module should be plugged on top of these cards. 3. Additional stack-through modules can be stacked on top of the VCM-DAS-1/2. Up to six PC/104 modules can be added. If a non-stack-through module is used, it must be topmost module on the stack. Signal Levels Connector J1 is the digital input/output connector. Each circuit is a tri-statable totem-poll TTL driver with a 10K ohm pull up resistor to +5V. Input gates are attached to each output signal for read-back. Signal direction is determined by the DIRHI and DIRLO bits in the CONTROL register. External equipment attached to connector J1 must be able to sink 500 µA @ 5V per channel. The maximum non-destructive input voltage applied to any channel is +5V. Connector J2 is the analog input and output connector. All analog input signals are single ended analog level signals measured with respect to analog ground. The maximum non-destructive input voltage applied to any of the inputs is ±16.5V. Each analog channel presents a minimum input impedance of 16K ohms. VCM-DAS-1/2 Reference Manual Registers – 17 External Connectors CONNECTOR FUNCTIONS Table 10: Connector Functions Connector Function J1 Digital I/O Connector J2 Analog I/O Connector CONNECTOR LOCATIONS Figure 5. Connector Locations 18 18 – Installation VCM-DAS-1/2 Reference Manual MATING CONNECTORS AND CABLE ASSEMBLIES Connections to the VCM-DAS-1/2 can be made using 0.05" pitch flat ribbon cable with 0.1" mass-terminated mating connectors. One cable for J2 is available from VersaLogic for development work, however, you will probably want to make your own custom cable to more closely match the requirements of your embedded computer project. Table 11: Mating Connectors and Cable Assemblies Connector Mating Connector J1 (Digital I/O) Std. 34-pin 0.1 in. IDC header, 3M 3414-6634 or equivalent J2 (Analog I/O) Std. 26-pin 0.1 in. IDC header, 3M 3399-6626 or equivalent VCM-DAS-1/2 Reference Manual 19 Installation – 19 J1 – DIGITAL I/O CONNECTOR Table 12: Digital I/O Connector Pinout J1 Pin 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 Signal Name Opto 22 Function DIO0 Digital Ground DIO1 Digital Ground DIO2 Digital Ground DIO3 Digital Ground DIO4 Digital Ground DIO5 Digital Ground DIO6 Digital Ground DIO7 Digital Ground DIO8 Digital Ground DIO9 Digital Ground DIO10 Digital Ground DIO11 Digital Ground DIO12 Digital Ground DIO13 Digital Ground DIO14 Digital Ground DIO15 Digital Ground Power Digital Ground MOD15* Digital Ground MOD14* Digital Ground MOD13* Digital Ground MOD12* Digital Ground MOD11* Digital Ground MOD10* Digital Ground MOD9* Digital Ground MOD8* Digital Ground MOD7* Digital Ground MOD6* Digital Ground MOD5* Digital Ground MOD4* Digital Ground MOD3* Digital Ground MOD2* Digital Ground MOD1* Digital Ground MOD0* Digital Ground Power Digital Ground MOD0* – MOD15*. Opto 22 bi-directional interface signals. Each signal consists of a tristatable totem-poll TTL driver with a 10K pull up resistor to +5V. Input gates are attached to each output signal for read-back. Signal direction is determined by the DIRHI and DIRLO bits in the CONTROL register. Power. +5V power output. When jumper V5 is installed, up to 500 mA can be drawn from this +5V output to power the Opto 22 interface rack or other external equipment. If the I/O rack is powered by a separate external supply, the power jumper on the I/O rack or the V2 jumper must be removed. See page 13 for further information. Digital Ground. All signals on connector J1 are referenced to these digital ground connections. The use of all ground connections is recommended to maintain a high degree of signal integrity. 20 20 – Installation VCM-DAS-1/2 Reference Manual J2 – ANALOG I/O CONNECTOR Table 13: Analog I/O Connector Pinout J2 Pin Signal Name Function 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 CH0 CH8 AGND CH9 CH1 AGND CH2 CH10 AGND CH11 CH3 AGND CH4 CH12 AGND CH13 CH5 AGND CH6 CH14 AGND CH15 CH7 AGND DA0V DA1V Channel 0 Input Channel 8 Input Analog Ground Channel 9 Input Channel 1 Input Analog Ground Channel 2 Input Channel 10 Input Analog Ground Channel 11 Input Channel 3 Input Analog Ground Channel 4 Input Channel 12 Input Analog Ground Channel 13 Input Channel 5 Input Analog Ground Channel 6 Input Channel 14 Input Analog Ground Channel 15 Input Channel 7 Input Analog Ground Channel 0 Output Channel 1 Output Channel 0 to 15 Input. Analog voltages are applied to these inputs for A/D conversion. All inputs are single-ended, and are referenced to Analog Ground. Analog Ground. This signal is the on-board analog ground. All signals on J2 are referenced to this signal. The use of multiple Analog Ground signals is recommended to maintain a high degree of signal integrity. Channel 0 & 1 Output. Analog voltage outputs referenced to analog ground. Each signal can source or sink up to 5 mA. VCM-DAS-1/2 Reference Manual 21 Installation – 21 Registers 4 Introduction This section includes information about registers, control and status bits, and data formats. It focuses primarily on the individual registers, the bits contained within them, and their functional descriptions. The VCM-DAS-1/2 contains two different sets of registers, those that occupy standard I/O ports, and those that are part of an on-board Serial Peripheral Interface (SPI) bus. Devices on the SPI bus include both analog output channels, the EEPROM, and four digital calibration pots. I/O Port Mapping The VCM-DAS-1/2 occupies 16 ports in the I/O map. Ten I/O ports are mapped to functional registers, the remaining six I/O ports are decoded by the board, and cannot be used by other PC/104 Modules. Table 14: I/O Port Addresses Write Register Read Register I/O Port Address As Shipped Address — — Board Address + 15 030Fh — — Board Address + 14 030Eh — — Board Address + 13 030Dh — — Board Address + 12 030Ch — — Board Address + 11 030Bh — — Board Address + 10 030Ah SPIWDAT SPIRDAT Board Address + 9 0309h SPISEL — Board Address + 8 0308h PARWHI PARRHI Board Address + 7 0307h PARWLO PARRLO Board Address + 6 0306h — ADCHI Board Address + 5 0305h — ADCLO Board Address + 4 0304h ADCPTR — Board Address + 3 0303h ADCCVT — Board Address + 2 0302h ADCSEL — Board Address + 1 0301h CONTROL ADCSTAT Board Address + 0 0300h VCM-DAS-1/2 Reference Manual Registers – 23 I/O PORT REGISTER FUNCTIONS The following table lists the functions assigned to each read and write I/O port register. Table 15: Register Functions Write Register 24 24 – Registers Description Page SPIWDAT Write Data to Analog Output Channels, Digital Pots, and EEPROM 27 SPISEL Serial Peripheral Interface (SPI) Chip Select Register and DAC Load 28 PARWHI Parallel Port Data High (Opto 22 Modules 0-7) 47 PARWLO Parallel Port Data Low (Opto 22 Modules 8-15) 47 ADCPTR Analog Input Periodic Trigger Rate 30 ADCCVT Triggers Analog Input Conversion, Clears Done Bit 31 ADCSEL Analog Input Channel Select, Scan Range Limit 32 CONTROL Analog Input Interrupt, DMA, Trigger Modes, Auto Increment, Parallel Port Direction 34 Read Register Description SPIRDAT Read Data from EEPROM – PARWHI Parallel Port Data High (Opto 22 Modules 0-7) 47 PARWLO Parallel Port Data Low (Opto 22 Modules 8-15) 47 ADCHI Analog Input High Data Byte 37 ADCLO Analog Input Low Data Byte 38 ADCSTAT A/D Busy, A/D Done 36 Page VCM-DAS-1/2 Reference Manual Serial Port Interface (SPI) Register Functions The following table lists the functions assigned to each register accessible through the Serial Port Interface (SPI). These registers are accessed in a serial fashion by manipulating the SPIWDAT, SPISEL, and SPIRDAT registers. Table 16: Register Functions Write Register Description ADOFSET Analog Input Offset Digital Pot (DPOT#1) DA0GAIN Analog Output Channel 0 Gain Digital Pot (DPOT#2) ADGAIN Analog Input Gain Digital Pot (DPOT#3) DA1GAIN Analog Output Channel 1 Gain Digital Pot (DPOT#4) DA0DATA Analog Output Channel 0 Data Register DA1DATA Analog Output Channel 1 Data Register WDATA Data to be stored in EEPROM ADDRESS EEPROM address OPCODE Operation code used to specify EEPROM read, write, and erase functions. Read Register Description RDATA Data read from EEPROM VCM-DAS-1/2 Reference Manual 25 Registers – 25 SPI READ DATA REGISTER SPIRDAT (READ) 0309h D7 D6 D5 D4 D3 D2 D1 D0 — — — — — — — RDATA This register is used to read data from the serial EEPROM. Operational details regarding the serial EEPROM chip exceed the scope of this manual. The user is encouraged to use the C/C++ software functions provided with the VCM-DAS-1/2 to access EEPROM contents. Table 17: SPIRDAT Bit Assignments Bit Mnemonic D7-D1 — D0 RDATA 26 26 – Registers Description Unused — These bits have no function. Read Data — Serial read data from the SPI. Data read from this bit returns stored information from the EEPROM. In certain modes, this bit is also used to indicate EEPROM busy status. VCM-DAS-1/2 Reference Manual SPI WRITE DATA REGISTER SPIWDAT (WRITE) 0309h D7 D6 D5 D4 D3 D2 D1 D0 — — — — — — — WDATA This register is used to write data to the various devices on the serial peripheral interface. Each device contains a shift register which receives data written to the WDATA bit. You must first select which chip is to receive the data by writing to the SPISEL register. Table 18: SPIWDAT Bit Assignments Bit Mnemonic D7-D1 — D0 WDATA Description Unused — These bits have no function. Write Data — Serial write data to the SPI. Data written to this bit is clocked into the shift register of the selected SPI device. VCM-DAS-1/2 Reference Manual 27 Registers – 27 SPI SELECT REGISTER SPISEL (WRITE) 0308H D7 D6 D5 D4 D3 D2 D1 D0 — — — — DACLOAD EESEL DPOTSEL DACSEL This register is used to select which device on the serial peripheral interface (SPI) bus should receive data written to the SPIWDAT register. Bit D3 (DACLOAD) is used to transfer the contents of the analog output shift register(s) to the A/D converter(s), causing an output voltage update. Table 19: SPISEL Bit Assignments Bit Mnemonic D7-D4 — D3 DACLOAD Description Unused — These bits have no function. Analog Output Data Load — This control bit is used to transfer the analog output data from the DAC shift register to the D/A converters. Data is transferred on the 0 to 1 transition of this bit. DACLOAD = 0 Both analog output channels remain stable. DACLOAD = 1 The Analog Output Data stored in the Analog Output Shift Register (DACSR) is transferred to the appropriate D/A converter(s) as determined by the A and B bits in DACSR. Output voltage change(s) occurs immediately. NOTE: The update occurs when DACLOAD changes from 0 to 1. DACLOAD should be reset to "0" prior to loading new data into the DACSR register. D2 D1 EESEL DPOTSEL EEPROM Chip Select — This control bit selects the EEPROM chip for serial data transfer. EESEL = 0 EEPROM chip ignores the serial data interface. EESEL = 1 EEPROM chip responds to serial data interface reads and writes. Digital Pot Chip Select — This control bit selects the digital pot chip for serial data transfer. DPOTSEL = 0 Digital pot chip ignores the serial data interface. DPOTSEL = 1 Digital pot chip responds to serial data interface reads and writes. D0 DACSEL 28 28 – Registers Analog Output Chip Select — This control bit selects the analog output chip for serial data transfer. DACSEL = 0 Analog output chip ignores the serial data interface.. DACSEL = 1 Analog output chip responds to serial data interface writes. VCM-DAS-1/2 Reference Manual Analog Input Registers The following table lists the functions assigned to each analog input read and write register. Table 20: Register Functions Write Register Description ADCPTR Analog Input Periodic Trigger Rate 30 ADCCVT Triggers Analog Input Conversion, Clears Done Bit 31 ADCSEL Analog Input Channel Select, Scan Range Limit 32 CONTROL Analog Input Interrupt, DMA, Trigger Modes, Auto Increment, Parallel Port Direction 34 Page Read Register Description ADCHI Analog High Data Byte 37 ADCLO Analog Low Data Byte 38 ADCSTAT A/D Busy, A/D Done 36 VCM-DAS-1/2 Reference Manual Page 29 Registers – 29 ADC PERIODIC TRIGGER RATE REGISTER ADCPTR (WRITE) 0303H D7 D6 D5 D4 D3 D2 D1 D0 — — — — — TR2 TR1 TR0 This register specifies the periodic trigger rate for applications which need analog input conversions at predetermined intervals. Table 21: ADCPTR Bit Assignments Bit Mnemonic D7-D3 — D2-D0 TR2-TR0 Description Unused — These bits have no function. Trigger Rate — These bits set the periodic trigger rate. TR2 TR1 TR0 0 0 0 0 1 1 1 0 0 1 1 0 0 1 0 1 0 1 0 1 0 Counts 128 256 512 1024 2048 4096 8192 Triggering Rate 15.3 30.4 60.9 122.2 244.5 491.5 982.9 Microseconds Microseconds Microseconds Microseconds Microseconds Microseconds Microseconds Note: The triggering rate is determined by counting PC/104 bus clocks (which are supplied by the CPU). The times given above are based on an 8.333 MHz bus clock. 30 30 – Registers VCM-DAS-1/2 Reference Manual ADC CONVERT REGISTER ADCCVT (WRITE) 0302H D7 D6 D5 D4 D3 D2 D1 D0 — — — — — — — CMD The ADCCVT register is a write register which is used to trigger an A/D conversion under software control. Note: A word-wide output instruction to the ADCSEL register (out dx,ax) also writes into the ADCCVT register causing channel addressing and triggering with one CPU instruction. Table 22: ADCCVT Bit Assignments Bit Mnemonic D7-D1 — D0 CMD Description Unused — These bits have no function. Command — This control bit has two functions. CMD = 0 Clears the BUSY bit in the ADCSTAT register and cancels the interrupt request signal. Normally this is a seldom used function because reading data from the ADCHI register performs these actions. The most common use of this command is to remove the interrupt request signal when operating the board in DMA mode. CMD = 1 Triggers (starts) an A/D conversion. Writing a 1 to this bit causes an A/D conversion to start. It is not necessary to write a 0 before triggering the next conversion. Note: Proper operation dictates that A/D conversions should only be triggered when the A/D converter is idle (i.e., the BUSY bit in the ADCSTAT register = 0). Retriggering a conversion while one is underway is not recommended. VCM-DAS-1/2 Reference Manual 31 Registers – 31 ADC SELECT REGISTER ADCSEL (WRITE) 0301H D7 D6 D5 D4 D3 D2 D1 D0 — — SL1 SL0 SEL3 SEL2 SEL1 SEL0 This register is used to select the analog channel to use for A/D conversion. It is also used to limit the number of scanned channels in auto-increment mode. Table 23: ADCSEL Bit Assignments Bit Mnemonic D7-D6 — D5-D4 SL1-SL0 Description Unused — These bits have no function. Scan Range Limit — These two bits define and restrict the number of channels scanned in auto-increment mode. This allows for faster throughput when fewer than 16 analog inputs are used. A board reset selects (00) so that applications which do not use auto-increment mode are not restricted to a limited set of channels. SL1 SL0 32 32 – Registers Scan Range 0 0 Channels 0 to 15 – This selection does not restrict the number of channels accessed in auto-increment mode. Allows access to all channels. 0 1 Channels 0 to 3 – This selection causes the first four channels to be accessed in auto-increment mode. Channels 0 through 3 are accessed in sequence, and then repeated. 1 0 Channels 0 to 7 – This selection causes the first eight channels to be accessed in auto-increment mode. Channels 0 through 7 are accessed in sequence, and then repeated. 1 1 Unused – This combination is invalid. VCM-DAS-1/2 Reference Manual Table 23: ADCSEL Bit Assignments (cont.) Bit Mnemonic D3-D0 SEL Description Channel Select — These bits select the analog channel to use for A/D conversion. In auto-increment mode, the channel address changes after each A/D conversion. In all other cases the channel remains static. SEL3 SEL2 SEL1 SEL0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 Selected Channel 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Note: The Scan Range Limit bits in the Control register affect the number stored in this register. A settling delay of approximately 5 microseconds is inserted whenever this register changes. VCM-DAS-1/2 Reference Manual 33 Registers – 33 CONTROL REGISTER CONTROL (WRITE) 0300H D7 D6 D5 D4 D3 D2 D1 D0 DIRHI DIRLO DMAEN AINCR ATRIG PTRIG SHARE INTEN This register is used to set various operating modes of the VCM-DAS-1/2. A board reset sets this register to 00h. Table 24: CONTROL Bit Assignments Bit Mnemonic D7 DIRHI D6 D5 D4 34 34 – Registers DIRLO DMAEN AINCR Description Parallel Port Direction — This bit controls the direction of the upper half of the parallel I/O port (DIO8–DIO15). DIRHI = 0 Input DIRHI = 1 Output Parallel Port Direction — This bit controls the direction of the lower half of the parallel I/O port (DIO0–DIO7). DIRLO = 0 Input DIRLO = 1 Output Direct Memory Access Enable — Enables or disables analog input DMA. DMAEN = 0 Disables DMA transfers. DMAEN = 1 Enables analog input DMA transfers. In this mode a DMA transfer request is made whenever an A/D conversion is complete. Auto Increment Enable — Enables or disables auto increment mode. AINCR = 0 Disables auto increment. The Channel Select bits retain their value. AINCR = 1 Enables auto increment. In this mode the Channel Select bits in the ADCSEL register increment by one after the ADCHI register is read, allowing the next channel in sequence to be converted. The channel number will increment to a maximum value set by the Scan Range Limit bits (in the ADCSEL register), and then repeat starting again with channel 0. A five microsecond settling delay is inserted after each increment. Auto increment is compatible with manual and auto-trigger modes. VCM-DAS-1/2 Reference Manual Table 24: Control Bit Assignments (cont.) Bit Mnemonic D3 ATRIG Description Auto Trigger Enable — Enables or disables auto trigger mode. ATRIG = 0 Disables auto trigger mode. ATRIG = 1 Enables auto trigger mode. In this mode a new A/D conversion is triggered immediately after the ADCHI register is read, eliminating the need to trigger a conversion by writing to the ACDCVT register. To use auto-triggering, set this bit to "1," start the first conversion "manually" by writing to the ADCCVT register, wait until Done, then read the ADCLO and ADCHI registers. From this point on, just wait until DONE and read data. D2 D1 D0 PTRIG SHARE INTEN Periodic Trigger Enable — Enables or disables periodic trigger mode. PTRIG = 0 Disables periodic trigger mode. PTRIG = 1 Enables periodic trigger mode. In this mode a new A/D conversion is triggered automatically at a rate determined by the ADCPTR register. This mode is typically used in conjunction with interrupt or DMA based data transfers. Shared Interrupt Enable — Enables or disables shared interrupt mode. SHARE = 0 Disabled shared interrupt mode. This mode configures the interrupt driver for totem-pole operation, and is used when the VCM-DAS-1/2 is not sharing interrupts with other devices in the system. SHARE = 1 Enables shared interrupt mode. This mode configures the interrupt driver for open-collector operation, and is used when the VCM-DAS-1/2 is to share it's interrupt request line with other devices. A/D Interrupt Enable — Enables or disables interrupt mode. INTEN = 0 Disables interrupts. INTEN = 1 Enables interrupts. The behavior of the interrupt request depends upon the DMAEN bit: VCM-DAS-1/2 Reference Manual DMAEN = 0 In this mode, an interrupt request is sent to the CPU when the A/D conversion is complete, The interrupt request goes away when the ADCHI register is read or by writing 00h to the ADCCVT register. DMAEN = 1 In this mode, an interrupt request is sent to the CPU when the DMA controller (located on the CPU board) indicates a Terminal Count condition. The interrupt request goes away by writing 00h to the ADCCVT register. 35 Registers – 35 ADC STATUS REGISTER ADCSTAT (READ) 0300H D7 D6 D5 D4 D3 D2 D1 D0 BUSY DONE — — — — — — This register is used to determine if an A/D conversion is complete. Table 25: ADCSTAT Bit Assignments Bit Mnemonic D7 BUSY Description Analog Input Conversion / Settling Time In Progress — This status bit indicates the status of the A/D converter and the settling delay circuits. BUSY = 0 Analog input circuits idle. BUSY = 1 Indicates the following conditions:  The five microsecond settling time is currently in progress. (The delay starts when the channel number is switched by writing to the ADCSEL register or by the auto-increment mode.)  The ten microsecond A/D conversion process is currently in process (begins when an A/D conversion is triggered). Note: D6 D5-D0 36 36 – Registers DONE — This bit is used for factory testing. Analog Input Conversion Complete — This status bit is used to determine when it is OK to read data from the A/D converter. DONE = 0 There is no unread data waiting for pickup. Done is reset to "0" when the ADCHI register is read. DONE = 1 Analog input conversion has completed. Valid data is available to be read from the ADCLO and ADCHI registers. When interrupts are enabled, the A/D interrupt request signal goes active when Done is set. Unused — These bits have no function. VCM-DAS-1/2 Reference Manual ADC DATA HIGH REGISTER ADCHI (READ) 0305H D7 D6 D5 D4 D3 D2 D1 D0 D15 D14 D13 D12 D11 D10 D9 D8 The ADCHI register is a read register containing the upper 8 bits of data from the A/D conversion results. It is used in conjunction with the ADCLO register to read the complete 16-bit data word. When reading data, the ADCLO register should be read first, followed by the ADCHI register. When the ADCHI register is read the following events occur:  The DONE bit in the ADCSTAT register is reset to "0".  If DMA mode is not being used, the A/D interrupt request signal is cleared.  The next channel in sequence is selected if auto-increment mode enabled.  A new A/D conversion is triggered if auto-trigger mode is enabled. Table 26: ADCHI Bit Assignments Bit Mnemonic D15-D8 ADCDATA Description A/D Input Data (Most Significant Byte) — These bits contain data bits D15 through D8 of the conversion results. VCM-DAS-1/2 Reference Manual 37 Registers – 37 ADC DATA LOW REGISTER ADCLO (READ) 0304H D7 D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 D1 D0 The ADCLO register is a read register containing the lower 8 bits of data from the A/D conversion results. It is used in conjunction with the ADCHI register to read the complete 16-bit data word. After a conversion is complete (as reported by the DONE bit in the ADCSTAT register) the ADCLO register should be read first, followed by the ADCHI register. A word-wide input instruction from the ADCLO register (in ax,dx) will fetch data from both registers in the proper sequence. The data registers are located on an even address boundary to facilitate efficient single-cycle reading of the A/D data. Table 27: ADCLO Bit Assignments Bit Mnemonic D7-D0 ADCDATA 38 38 – Registers Description A/D Input Data (Least Significant Byte) — These bits contain data bits D7 through D0 of the conversion results. VCM-DAS-1/2 Reference Manual ANALOG INPUT DATA REPRESENTATION The VCM-DAS-1/2 converts applied analog voltages into 16-bit, two’s complement digital words. The full applied analog input range is divided into 65536 steps. The output code (0000h) is associated with a mid-range analog value of 0 Volts (ground). Positive analog values are represented by positive binary numbers, whereas negative analog values are represented by negative binary numbers, i.e., –1 = FFFFh. The formulas for calculating analog or 16-bit two’s complement digital values are given by: Analog Digital = Analog = Step x Digital Step Where: Analog = Applied voltage Digital = A/D Conversion Data Step = 0.0003051757813 (±10V Range) 0.0001525878907 (±5V Range) Sample two’s complement values are shown in the table below: Table 28: Two's Complement Data Format ±5V Input Voltage ±10V Input Voltage Hex +5.000000 +4.999847 +2.500000 +1.250000 +0.000153 0.000000 –0.000153 –1.250000 –2.500000 –5.000000 +10.000000 +9.999695 +5.000000 +2.500000 +0.000305 0.000000 –0.000305 –2.500000 –5.000000 –10.000000 — 7FFFh 4000h 2000h 0001h 0000h FFFFh E000h C000h 8000h VCM-DAS-1/2 Reference Manual Decimal — 32767 16384 8192 1 0 -1 -8192 -16384 -32768 Comment Out of range Maximum positive voltage Positive half scale Positive quarter scale Positive 1 LSB Zero (ground input) Negative 1 LSB Negative quarter scale Negative half scale Maximum negative voltage 39 Registers – 39 ADC OFFSET DIGITAL POT REGISTER ADOFSET (WRITE) SPI DPOT #1 D7 D6 D5 D4 D3 D2 D1 D0 DATA7 DATA6 DATA5 DATA4 DATA3 DATA2 DATA1 DATA0 This register is used to control the setting for the digital potentiometer assigned to analog input offset calibration. Table 29: ADOFSET Bit Assignments Bit Mnemonic D7-D0 DATA7DATA0 Description Analog Input Offset Pot Wiper Position — This 8-bit value controls the position of the wiper contact of potentiometer #1 (inside U2). Changing the value in this register is analogous to rotating the control shaft of a regular pot with a screwdriver, and will have the effect of shifting the Analog Input transfer function up or down along the Y (digital) axis. The overall adjustment range of this pot will affect the analog input readings by approximately ±00B0h. Data format is offset binary. Some sample values are shown below: DATA Wiper Position FFh C0h 80h 40h 00h Full CCW Half CCW Middle Position Half CW Full CW Approximate Offset –00B0h –0058h 0000h +0058h +00B0h NOTE: This register is reset to 80h (middle position) by a board reset. 40 40 – Registers VCM-DAS-1/2 Reference Manual ADC GAIN DIGITAL POT REGISTER ADGAIN (WRITE) SPI DPOT #3 D7 D6 D5 D4 D3 D2 D1 D0 DATA7 DATA6 DATA5 DATA4 DATA3 DATA2 DATA1 DATA0 This register is used to control the setting for the digital potentiometer assigned to analog input gain calibration. Table 30: ADGAIN Bit Assignments Bit Mnemonic D7-D0 DATA7DATA0 Description Analog Input Gain Pot Wiper Position — This 8-bit value controls the position of the wiper contact of potentiometer #3 (inside U2). Changing the value in this register is analogous to rotating the control shaft of a regular pot with a screwdriver, and will change the slope of the Analog Input transfer function. The overall adjustment range of this pot will affect the analog input readings by approximately ±.05% (±20h at fullscale). Data format is offset binary. Some sample values are shown below: DATA Wiper Position FFh C0h 80h 40h 00h Full CCW Half CCW Middle Position Half CW Full CW Approximate Gain (Slope) .90 .95 1.00 1.05 1.10 NOTE: This register is reset to 80h (middle position) by a board reset. ACCESS EXAMPLE The following code example will set the ADGAIN register to 44h. OUTPUT SPISEL,02h ;Route SPI traffic to Digital Pot chip OUTPUT OUTPUT SPIWDAT,01h SPIWDAT,00h ;ADDR1 = 1 ;ADDR0 = 0 DPOT#3 ADDR=2 OUTPUT OUTPUT OUTPUT OUTPUT OUTPUT OUTPUT OUTPUT OUTPUT SPIWDAT,00h SPIWDAT,01h SPIWDAT,00h SPIWDAT,00h SPIWDAT,00h SPIWDAT,01h SPIWDAT,00h SPIWDAT,00h ;DATA7 ;DATA6 ;DATA5 ;DATA4 ;DATA3 ;DATA2 ;DATA1 ;DATA0 ADGAIN=44h VCM-DAS-1/2 Reference Manual = = = = = = = = 0 1 0 0 0 1 0 0 41 Registers – 41 Analog Output Registers The following table lists the functions assigned to each analog output write register. Table 31: Register Functions Write Register Description DA0GAIN Analog Output Channel 0 Gain Digital Pot (DPOT#2) DA1GAIN Analog Output Channel 1 Gain Digital Pot (DPOT#4) DA0DATA Analog Output Channel 0 Data Register DA1DATA Analog Output Channel 1 Data Register 42 42 – Registers VCM-DAS-1/2 Reference Manual ANALOG OUTPUT GAIN DIGITAL POT REGISTERS DA0GAIN (WRITE) SPI DPOT #2 – Analog Output Channel 0 DA1GAIN (WRITE) SPI DPOT #4 – Analog Output Channel 1 D7 D6 D5 D4 D3 D2 D1 D0 DATA7 DATA6 DATA5 DATA4 DATA3 DATA2 DATA1 DATA0 These registers are used to control the settings for the digital potentiometers used to calibrate analog output channels 0 and 1. Table 32: Bit Assignments Bit Mnemonic D7-D0 DATA7DATA0 Description Analog Output Gain Pot Wiper Position — The value stored in this register controls the position of the wiper contact of potentiometer #2 or #4 (inside U2). Changing the value is analogous to rotating the control shaft of a regular pot with a screwdriver, and will change the slope of the Analog Output transfer function. The overall adjustment range of this pot will affect the analog output voltages by approximately ±.05%. Data format is offset binary. Some sample values are shown below: DATA Wiper Position FFh C0h 80h 40h 00h Full CCW Half CCW Middle Position Half CW Full CW Approximate Gain (Slope) .90 .95 1.00 1.05 1.10 NOTE: These registers are reset to 80h (middle position) by a board reset. ACCESS EXAMPLE The following code example will set the DA0GAIN register to 15h. OUTPUT SPISEL,02h ;Route SPI traffic to Digital Pot chip OUTPUT OUTPUT SPIWDAT,00h SPIWDAT,01h ;ADDR1 = 0 ;ADDR0 = 1 DPOT#2 ADDRESS=1 (DPOT#4 ADDRESS=3) OUTPUT OUTPUT OUTPUT OUTPUT OUTPUT OUTPUT OUTPUT OUTPUT SPIWDAT,00h SPIWDAT,00h SPIWDAT,00h SPIWDAT,01h SPIWDAT,00h SPIWDAT,01h SPIWDAT,00h SPIWDAT,01h ;DATA7 ;DATA6 ;DATA5 ;DATA4 ;DATA3 ;DATA2 ;DATA1 ;DATA0 DA0GAIN=15h VCM-DAS-1/2 Reference Manual = = = = = = = = 0 0 0 1 0 1 0 1 43 Registers – 43 ANALOG OUTPUT SHIFT REGISTER DACSR (WRITE) SPI D15 D14 D13 D12 SHL B A — D11 D10 D9 DB11 DB10 DB9 D8 D7 D6 D5 D4 D3 D2 D1 D0 DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 This shift register is used to control the voltages on analog output channels 0 and 1. After writing the desired digital value into the shift register, bit D3 (DACLOAD) in the SPISEL register must be set to transfer the data to the analog converter. Table 33: Bit Assignments Bit Mnemonic D15 SHL D14 B Description Software/Hardware Load — This control bit determines how the DACA and DACB converters are loaded with new data. SHL = 0 Hardware Mode – A and B bits are ignored. Both DACA and DACB are loaded with data from DB11-DB0 when bit D3 (DACLOAD) in the SPISEL register is changed from "0" to "1". SHL = 1 Software Mode – When DACLOAD is activated, A and B bits are examined to determine which DAC channel should receive data from DB11-DB0. This is the normal mode of operation for the VCM-DAS-1/2. Analog Output Channel 1 Load — This control bit is used to load the analog output data into the channel 1 D/A converter. B=0 Data will not transfer to DACB when bit D3 (DACLOAD) in the SPISEL register is set. B=1 Loads DACB (channel 1) with data from DB11–DB0 when bit D3 (DACLOAD) in the SPISEL register is set. NOTE: D13 A The above descriptions assume SHL=1. Analog Output Channel 0 Load — This control bit is used to load the analog output data into the channel 0 D/A converter. A=0 Data will not transfer to DACA when bit D3 (DACLOAD) in the SPISEL register is set. A=1 Loads DACA (channel 0) with data from DB11–DB0 when bit D3 (DACLOAD) in the SPISEL register is set. NOTE: The above descriptions assume SHL=1. D12 — Unused — This bit has no function. This bit should be written as a "0". D11-D0 DB11-DB0 Analog Output Data — The data written to these bits forms the 12-bit digital value to be converted to an analog output voltage. See page 45 for a discussion of data format. NOTE: The analog output voltage does not update until bit D3 (DACLOAD) in the SPISEL register is changed from 0 to 1. 44 44 – Registers VCM-DAS-1/2 Reference Manual ACCESS EXAMPLE The following code example will set Analog Output Channel 0 to a mid-scale value. OUTPUT SPISEL,01h ;Route SPI traffic to DAC chip OUTPUT OUTPUT OUTPUT OUTPUT OUTPUT OUTPUT OUTPUT OUTPUT OUTPUT OUTPUT OUTPUT OUTPUT OUTPUT OUTPUT OUTPUT OUTPUT SPIWDAT,01h SPIWDAT,00h SPIWDAT,01h SPIWDAT,00h SPIWDAT,01h SPIWDAT,00h SPIWDAT,00h SPIWDAT,00h SPIWDAT,00h SPIWDAT,00h SPIWDAT,00h SPIWDAT,00h SPIWDAT,00h SPIWDAT,00h SPIWDAT,00h SPIWDAT,00h ;D15 ;D14 ;D13 ;D12 ;D11 ;D10 ;D9 ;D8 ;D7 ;D6 ;D5 ;D4 ;D3 ;D2 ;D1 ;D0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 OUTPUT OUTPUT SPISEL,08h SPISEL,00h ;D3 ;D3 1 DACLOAD 0 DACLOAD SHL = B = A = Unused Bit = DB11 = DB10 = DB9 = DB8 = DB7 = DB6 = DB5 = DB4 = DB3 = DB2 = DB1 = DB0 = Software Disable Enable Zero 800h (Mid Scale) " " " " " " " " " " " = Active = Inactive ANALOG OUTPUT DATA REPRESENTATION The VCM-DAS-1/2 converts 12-bit, straight binary digital words into 0 to +5V or 0 to +10V output signals. The output range is divided into 4096 steps. The code 000h produces an analog output of 0 Volts (ground). The formulas for calculating analog or straight binary digital values are given by: Analog Digital = Analog = Step x Digital Step Where: Analog = Applied voltage Digital = A/D Conversion Data Step = 0.00244140625 (0 to +10V Range) 0.00122070313 (0 to +5V Range) Sample values are shown in the table below: Table 34: Straight Binary Data Format ±5V Output Voltage ±10V Output Voltage +4.9976 +2.5000 +1.2500 +0.00122 0.0000 +9.9951 +5.0000 +2.5000 +0.00244 0.0000 VCM-DAS-1/2 Reference Manual Hex FFFh 800h 400h 001h 000h Decimal 4095 2048 1024 1 0 Comment Maximum positive voltage Positive half scale Positive quarter scale Positive 1 LSB Zero (ground output) 45 Registers – 45 Digital I/O Registers PORT DIRECTION The two 8-bit parallel ports can be configured as inputs or outputs by setting or clearing the DIRHI and/or DIRLO bits in the CONTROL register. When the system is powered up, or a system reset occurs, both ports are reset to inputs which causes the signal lines to go high. REGISTER FUNCTIONS The following table lists the functions assigned to the parallel port interface. Table 35: Register Functions 46 46 – Registers Write Register Description PARWHI Parallel Port Data High (Opto 22 Modules 0-7) 47 PARWLO Parallel Port Data Low (Opto 22 Modules 8-15) 47 Read Register Description PARRHI Parallel Port Data High (Opto 22 Modules 0-7) 48 PARRLO Parallel Port Data Low (Opto 22 Modules 8-15) 48 Page Page VCM-DAS-1/2 Reference Manual DIGITAL OUTPUT REGISTERS PARWLO (WRITE) 0306h D7 D6 D5 D4 D3 D2 D1 D0 DIO7 DIO6 DIO5 DIO4 DIO3 DIO2 DIO1 DIO0 PARWHI (WRITE) 0307h D7 D6 D5 D4 D3 D2 D1 D0 DIO15 DIO14 DIO13 DIO12 DIO11 DIO10 DIO9 DIO8 These registers are used to write data to the output port signal lines DIO0 through DIO15. Table 36: Bit Assignments Bit Mnemonic Description D7-D0 DIO0-DIO7 DIO15-DIO8 Digital Output Data — Data written to these registers is driven onto the parallel port data signals DIO15–DIO0 on connector J1. Data is not inverted; when a bit is set to 1 the signal line is driven high, when a bit is reset to 0 the signal line is driven low. NOTE: You must first set the direction of the appropriate port to output by setting the DIRHI and/or DIRLO bits in the CONTROL register. VCM-DAS-1/2 Reference Manual 47 Registers – 47 DIGITAL INPUT REGISTERS PARRLO (READ) 0306h D7 D6 D5 D4 D3 D2 D1 D0 DIO7 DIO6 DIO5 DIO4 DIO3 DIO2 DIO1 DIO0 PARRHI (READ) 0307h D7 D6 D5 D4 D3 D2 D1 D0 DIO15 DIO14 DIO13 DIO12 DIO11 DIO10 DIO9 DIO8 These registers are used to read data from the input port signal lines DIO0 through DIO15. Table 37: Bit Assignments Bit Mnemonic Description D7-D0 DIO0-DIO7 DIO15-DIO8 Digital Input Data — Data read from this register returns the current input state of the digital port signals DIO15–DIO0 on connector J1. Data is not inverted; when a signal line is high the bit reads as 1; when a signal line is low the bit reads as 0. NOTE: To operate the port in input mode you must first set the direction of the appropriate port to input by clearing the DIRHI and/or DIRLO bits in the CONTROL register. If the port is operated in output mode, the PARRLO/PARRHI registers can be used to readback the logic state of the output lines. Normally the data read would be the same as the data written to the PARWLO/PARHI registers, however, if an output line is stuck high or shorted to ground, the fault will be reflected in feedback data. 48 48 – Registers VCM-DAS-1/2 Reference Manual Operation 5 This section describes how to operate the VCM-DAS-1/2. Analog input, analog output, and digital I/O are discussed. Analog Input – Polled Mode Polled mode operation is the simplest method of analog input. In this mode, software is in control of the analog input process at all times. It is the responsibility of the CPU to start each new A/D conversion as desired, and to read the digital results upon completion. POLLED MODE STEPS  Channel selection  Trigger A/D conversion  Wait until done  Read data CHANNEL SELECTION Output the desired channel number to the SEL bits in the ADCSEL register. See page 32 for further information. After the first channel selection, this step can be skipped for multiple conversions of the same channel. This will eliminate the settling delay which is inserted every time the ADCSEL register is written to. Note: A word-wide output instruction to the ADCSEL register (out dx,ax) also writes into the ADCCVT register causing channel addressing and triggering with one CPU instruction. TRIGGER A/D CONVERSION Output 01h to the ADCCVT register. See page 31 for further information. WAIT UNTIL DONE Read the ADCSTAT register repeatedly until the DONE bit is set to "1". See page 36 for further information. READ DATA Input from the ADCLO register first, followed by the ADCHI register. A word-wide input instruction from the ADCLO register (in ax,dx) will fetch data from both the registers in the proper sequence. See page 38 for further information. VCM-DAS-1/2 Reference Manual Operation – 49 Analog Input – Interrupt Mode Interrupt mode eliminates the need to repeatedly poll the ADCSTAT register for DONE status. This frees up the CPU to execute unrelated code while the VCM-DAS-1/2 is busy with an A/D conversion. This is especially useful for handling auto triggered and periodic trigger applications. INTERRUPT MODE STEPS  Interrupt Service Routine  Initialize VCM-DAS-1/2 for interrupt mode  Initialize VCM-DAS-1/2 for Auto-trigger (if desired)  Initialize interrupt controller  Initialize CPU to receive interrupt  Channel selection  Initialize VCM-DAS-1/2 for Auto-increment (if desired)  Trigger A/D conversion INTERRUPT SERVICE ROUTINE The interrupt service routine reads A/D conversion results from the VCM-DAS-1/2 and stores the data somewhere. Data is input from the ADCLO register first, followed by the ADCHI register. A word-wide input instruction from the ADCLO register (in ax,dx) will fetch data from both registers in the proper sequence. Reading the ADCHI register clears the interrupt request. The interrupt service routine can be written to select a different channel or trigger a new conversion. INITIALIZE VCM-DAS-1/2 FOR INTERRUPT MODE Set bit D0 (INTEN) in the ADCSEL register. See page 32 for further information. INITIALIZE VCM-DAS-1/2 FOR AUTO-TRIGGER (IF DESIRED) Set bit D3 (ATRIG) in the ADCSEL register. See page 32 for further information. Auto-trigger mode is optional when using interrupts. Use it when you want to perform a continuous stream of analog input conversions. Auto-trigger mode eliminates the CPU overhead of writing to the ADCCVT register. INITIALIZE INTERRUPT CONTROLLER This involves setting up interrupt vector registers, priority, and unmasking. See the Interrupt Controller section of your CPU instruction manual for further information. 50 50 – Operation VCM-DAS-1/2 Reference Manual INITIALIZE CPU TO RECEIVE INTERRUPTS This involves preparing the interrupt vector table, and enabling interrupts. See your CPU instruction manual for further information. CHANNEL SELECTION Output the desired channel number to the ADCSEL register. See page 32 for further information. INITIALIZE VCM-DAS-1/2 FOR AUTO-INCREMENT (IF DESIRED) Set bit D4 (AINCR) in the CONTROL register. See page 34 for further information. Auto-increment mode is optional when using interrupts. Use it when you want to convert a series of analog input channels beginning with the channel in the ADCSEL register. Auto-increment mode eliminates the CPU overhead of writing to the ADCSEL register. When disabled, the VCM-DAS-1/2 will convert one channel repeatedly without a settling delay penalty. TRIGGER A/D CONVERSION Write 01h to the ADCCVT register to begin. An interrupt is generated when the VCM-DAS-1/2 completes an A/D conversion. VCM-DAS-1/2 Reference Manual 51 Operation – 51 Analog Output Writing to a VCM-DAS-1/2 analog output channel is involves writing to the SPI (Serial Peripheral Interface) one bit at a time. A 16-bit serial "frame" of data is written to the DAC chip which defines the analog output data, channel address, and loading mode. After the serial data is written, bit D3 (DACLOAD) in the SPISEL register is set to update the analog output channel(s).  Route SPI data to DAC chip and clear DACLOAD  Write DAC data frame  Execute DACLOAD to update analog output ROUTE SPI DATA TO DAC CHIP AND CLEAR DACLOAD The first step is to initialize the Serial Peripheral Interface (SPI) and to clear the DACLOAD bit which was left set by the previous analog output operation. Output 01h to the SPISEL register. This will cause two things to happen:  Data written to the SPIWDAT register will be routed to the DAC chip.  The DACLOAD bit will be cleared. See page 28 for further information on the SPISEL register. WRITE DAC DATA FRAME Execute sixteen output operations to the SPIWDAT register to setup the Analog Output Shift Register (DACSR). See page 44 for further information. EXECUTE DACLOAD TO UPDATE ANALOG OUTPUT The final step is to transfer the data from the shift register to the D/A converter(s). Output 08h to the SPISEL register. This will trigger a DACLOAD which updates the analog output channel(s) specified by the A/B bits in the DACSR register. See page 28 for further information on the SPISEL register and operation of the DACLOAD bit. 52 52 – Operation VCM-DAS-1/2 Reference Manual Digital I/O SIGNAL DIRECTION The sixteen parallel port signals on the VCM-DAS-1/2 can be configured as inputs or outputs, in groups of eight, by manipulating the DIRLO and DIRHI bits in the CONTROL register (page 34). The logic state of any channel can be read by reading the PARRHI or PARRLO registers (this includes the state of any output line). The logic level on any output channel can be manipulated by writing a 1 or 0 to the appropriate bit in the PARWHI or PARWLO register. SIGNAL POLARITY All parallel port circuits on the VCM-DAS-1/2 board are non-inverting, true logic. A high logic level on connector J3 is represented by a 1 in the parallel port data registers, and a low logic level is represented by a 0. Since Opto 22 modules invert the logic sense of signals passed through them, the register-tomodule interface is negative logic. The resulting data interface levels between the VCM-DAS1/2 and I/O rack modules are shown below. Data Written I/O Pin Output Modules Input Modules I/O Pin Data Read 0 1 (Low) (High) Power On Power Off Voltage Present Voltage Absent (Low) (High) 0 1 DIGITAL INPUT The logic state of the parallel input channels can be read at any time by reading the PARRLO or PARRHI registers. Simply choose the correct register and read it as an 8-bit quantity. If desired, both registers can be read with a single 16-bit input transaction (in ax,dx) by addressing PARRLO. This data transfer will take a single bus cycle. DIGITAL OUTPUT The logic state of any parallel output channel can be manipulated at any time by writing to the PARWLO or PARWHI registers. Simply choose the correct register and write the digital value as an 8-bit quantity. If desired, both registers can be written to with a single 16-bit output transaction (out dx,ax) by addressing PARWLO. This data transfer will take a single bus cycle. VCM-DAS-1/2 Reference Manual 53 Operation – 53 System Reset When the card is powered up, or a system reset occurs, the following happens:  Analog input channel address is reset to zero.  Analog input status flags are cleared.  Analog outputs are reset to 0 volts.  Digital outputs are reset to their inactive high states. 54 54 – Operation VCM-DAS-1/2 Reference Manual Calibration 6 Required equipment  Computer with PC/104 expansion site  Precision Voltmeter  Hand Calculator  Utility Disk Preparation  Place the VCM-DAS-1/2 on the PC/104 computer ISOLATE ANALOG CARD  Unplug ribbon cable from connector J2. There shouldn't be any external equipment attached to the VCM-DAS-1/2 card during calibration. JUMPER CONFIGURATION  Jumper the VCM-DAS-1 in the as shipped factory default configuration shown on page 6.  Make sure the base address of the VCM-DAS-1/2 does not conflict with any other I/O devices used in the system. Change jumper V4 if necessary. Note: The VCM-DAS-1/2 is shipped with a default base address of 300h. CALIBRATION UTILITY PROGRAM  Run DASxxx.EXE. Note: Substitute xxx for the base address (in hex). Five different versions of the program have been compiled for your convenience, each uses a different base address. If another address is used, the DAS.C program will need to be recompiled to reflect the new base address. Change line 86 as appropriate and recompile. unsigned int base_addr = 0x300; /* As shipped address = 0x300 */  You will be presented with a prompt "" which increments with each command typed in.  Type "?" to see a list of commands VCM-DAS-1/2 Reference Manual Calibration – 55 Calibrating Analog Input ANALOG INPUT OFFSET  Use a 0.1" jumper block to short J2[1] to J2[3]. This places AGND (0.000V) on input channel 0.  Type "AICO 0"  If successful, the program will say "Offset calibration complete"  If not successful, the program will say "Digital pot setting out of range." ANALOG INPUT GAIN  Analog output channel #0 will be used to generate a voltage close to +9.75V. This voltage will appear on analog input channel #14 because voltage loopback jumper V3[1-2] = IN.  Type "DP 1 0". This reduces the gain on AOUT0 to the absolute minimum. This ensures that we will not exceed +10.0V when we command AOUT0 to a full scale value in the next step.  Type "AO 0 4095". This commands AOUT0 to a output a full scale value. On a normally calibrated board this would produce about +10V, however, since the gain is turned down, the output will be about +9.8V  Connect the precision voltmeter to analog input channel 14 to monitor the applied voltage. Positive lead on J2[20], negative lead to J2[21].  Make note of the reading on the precision voltmeter. Call this value VOM. CALCULATE X = 20/65536 Y = (VOM) / X Note: Round Y to the nearest whole number.  Type "AICG 14 Y". Note: Substitute Y for the value calculated above. Y will vary depending upon the VOM reading, but should be between 30000 and 32760. Example: AICG 14 32300  If successful, the program will say "Gain calibration complete"  If not successful, the program will say "Gain calibration failed with Error Code: X" Save Calibration Values to EEPROM  Type "SC" 56 56 – Calibration VCM-DAS-1/2 Reference Manual Calibrating Analog Output Calibration of the analog output channels depends upon a properly calibrated analog input. You must first follow the instructions above. CALIBRATE ANALOG OUTPUT CHANNEL #0  Type "AOCG 0 14"  If successful, the program will say "Gain calibration complete"  If not successful, the program will say "Gain calibration failed with Error Code: X" CALIBRATE ANALOG OUTPUT CHANNEL #1  Type "AOCG 1 15" SAVE CALIBRATION VALUES TO EEPROM  Type "SC" Confirmation Of Calibration RELOAD CALIBRATION PARAMETERS.  Turn power off for 5 seconds  Turn power on  Run DASxxx.EXE  Type "LC" CHECK ANALOG OUTPUT CHANNEL #0  Attach voltmeter to analog output channel 0. Positive lead on J2[25], negative lead on J2[24].  Type "AO 0 4095". Voltmeter should read +10.000V  Type "AO 0 2048". Voltmeter should read +5.000V CHECK ANALOG OUTPUT CHANNEL #1  Attach voltmeter to analog output channel 1. Positive lead on J2[26], negative lead on J2[24].  Type "AO 1 4095". Voltmeter should read +10.000V  Type "AO 1 2048". Voltmeter should read +5.000V VCM-DAS-1/2 Reference Manual 57 Calibration – 57 CHECK ANALOG INPUT  Type "AI 0 80". Digital values should be 0 +/-6  Type "AO 0 2048"  Type "AI 14 80". Digital values should be 4000h +/-6 Finishing Up  Make sure the AOUT0 and AOUT1 feedback jumpers are restored  Remove shorting jumper from J2[1-3]  Reconnect external cable to J2 58 58 – Calibration VCM-DAS-1/2 Reference Manual Appendix A — Schematics VCM-DAS-1/2 Reference Manual A Schematics – 59 Schematics 60 60 – Schematics VCM-DAS-1/2 Reference Manual
VCM-DAS-1 价格&库存

很抱歉,暂时无法提供与“VCM-DAS-1”相匹配的价格&库存,您可以联系我们找货

免费人工找货