Measurement Specialties USB-1616HS-2 manual Debounce mode comparisons

Page 30

USB-1616HS-2 User's Guide

Functional Details

Figure 15. Debounce module – Trigger before stable mode

The following time periods (T1 through T6) pertain to the above drawing.

ƒT1 – In the illustrated example, the input signal is low for the debounce time (equal to T1); therefore when the input edge arrives at the end of time period T1, it is accepted and the output (of the debounce module) goes high. Note that a period of stability must precede the edge in order for the edge to be accepted.

ƒT2 – During time period T2, the input signal is not stable for a length of time equal to T1 (the debounce time setting for this example.) Therefore, the output stays "high" and does not change state during time period T2.

ƒT3 – During time period T3, the input signal is stable for a time period equal to T1, meeting the debounce requirement. The output is held at the high state. This is the same state as the input.

ƒT4 – At anytime during time period T4, the input can change state. When this happens, the output will also change state. At the end of time period T4, the input changes state, going low, and the output follows this action [by going low].

ƒT5 – During time period T5, the input signal again has disturbances that cause the input to not meet the debounce time requirement. The output does not change state.

ƒT6 – After time period T6, the input signal has been stable for the debounce time and therefore any edge on the input after time period T6 is immediately reflected in the output of the debounce module.

Debounce mode comparisons

Figure 16 shows how the two modes interpret the same input signal, which exhibits glitches. Notice that the trigger before stable mode recognizes more glitches than the trigger after stable mode. Use the bypass option to achieve maximum glitch recognition.

Figure 16. Example of two debounce modes interpreting the same signal

Debounce times should be set according to the amount of instability expected in the input signal. Setting a debounce time that is too short may result in unwanted glitches clocking the counter. Setting a debounce time too long may result in an input signal being rejected entirely. Some experimentation may be required to find the appropriate debounce time for a particular application.

To see the effects of different debounce time settings, simply view the analog waveform along with the counter output. This can be done by connecting the source to an analog input.

30

Image 30
Contents Page USB-1616HS-2 Management committed to your satisfaction Trademark and Copyright Information Table of Contents USB-1616HS-2 Users Guide What you will learn from this users guide Where to find more informationAbout this Users Guide Conventions used in this users guideIntroducing the USB-1616HS-2 Overview USB-1616HS-2 featuresSoftware features ChapterWhat comes with your USB-1616HS-2 shipment? Installing the USB-1616HS-2TR-2U power supply and CA-1* line cord HardwareAdditional documentation Installing the softwareUnpacking the USB-1616HS-2 CA-96A expansion cableInstalling the hardware Connectors, cables main I/O connector Configuring the hardwareConnecting the board for I/O operations 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 diagramSettling time Analog inputAnalog input scanning 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 Shielding Tips for making accurate temperature measurementsThermocouple input AveragingAnalog output Digital input scanning Digital I/OTriggering Digital outputs and pattern generationHardware analog triggering Digital triggeringSoftware-based triggering Counter inputs Stop trigger modesPre-triggering and post-triggering modes Mapped channels Totalize modeTips for making high-speed counter measurements 1 MHz 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 accuracyTimer outputs Example 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 counterFIRSTPORTC, DAC, or timer update latency Controlling analog, digital, and timer outputsDetection setpoint details Firstportc Calibrating the USB-1616HS-2 Analog input accuracy specifications SpecificationsAnalog input specifications AccuracyThermocouples Analog output specificationsAnalog outputs Thermocouple TC types and accuracy NoteDigital input/output specifications Digital input/outputCounters Counter specificationsInput sequencer specifications Input sequencerPower consumption specifications Note Power consumptionFrequency/pulse generator specifications Frequency/pulse generatorsSignal I/O connectors and pin out External powerUSB specifications 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