Measurement Specialties USB-1616HS-2 manual Trigger after stable mode, Trigger before stable mode

Page 29

USB-1616HS-2 User's Guide

Functional Details

There are 16 different debounce times. In either debounce mode, the debounce time selected determines how fast the signal can change and still be recognized.

The two debounce modes are trigger after stable and trigger before stable. A discussion of the two modes follows.

Figure 13. Debounce model block diagram

Trigger after stable mode

In the trigger after stable mode, the output of the debounce module does not change state until a period of stability has been achieved. This means that the input has an edge, and then must be stable for a period of time equal to the debounce time.

Figure 14. Debounce module – trigger after stable mode

The following time periods (T1 through T5) pertain to Figure 14. In trigger after stable mode, the input signal to the debounce module is required to have a period of stability after an incoming edge, in order for that edge to be accepted (passed through to the counter module.) The debounce time for this example is equal to T2 and T5.

ƒT1 – In the example above, the input signal goes high at the beginning of time period T1, but never stays high for a period of time equal to the debounce time setting (equal to T2 for this example.)

ƒT2 – At the end of time period T2, the input signal has transitioned high and stayed there for the required amount of time—therefore the output transitions high. If the input signal does not stabilize in the high state long enough, no transition would have appeared on the output and the entire disturbance on the input would have been rejected.

ƒT3 – During time period T3, the input signal remained steady. No change in output is seen.

ƒT4 – During time period T4, the input signal has more disturbances and does not stabilize in any state long enough. No change in the output is seen.

ƒT5 – At the end of time period T5, the input signal has transitioned low and stayed there for the required amount of time—therefore the output goes low.

Trigger before stable mode

In the trigger before stable mode, the output of the debounce module immediately changes state, but will not change state again until a period of stability has passed. For this reason the mode can be used to detect glitches.

29

Image 29
Contents Page USB-1616HS-2 Management committed to your satisfaction Trademark and Copyright Information Table of Contents USB-1616HS-2 Users Guide About this Users Guide Where to find more informationWhat you will learn from this users guide Conventions used in this users guideSoftware features Overview USB-1616HS-2 featuresIntroducing the USB-1616HS-2 ChapterTR-2U power supply and CA-1* line cord Installing the USB-1616HS-2What comes with your USB-1616HS-2 shipment? HardwareUnpacking the USB-1616HS-2 Installing the softwareAdditional documentation CA-96A expansion cableInstalling the hardware Connecting the board for I/O operations Configuring the hardwareConnectors, cables main I/O connector Information on signal connectionsUSB-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 diagramAnalog input scanning Analog inputSettling time Example Analog channel scanning of voltage inputsAnalog 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 Thermocouple input Tips for making accurate temperature measurementsShielding AveragingAnalog output Triggering Digital I/ODigital input scanning Digital outputs and pattern generationSoftware-based triggering Hardware analog triggeringDigital triggering Pre-triggering and post-triggering modes Counter inputsStop trigger modes Tips for making high-speed counter measurements 1 MHz Totalize modeMapped channels Counter modesDebounce 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 output frequency examples Timer outputsExample Timer outputs 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 outputDetection setpoint details FIRSTPORTC, DAC, or timer update latencyControlling analog, digital, and timer outputs Firstportc Calibrating the USB-1616HS-2 Analog input specifications SpecificationsAnalog input accuracy specifications AccuracyAnalog outputs Analog output specificationsThermocouples Thermocouple TC types and accuracy NoteDigital input/output Digital input/output specificationsInput sequencer specifications Counter specificationsCounters Input sequencerFrequency/pulse generator specifications Power consumptionPower consumption specifications Note Frequency/pulse generatorsUSB specifications External powerSignal 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 USA Declaration of ConformityMailinfo@mccdaq.com