Measurement Specialties USB-1616HS-2 manual Debounce modes

Page 28

USB-1616HS-2 User's Guide

Functional Details

The counter rolls over on the 16-bit (counter low) boundary, or on the 32-bit (counter high) boundary.

Clear on read mode

The counter counts up and is cleared after each read. By default, the counter counts up and only clears the counter at the start of a new scan command. The final value of the counter—the value just before it was cleared—is latched and returned to the USB-1616HS-2.

Clear on read mode is only available if the counter is in asynchronous mode the. The counter's lower 16-bit value should be read first. This will latch the full 32-bit result and clear the counter. The upper 16-bit value can be read after the lower 16-bit value.

Stop at the top mode

The counter stops at the top of its count. The top of the count is FFFF hex (65,535) for the 16-bit mode, and FFFFFFFF hex (4,294,967,295) for the 32-bit mode.

32-bit or 16-bit

Sets the counter type to either 16-bitsor 32-bits. The type of counter only matters if the counter is using the stop at the top mode—otherwise, this option is ignored.

Latch on map

Sets the signal on the mapped counter input to latch the count.

By default, the start of scan signal—a signal internal to the USB-1616HS-2 that pulses once every scan period to indicate the start of a scan group—latches the count so that the count is updated each time a scan is started.

Gating "on" mode

Sets the gating option to "on" for the mapped channel, enabling the mapped channel to gate the counter.

Any counter can be gated by the mapped channel. When the mapped channel is high, the counter is enabled. When the mapped channel is low, the counter is disabled (but holds the count value). The mapped channel can be any counter input channel other than the counter being gated.

Decrement "on" mode

Sets the counter decrement option to "on" for the mapped channel. The input channel for the counter increments the counter, and you can use the mapped channel to decrement the counter.

Debounce modes

Each channel's output can be debounced with 16 programmable debounce times from 500 ns to 25.5 ms. The debounce circuitry eliminates switch-induced transients typically associated with electro-mechanical devices including relays, proximity switches, and encoders.

There are two debounce modes, as well as a debounce bypass, as shown in Figure 13. In addition, the signal from the buffer can be inverted before it enters the debounce circuitry. The inverter is used to make the input rising-edge or falling-edge sensitive.

Edge selection is available with or without debounce. In this case the debounce time setting is ignored and the input signal goes straight from the inverter or inverter bypass to the counter module.

28

Image 28
Contents Page USB-1616HS-2 Management committed to your satisfaction Trademark and Copyright Information Table of Contents USB-1616HS-2 Users Guide Where to find more information About this Users GuideWhat you will learn from this users guide Conventions used in this users guideOverview USB-1616HS-2 features Software featuresIntroducing the USB-1616HS-2 ChapterInstalling the USB-1616HS-2 TR-2U power supply and CA-1* line cordWhat comes with your USB-1616HS-2 shipment? HardwareInstalling the software Unpacking the USB-1616HS-2Additional documentation CA-96A expansion cableInstalling the hardware Configuring the hardware Connecting the board for I/O operationsConnectors, cables main I/O connector Information on signal connectionsScrew terminal pin outs USB-1616HS-2 screw terminal pin out single-ended connectionsDSUB25F expansion connector DSUB25 expansion connector pin outCabling CA-96A expansion cableFunctional Details USB-1616HS-2 componentsExternal power connector USB-1616HS-2 components rear viewUSB-1616HS-2 block diagram USB-1616HS-2 functional block diagramAnalog input Analog input scanningSettling time Example Analog channel scanning of voltage inputsExample Analog and digital scanning, once per scan mode Analog and digital scanning, once per scan mode exampleAnalog and digital scanning, once per scan mode example Tips for making accurate temperature measurements Thermocouple inputShielding AveragingAnalog output Digital I/O TriggeringDigital input scanning Digital outputs and pattern generationDigital triggering Hardware analog triggeringSoftware-based triggering Stop trigger modes Counter inputsPre-triggering and post-triggering modes Totalize mode Tips for making high-speed counter measurements 1 MHzMapped channels Counter modesDebounce modes Trigger after stable mode Trigger before stable modeDebounce mode comparisons Debounce module Trigger before stable modeEncoder mode Optimal debounce time for trigger before stable modeRepresentation of rotary shaft quadrature encoder Connecting the USB-1616HS-2 to an encoder Maximizing encoder accuracyExample Timer outputs Timer outputsTimer output frequency examples Using multiple USB-1616HS-2s per PC Detection setpoint overviewCriteria input signal is equal to Action driven by condition Setpoint configuration Using the setpoint status registerDetecting on analog input, DAC, and Firstportc updates Examples of control outputsDetection on an analog input, timer output updates Analog inputs with setpoints update on True and FalseUsing the hysteresis function Timer output update on True and FalseUsing multiple inputs to control one DAC output Detecting setpoints on a totalizing counterControlling analog, digital, and timer outputs FIRSTPORTC, DAC, or timer update latencyDetection setpoint details Firstportc Calibrating the USB-1616HS-2 Specifications Analog input specificationsAnalog input accuracy specifications AccuracyAnalog output specifications Analog outputsThermocouples Thermocouple TC types and accuracy NoteDigital input/output specifications Digital input/outputCounter specifications Input sequencer specificationsCounters Input sequencerPower consumption Frequency/pulse generator specificationsPower consumption specifications Note Frequency/pulse generatorsExternal power USB specificationsSignal I/O connectors and pin out EnvironmentalUSB-1616HS-2 screw terminal pin out single-ended connections USB-1616HS-2 screw terminal pin out differential connections Declaration of Conformity USAMailinfo@mccdaq.com