Measurement Specialties USB-1616HS-2 Example Timer outputs, Timer output frequency examples

Page 34

USB-1616HS-2 User's Guide

Functional Details

Each signal (A, B) can be connected as a single-ended connection with respect to the common digital ground (GND). Both encoders need power from an external power source (typically +5 VDC).

Connect each encoder's power input to the external power source. Connect the return to digital common (GND) on the same source.

Ground (to Digital Common1)

To external power

Counter 0 (CNT0) – To Encoder #1 “A”

To ground

2

Counter 1 (CNT1) – To Encoder #1 “B”

 

 

 

Counter 2 (CNT2) – To Encoder #2 “A”

Counter 3 (CNT3) – To Encoder #2 “B”

1The ground depicted at the left is associated with Digital Common on the USB-1616HS-4.

2The ground depicted at the right is associated with the external power source.

Figure 22. Connections from two encoders to screw terminals on the USB-1616HS-2

Timer outputs

Two 16-bit timer outputs are built into every USB-1616HS-2. Each timer output can generate a different square wave with a programmable frequency in the range of 16 Hz to 1 MHz.

Figure 23. Typical USB-1616HS-2 timer channel

Example: Timer outputs

Timer outputs are programmable square waves. The period of the square wave can be as short as 1 µs or as long as 65535 µs. Refer to the table below for examples of timer output frequencies.

 

 

Timer output frequency examples

 

 

Divisor

Timer output frequency

 

 

1

1 MHz

100

10 kHz

 

 

1000

1 kHz

10000

100 Hz

 

 

 

65535

ƒ

15.259 Hz (in asynchronous write)

 

ƒ

Turns timer off (for setpoint operation).

The two timer outputs can generate different square waves. The timer outputs can be updated asynchronously at any time.

34

Image 34
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 generationDigital triggering Hardware analog triggeringSoftware-based triggering Stop trigger modes Counter inputsPre-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 mode Encoder 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 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