SVM2608 4-Channel, 100 kSamples/s Analog-to-Digital Converter USER’S MANUAL P/N: 82-0066-000 Released February 23, 2007 VXI Technology, Inc.
VXI Technology, Inc.
www.vxitech.com TABLE OF CONTENTS INTRODUCTION TABLE OF CONTENTS ................................................................................................................................................3 Certification ..........................................................................................................................................................5 Warranty .........................................................................................................................
VXI Technology, Inc. Measurement Commands ..............................................................................................................................41 Captured Data Calculations...........................................................................................................................42 Resistance Measurement – Offset Method....................................................................................................43 Resistance Measurement – Dynamic Method ........
www.vxitech.com CERTIFICATION VXI Technology, Inc. (VTI) certifies that this product met its published specifications at the time of shipment from the factory. VTI further certifies that its calibration measurements are traceable to the United States National Institute of Standards and Technology (formerly National Bureau of Standards), to the extent allowed by that organization’s calibration facility, and to the calibration facilities of other International Standards Organization members.
VXI Technology, Inc. DECLARATION OF CONFORMITY Declaration of Conformity According to ISO/IEC Guide 22 and EN 45014 MANUFACTURER’S NAME VXI Technology, Inc. MANUFACTURER’S ADDRESS 2031 Main Street Irvine, California 92614-6509-6509 PRODUCT NAME 4-Channel, 100 kSamples/s Analog-to-Digital Converter MODEL NUMBER(S) SVM2608 PRODUCT OPTIONS All PRODUCT CONFIGURATIONS All VXI Technology, Inc.
www.vxitech.com GENERAL SAFETY INSTRUCTIONS Review the following safety precautions to avoid bodily injury and/or damage to the product. These precautions must be observed during all phases of operation or service of this product. Failure to comply with these precautions or with specific warnings elsewhere in this manual, violates safety standards of design, manufacture and intended use of the product. Service should only be performed by qualified personnel.
VXI Technology, Inc. WARNINGS (CONT.) 8 Avoid Electric Shock To avoid electric shock or fire hazard, do not operate this product with the covers removed. Do not connect or disconnect any cable, probes, test leads, etc. while they are connected to a voltage source. Remove all power and unplug unit before performing any service. Service should only be performed by qualified personnel. Ground the Product This product is grounded through the grounding conductor of the power cord.
www.vxitech.com SUPPORT RESOURCES Support resources for this product are available on the Internet and at VXI Technology customer support centers. VXI Technology World Headquarters VXI Technology, Inc. 2031 Main Street Irvine, CA 92614-6509 Phone: (949) 955-1894 Fax: (949) 955-3041 VXI Technology Cleveland Instrument Division 5425 Warner Road Suite 13 Valley View, OH 44125 Phone: (216) 447-8950 Fax: (216) 447-8951 VXI Technology Lake Stevens Instrument Division VXI Technology, Inc.
VXI Technology, Inc.
www.vxitech.com SECTION 1 INTRODUCTION INTRODUCTION The SVM Series leverages off VXI Technology’s line of high-density modular VXIbus instruments, but are optimized for the VMEbus. All SVM instruments are designed to provide all the features of test instrumentation in other platforms such as GPIB or VXI. These features are achieved in hardware rather than in a driver.
VXI Technology, Inc.
www.vxitech.com The counts stored in memory are 16 bits SIGNED integers. The most significant bit represents the SIGN. Thus, the hex number 0x4000 and the hex number of 0xC000 represent the same signal amplitude but in opposite directions, where 0x4000 represents a positive signal while 0xC000 is a negative signal with the same amplitude. To translate a raw count value into a voltage, multiply the raw count value by the bit weight. The following example shows this conversion for a SVM2608 using the 10.
VXI Technology, Inc. In absence of a Trigger signal, the acquisition can be forced by setting a control bit, the FORCE bit. Forcing an acquisition on a channel only starts acquisition on that channel. Each channel has its own corresponding FORCE bit. Linear Mode In Linear mode, the total number of samples collected (also referred to as Sample Points) is determined by the value programmed into the Sample Points register.
www.vxitech.com FIFO Mode In FIFO mode, the user can retrieve data from the board as acquisition progresses. The memory behaves as a FIFO: data is written into a circular buffer with new data overwriting older data when the buffer is full. A Threshold Flag is available to monitor the status of the buffer and prevent overwriting the data or under-reading it.
VXI Technology, Inc. sets. (See Microprocessor Commands for more details on available commands.) The command is sent to the microprocessor via the Command register. Since there are four independent channels on the board, each of them can take a different command and each of them has its own command register. The result of the microprocessor calculation is returned in the Result register for the corresponding channel. 3 The data stored in the channel memory is raw data.
www.vxitech.
VXI Technology, Inc. PHYSICAL DESCRIPTION A/E P/F CH 4 + CH 4 - HS TRIG CH 5 + CH 5 - The SVM2608 has a protective coating applied to it to ensure that the effects of environmental hazards are minimized. This coating endows the modules with resistance to salt sprays, moisture, dust, sand, and explosive environments, as the polymer coating provides a hermetic seal.
www.vxitech.com FRONT PANEL INTERFACE WIRING Front-panel connector, J101, contains all the instrument signals for the Channels 0 through 3.
VXI Technology, Inc. SVM2608 SPECIFICATIONS GENERAL SPECIFICATIONS NUMBER OF CHANNELS 4 SAMPLING RATE Range Resolution Accuracy 0.59 Samples/s to 100.0 kSamples/s 100 ns 1% INPUT POWER +5 V dc +12 V dc -12 V dc 500 mA 300 mA 300 mA VMEBUS INTERFACE Address mode Data transfer mode A32 D16 or D32 MEMORY 1 MSamples per channel VOLTAGE MEASUREMENT Range Resolution Accuracy ±1.0 V, ±2.0 V, ±5.0 V, ±10.0 V, ±20.0 V, ±50.
www.vxitech.com OPTION 1 - SVM2608-01 NUMBER OF CHANNELS 2 VMEBUS INTERFACE Address Mode Data Transfer Mode A32 D16 or D32 SAMPLING RATE Range Resolution Accuracy 7.15 Samples/s to 20.0 MSamples/s 8.333 ns 1% MEMORY 1 MSamples per channel VOLTAGE MEASUREMENTS Range Resolution Accuracy ±0.5 V, ±1.0 V, ±2.0 V, ±5.0 V, ±10.0 V, ±20.
VXI Technology, Inc.
www.vxitech.com SECTION 2 PREPARATION FOR USE INTRODUCTION When the SVM2608 is unpacked from its shipping carton, the contents should include the following items: (1) SVM2608 4 Channel 100 kSamples/s Analog-to-Digital Converter Module (1) SVM2608 User’s Manual (this manual) All components should be immediately inspected for damage upon receipt of the unit. Installation instructions for the module are discussed in the following pages of this section.
VXI Technology, Inc. SETTING THE BASE ADDRESS The base address of the SVM2608 is determined by using the offset value (OV), set by two rotary switches located on the top edge of the interface card (Figure 2-1), and multiplying it by 224 (or 16,777,216) to get the base address in A32 address space. The switches are labeled with positions 0 through F. The switch located at S3 corresponds to the Most Significant Bit (MSB) and S2 corresponds to the Least Significant Bit (LSB).
www.vxitech.com Example 1 = 1 w/ 9 remaining Divide the decimal value by 16 to get the MSB and the LSB. = 0001 1001 The 1 is the MSB, and the remainder of 9 is the LSB. = 1 9 Convert to hexadecimal. Set the back switch to 1 and the front switch to 9.
VXI Technology, Inc. Example 2 = 12 w/ 8 remaining Divide by 16. = 1100 1000 Convert to MSB and LSB. = C 8 Convert to hexadecimal. Set the back switch to C and the front switch to 8.
www.vxitech.com SECTION 3 PROGRAMMING INTRODUCTION The SVM2608 modules are VMEbus register-based devices for high-speed D16 or D32 data retrieval. Register-based programming is a series of reads and writes directly to the module registers. This eliminates the time for command parsing thus increasing speed. DEVICE MEMORY MAPS Function Offset The function offset helps define where in A32 space a WRITE or READ operation is performed.
VXI Technology, Inc.
www.vxitech.
VXI Technology, Inc.
www.vxitech.com With a variety of systems and bridges that move the data between different bus types (i.e. VME to PCI, VXI to PCI, etc.), in order to assist the user in determining how data is ordered, a known floating point value of 0.12345678901234 is loaded at Power-Up in the Result Register for all channels.
VXI Technology, Inc. The binary values are then converted into a hexadecimal format: Binary 0000 0000 0110 0010 Hexadecimal 0x0062 This determines the data value required for the aforementioned settings. ACCESSING THE REGISTERS With both D16 and D32 data transfer available, the user can write either 16 or 32 bits of data to the registers. To change the settings of the module, it is only necessary to write a 16- or 32-bit integer to the specified register with the new configuration.
www.vxitech.com Reset, Sys Fail Control, Interrupt Levels Register (0x00) — Read & Write Interrupt Level - These bits determine the interrupt service level. D2 – D0 INTLVL2 - 0 111 = Interrupt level 7 110 = Interrupt level 6 101 = Interrupt level 5 100 = Interrupt level 4 011 = Interrupt level 3 010 = Interrupt level 2 001 = Interrupt level 1 000 = No interrupt Force Trigger, Start Register (0x02) — Read & Write High-Speed Trigger Source – These bits select a trigger source for the high-speed channels.
VXI Technology, Inc. Force Trigger, Start Register (0x02) — Read & Write Acquisition Armed - These bits control whether or not the specified channel is to be armed for an acquisition. A channel must remain ARMED for the entire duration of the acquisition process. Clearing an ARM bit will reset the internal state-machines and stop the acquisition.
www.vxitech.com Control Register (0x08, 0x30, 0x58, 0x80, 0xA8, 0xD0) — Read & Write Linear or FIFO Memory Mode - Determines whether the data is captured in Linear (burst) or FIFO (real time) acquisition mode. D10 LINEAR/FIFO D9 - D8 2WIREOHMS/ 4WIREOHMS 0 = Linear mode 1 = FIFO mode Pon state = 0 Function Setting - The digitizer is capable of measuring voltages, resistances in 2-wire mode or resistances in 4-wire mode.
VXI Technology, Inc. Control Register (0x08, 0x30, 0x58, 0x80, 0xA8, 0xD0) — Read & Write D4 FILTER 20 kHz (Channels 0-3)/5 MHz (Channels 4-5) LPF Control – This bit enables/disables the low pass frequency filter for the low-speed channels and high-speed channels, respectively. . Before taking a measurement, allow for at least 5 ms for internal circuits to settle after making changes.
www.vxitech.com Sample Rate, High-Speed (0xAC, 0xD4) — Read & Write D15 – D9 Unused D8 – D0 SAMPRAT24 – 16 These bits are reserved for future use. Sample Interval – These bits set the high speed sample rate. Bit Weight = 8.333 ns/bit Minimum Value = 6 Maximum Value = 224 – 1 Sample Rate, High-Speed (0xAE, 0xD6) — Read & Write Sample Interval – These bits set the high speed sample rate. D15 – D0 SAMPRAT15 – 0 Bit Weight = 8.
VXI Technology, Inc. Trigger Delay (0x1A, 0x42, 0x6A, 0x92, 0xBA, 0xE2) — Read & Write Trigger Delay - The trigger delay value is used to set the time between trigger occurrence and storing of data. D15 – D0 DELAY15 – 0 Minimum Value = 0 Maximum Value = 232 – 1 Timeout (0x1C, 0x44, 0x6C, 0x94, 0xBC, 0xE4) — Read & Write Timeout Select - This sets the resolution of the timeout counter. It will determine how long the device waits between start and trigger events before setting the timeout status bits.
www.vxitech.com Command Register (0x22, 0x4A, 0x72, 0x9A, 0xC2, 0xEA) — Read and Write D15 – D0 CMD15 – 0 Command Register - Writing to this register instructs the microprocessor to perform the specified function. If this command performs a calculation, the data is returned into the corresponding result register. For a detailed description of the commands, refer to the Microprocessor Commands section.
VXI Technology, Inc.
www.vxitech.com MICROPROCESSOR COMMANDS Unless otherwise specified, commands are issued to each channel’s command register. After issuing a command, the user must wait until the command is executed before issuing a new command to the same channel. The module sets the Command Register to all zeros when a command is finished executing. Issuing a new command before a command completes will yield unpredictable results and may place the board into an unknown state.
VXI Technology, Inc.
www.vxitech.com Resistance Measurement – Offset Method The value returned by the resistance measurement offset commands (0x0022 through 0x002D) is calculated using two current values. A voltage is measured when a current (I) is applied to the circuit (VON) as well as when the current is not applied (VOFF).
VXI Technology, Inc. Bit 14 - Measures 128 Ω on the 10 kΩ scale Bit 15 - Measures 81.92 kΩ on the 100 kΩ scale Bit 16 - Measures 81.92 kΩ on the 1 MΩ scale Bits 17 – 31 are not used and read as “0”. For Channels 4-5: Bit 0 - Measures +0.117 V on the 0.5 V scale Bit 1 - Measures -0.117 V on the 0.5 V scale Bit 2 - Measures +0.945 V on the 1 V scale Bit 3 - Measures -0.945 V on the 1 V scale Bit 4 - Measures +0.945 V on the 2 V scale Bit 5 - Measures -0.945 V on the 2 V scale Bit 6 - Measures +0.
www.vxitech.com 0x0016 = 20 V Measurement 0x0017 = 50 V Measurement 0x0018 = 100 V Measurement 0x0019 = Auto Voltage Measurement 0x0021 = 0.
VXI Technology, Inc. WARNING: Calibration commands should only be executed by qualified personnel. If you want to perform your own calibrations please contact factory for more information.
www.vxitech.com 0x1028 Set the V Negative 0.1177 calibration gain value, calibration value. All the calibration commands use the channel’s base address at offset zero (0x000000 for Channel 0, 0x200000 for Channel 1, 0x400000 for Channel 2 and 0x600000 for Channel 3) for communication with the processor. This is where the user places the data it wants the processor to write when it issues a “Set …” command.
VXI Technology, Inc. The aforementioned errors are reported for the following reasons: NO_ERROR ERROR_UNKNOWN_COMMAND ERROR_PRE_GT_SIZE ERROR_RESISTANCE_OVER_RANGE ERROR_UNSTABLE_RESISTANCE ERROR_UNSTABLE_VOLTAGE ERROR_MULTIPLE_TEST_SOURCES ERROR_NONVOL_READ ERROR_NONVOL_WRITE ERROR_NONVOL_DEFAULTED ERROR_FLASH_BURN ERROR_INTERNAL_SOFTWARE ERROR_QUEUE_OVFL 48 There are no errors in the queue. An unknown command was sent to the microprocessor.
www.vxitech.com Diagnostic Commands The following commands in combination with the Self-Test command (see measurement commands section above) help diagnose problems with the board. 0x3000 0x3001 0x3002 0x3003 0x3004 0x3005 0x3006 0x3007 0x3008 0x3009 0x300A 0x300B 0x300C 0x300D 0x300E 0x300F 0x3010 0x3011 0x3012 0x3013 SVM2608 Programming Read the self-test register. Read the self-test relay register. Read the switch register. Read the trigger inputs. Read the calibrated reference value: 0.945 V.
VXI Technology, Inc. FLASH Memory Programming Commands The following commands can be used to change the content of the FLASH memory. The FLASH memory stores the board’s software (executed by the microprocessor) and firmware (what programs the two FPGAs on the board). To prevent accidental writings of the FLASH, a sequence of three commands is necessary to perform a write to it. To change the microprocessor software, the new file that needs to be programmed into FLASH is uploaded at offset address 0x000000.
www.vxitech.com EXAMPLES Example 1: Setting the Channel 2 and 4 Sample Rate to 123 ms (8.13 kHz) The sample rate clock for an individual low-speed channel (Channels 0 – 3) is generated by dividing a 0.1 µs (10 MHz) reference clock, generated by an on-board oscillator, by the value present in the Sample Rate register of the respective channel. For the high-speed channels (Channels 4 – 5), the reference clock is 8.333 ns (120 MHz). 123 ms = 123*10-3 s For Channel 2, divide 123 ms by the 0.
VXI Technology, Inc. Write 0x0D40 @ Base address + 0xC00062 Method 2: Make one 32 bits write. Write 0x00030D40 @ Base address + 0xC00060 Example 3: Setting Channel 2 to Pre-acquire 100,000 Samples The acquisition of samples starts when a trigger point is met or when a trigger is forced by setting the corresponding Force bit. However, samples can be collected before the occurrence of the trigger point. These samples are called Pre-Trigger Points.
www.vxitech.com Write 0x0016E360 @ Base address + 0xC00068 If the Sample Rate register from Example 1 (0x0012C4B0 corresponding to a sample rate of 123 ms) and the Trigger Delay in Example 4 above are set on the SVM2608, the first sample is taken 1,500,000 x 123 ms = 184,500 seconds (51.25 hours!!!) after the trigger event. Example 5: Setting Channel 2 and 4 Timeout Register to Timeout after 2.
VXI Technology, Inc.
www.vxitech.com APPENDIX A APPENDIX A DATA SWAPPING EXAMPLE An example is provided below detailing how data might be swapped in to get a REAL number when the data is read “swapped”. In order to make the code easier to understand, only the portion that shuffles the data is presented here. The VME functions that actually perform the reading of the data are the responsibility of the user.
VXI Technology, Inc.
www.vxitech.com INDEX A A/E LED...........................................................................19 A32 address space.............................................................37 A32 base address ........................................................25, 26 A32 register map...............................................................29 acquisition armed bit.........................................................38 attenuation and gain setting bit .........................................