Measurement Specialties USB-1616HS-2 manual Tips for making high-speed counter measurements 1 MHz

Page 27

USB-1616HS-2 User's Guide

Functional Details

When reading synchronously, all counters are set to zero at the start of an acquisition. When reading asynchronously, counters may be cleared on each read, count up continually, or count until the 16-bit or 32-bit limit has been reached. See counter mode explanations below.

Figure 12. Typical USB-1616HS-2 counter channel

Tips for making high-speed counter measurements (> 1 MHz)

ƒUse coax or twisted-pair wire. Connect one side to Digital Common.

ƒIf the frequency source is tolerant, parallel-terminate the coax or twisted-pair with a 50 Ω or 100 Ω resistor at the terminal block.

ƒThe amplitude of the driving waveform should be as high as possible without violating the over-voltage specification.

ƒTo ensure adequate switching, waveforms should swing at least 0 V to 5 V and have a high slew rate.

Mapped channels

A mapped channel is one of four counter input signals that can get multiplexed into a counter module. The mapped channel can participate with the counter's input signal by gating the counter, latching the counter, and so on. The four possible choices for the mapped channel are the four counter input signals (post-debounce).

A mapped channel can be used to:

ƒgate the counter

ƒdecrement the counter

ƒlatch the current count to the count register

Usually, all counter outputs are latched at the beginning of each scan within the acquisition. However, you can use a second mapped channel to latch the counter output.

Counter modes

A counter can be asynchronously read with or without clear on read. The asynchronous read-signals strobe when the lower 16-bits of the counter are read by software. The software can read the counter's high 16-bits some time later after reading the lower 16-bits. The full 32-bit result reflects the timing of the first asynchronous read strobe.

Totalize mode

The Totalize mode allows basic use of a 32-bit counter. While in this mode, the channel's input can only increment the counter upward. When used as a 16-bit counter (counter low), one channel can be scanned at the 12 MHz rate. When used as a 32-bit counter (counter high), two sample times are used to return the full 32-bit result. Therefore a 32-bit counter can only be sampled at a 6 MHz maximum rate. If you only want the upper 16 bits of a 32-bit counter, then you can acquire that upper word at the 12 MHz rate.

The counter counts up and does not clear on every new sample. However, it does clear at the start of a new scan command.

27

Image 27
Contents Page USB-1616HS-2 Management committed to your satisfaction Trademark and Copyright Information Table of Contents USB-1616HS-2 Users Guide Conventions used in this users guide Where to find more informationAbout this Users Guide What you will learn from this users guideChapter Overview USB-1616HS-2 featuresSoftware features Introducing the USB-1616HS-2Hardware Installing the USB-1616HS-2TR-2U power supply and CA-1* line cord What comes with your USB-1616HS-2 shipment?CA-96A expansion cable Installing the softwareUnpacking the USB-1616HS-2 Additional documentationInstalling the hardware Information on signal connections Configuring the hardwareConnecting the board for I/O operations Connectors, cables main I/O connectorUSB-1616HS-2 screw terminal pin out single-ended connections Screw terminal pin outsDSUB25 expansion connector pin out DSUB25F expansion connectorCA-96A expansion cable CablingUSB-1616HS-2 components Functional DetailsUSB-1616HS-2 components rear view External power connectorUSB-1616HS-2 functional block diagram USB-1616HS-2 block diagramExample Analog channel scanning of voltage inputs Analog inputAnalog input scanning Settling timeAnalog and digital scanning, once per scan mode example Example Analog and digital scanning, once per scan modeAnalog and digital scanning, once per scan mode example Averaging Tips for making accurate temperature measurementsThermocouple input ShieldingAnalog output Digital outputs and pattern generation Digital I/O Triggering Digital input scanningHardware analog triggering Digital triggeringSoftware-based triggering Counter inputs Stop trigger modesPre-triggering and post-triggering modes Counter modes Totalize modeTips for making high-speed counter measurements 1 MHz Mapped channelsDebounce modes Trigger before stable mode Trigger after stable modeDebounce module Trigger before stable mode Debounce mode comparisonsOptimal debounce time for trigger before stable mode Encoder modeRepresentation of rotary shaft quadrature encoder Maximizing encoder accuracy Connecting the USB-1616HS-2 to an encoderTimer outputs Example Timer outputsTimer output frequency examples Detection setpoint overview Using multiple USB-1616HS-2s per PCCriteria input signal is equal to Action driven by condition Using the setpoint status register Setpoint configurationExamples of control outputs Detecting on analog input, DAC, and Firstportc updatesAnalog inputs with setpoints update on True and False Detection on an analog input, timer output updatesTimer output update on True and False Using the hysteresis functionDetecting setpoints on a totalizing counter Using multiple inputs to control one DAC outputFIRSTPORTC, DAC, or timer update latency Controlling analog, digital, and timer outputsDetection setpoint details Firstportc Calibrating the USB-1616HS-2 Accuracy SpecificationsAnalog input specifications Analog input accuracy specificationsThermocouple TC types and accuracy Note Analog output specificationsAnalog outputs ThermocouplesDigital input/output Digital input/output specificationsInput sequencer Counter specificationsInput sequencer specifications CountersFrequency/pulse generators Power consumptionFrequency/pulse generator specifications Power consumption specifications NoteEnvironmental External powerUSB specifications Signal I/O connectors and pin outUSB-1616HS-2 screw terminal pin out single-ended connections USB-1616HS-2 screw terminal pin out differential connections USA Declaration of ConformityMailinfo@mccdaq.com