background image

USB-1808X-OEM User's Guide 

Functional Details 

13 

Counter input 

Counter inputs can be read asynchronously under program control, or synchronously as part of a digital scan 

group.  
The 

CTR0

 and 

CTR1

 pins are 32-bit general-purpose counters that can accept frequency inputs up to 50 MHz.  

The USB-1808X-OEM supports the following counter input modes: 

 

Totalize  

 

Period measurement 

 

Pulse-width measurement 

Counter input modes are programmable with software. Each mode supports additional counter operation 

options.  
Typically, when data is acquired with no counter operation options set, the count of each counter channel is set 

to 0 and latched at the beginning of the acquisition.  
When counter options are set the counters can concurrently monitor time periods, frequencies, pulses, and other 

event-driven incremental occurrences directly from pulse-generators, limit switches, proximity switches, and 

magnetic pick-ups. 
Counter input operations can be paced by the internal clock or by an external clock (

ICLKI

 – refer to 

Clock I/O

 

on page 15). They can be initiated by a digital trigger (

Digital triggering

 on page 15) or a pattern trigger 

(

Pattern triggering

 on page 15). 

Refer to 

Synchronous I/O – mixing analog, digital, and counter scanning

 on page 15 for information on running 

counter input scans at the same time as other subsystem scans. 

Totalize counter mode 

The USB-1808X-OEM can be used as a high-speed pulse counter for general counting applications. The 

internal counter increments when the TTL levels transition from low to high or from high to low. 
Each option supported in Totalize mode is explained in following table: 

Totalize counter mode options 

Counter option  Description 

Clear on read 

The counter is cleared after each read (synchronous or asynchronous). The value of the counter 

before it was cleared is latched and returned. 

Range limit 

When counting up: The counter rolls over to MINLIMIT (or stops if Non-recycle is set) when the 

maximum count (specified by the MAXLIMIT value) is reached.  

When counting down: The counter counts down to MINLIMIT and then rolls over to MAXLIMIT 

(or stops if Non-recycle is set).  

Non-recycle 

The counter stops if a count overflow or underflow occurs (or, if Range limit is set, the MAXLIMIT 

or MINLIMIT value is reached). Counting resumes if direction is reversed or the counter is reloaded. 

Period measurement mode 

Use period mode to measure the period of a signal at a counter channel's input. You can measure x1, x10, x100 

or x1000 periods for 32-bit values. Four resolutions are available — 20 ns, 200 ns, 2000 ns, or 20,000 ns. All 

period measurement mode options are software-selectable. The 100 MHz system clock is used as the timing 

source. Periods from sub-microsecond to many seconds can be measured. 

Pulse width measurement mode 

Use pulse width mode to measure the time from the rising edge to the falling edge, or vice versa, on a signal on 

a counter input. Four resolutions are available — 20 ns, 200 ns, 2000 ns, or 20,000 ns. All pulse width 

measurement mode options are software selectable. The 100 MHz system clock is used as the timing source. 

Pulse widths from sub-microsecond to many seconds can be measured. 

Summary of Contents for USB-1808X-OEM

Page 1: ...USB 1808X OEM Eight Channel Simultaneous Sampling Multifunction Device User s Guide May 2019 Rev 4 Measurement Computing Corporation...

Page 2: ...ed in any form by any means electronic mechanical by photocopying recording or otherwise without the prior written permission of Measurement Computing Corporation Notice Measurement Computing Corporat...

Page 3: ...ents 8 USB connector 8 Header connectors 9 LEDs 10 Analog input 10 Channel Gain queue 11 Analog output 11 Digital I O 11 Digital input scanning 11 Pull up down configuration 12 Counter input 13 Totali...

Page 4: ...Digital input output 21 Counter 22 Quadrature inputs 22 Timer 23 External clock input output 23 External trigger 24 Pattern trigger 24 Memory 24 Power 24 USB 25 Environmental 25 Mechanical 25 Header...

Page 5: ...ed for the names of objects on a screen such as buttons text boxes and checkboxes Italic text is used for the names of manuals and help topic titles and to emphasize a word or phrase Where to find mor...

Page 6: ...high speed general purpose counters Two quadrature encoder inputs Two timer outputs One external digital trigger for data acquisition and one external digital trigger for data generation Two external...

Page 7: ...puter Connect the other end of the USB cable to the USB connector on the device No external power is required When connected for the first time a Found New Hardware dialog opens when the operating sys...

Page 8: ...ctors 2 Pull up down jumper LED indicators 2 USB connector Figure 2 USB 1808X OEM components 1 Header connector pins 1 to 28 4 LED indicators 2 2 Header connector pins 29 to 56 5 USB connector 3 Pull...

Page 9: ...CH1H AI channel 1 HI 32 CH6L AI channel 6 LO 5 CH1L AI channel 1 LO 33 CH6H AI channel 6 HI 6 AGND Analog ground 34 AGND Analog ground 7 CH2H AI channel 2 HI 35 CH5L AI channel 5 LO 8 CH2L AI channel...

Page 10: ...ENC1A Encoder 1 Input A 54 ENC0A Encoder 0 Input A 27 ENC1B Encoder 1 Input B 55 ENC0B Encoder 0 Input B 28 ENC1Z Encoder 1 Input Z 56 ENC0Z Encoder 0 Input Z LEDs The USB 1808X OEM has two LED indica...

Page 11: ...lock or by an external clock OCLKI refer to Clock I O on page 15 They can be initiated by a digital trigger Digital triggering on page 15 or a pattern trigger Pattern triggering on page 15 Refer to Sy...

Page 12: ...ounded object to eliminate any stored static charge 3 Remove the rubber fee from the bottom of the device and the four screws using a 1 Philips head screwdriver 4 Hold both the top and bottom sections...

Page 13: ...ements when the TTL levels transition from low to high or from high to low Each option supported in Totalize mode is explained in following table Totalize counter mode options Counter option Descripti...

Page 14: ...encoder option is explained in following table Quadrature encoder options Encoder option Description Count mode Select X1 X2 or X4 Count modes provide different levels of accuracy with respect to the...

Page 15: ...clock is available at ICLKO The USB 1808X OEM provides one external clock input OCLKI and one clock output OCLKO for output operations Connect an external clock signal to OCLKI The pacer clock is avai...

Page 16: ...The result of this operation is that only bit 3 is included in the pattern to detect Figure 8 Trigger mask with some bits excluded Ground The analog ground AGND pins provide a common ground for all an...

Page 17: ...USB 1808X OEM User s Guide Functional Details 17 Mechanical drawings Figure 9 USB 1808X OEM circuit board dimensions...

Page 18: ...nce 1 G power on 1000 power off Input bias current 50 pA Input bandwidth All input ranges small signal 3 dB 2 0 MHz Input capacitance 50 pf Common mode voltage range 10 V range 10 1 V 5 V range 10 1 V...

Page 19: ...ion Specification 10 V Signal to noise ratio SNR 94 dB Signal to noise and distortion ratio SINAD 94 dB Total harmonic distortion THD 108 dB Spurious free dynamic range SFDR 112 dB Effective number of...

Page 20: ...source OTRIG see External trigger on page 24 Digital pattern detection see Pattern trigger on page 24 Scan clock source Internal output scan clock or external output scan clock OCLKI pin Output updat...

Page 21: ...o 8 000 port reads writes or single bit reads writes per second typ system dependent Digital I O transfer rate synchronous 0 023 Hz to 200 kHz input 500 kHz output based on the internal clock speed of...

Page 22: ...w voltage 1 5 V max 0 5 V min Schmitt trigger hysteresis 0 4 V min 1 2 V max Input frequency 50 MHz max Schmitt trigger hysteresis 0 76 V typ 0 4 V min 1 2 V max Input high voltage threshold 1 74 V ty...

Page 23: ...k I O specifications Parameter Specification Terminal names ICLKI ICLKO OCLKI OCLKO Terminal types xCLKI Input active on rising edge xCLKO Output power on default is 0 V active on rising edge Terminal...

Page 24: ...qual pattern Trigger stability Digital port must be stable for 50 ns to be recognized as a pattern Trigger bit width Up to 4 adjustable through bitmask Trigger latency Up to 1 scan period Memory Table...

Page 25: ...tal Table 20 Environmental specifications Parameter Specification Operating temperature range 0 C to 55 C max Storage temperature range 40 C to 85 C max Humidity 0 to 90 non condensing max Mechanical...

Page 26: ...channel 4 HI 12 AGND Analog ground 40 AGND Analog ground 13 VO 5V power output 41 AOUT0 AO channel 0 14 AGND Analog ground 42 AOUT1 AO channel 1 15 GND Digital Ground 43 AGND Analog ground 16 TMR0 Ti...

Page 27: ...2 AGND Analog ground 40 AGND Analog ground 13 VO 5V power output 41 AOUT0 AO channel 0 14 AGND Analog ground 42 AOUT1 AO channel 1 15 GND Digital Ground 43 AGND Analog ground 16 TMR0 Timer 0 output 44...

Page 28: ...cable European Directives Electromagnetic Compatibility EMC Directive 2014 30 EU Low Voltage Directive 2014 35 EU RoHS Directive 2011 65 EU Conformity is assessed in accordance to the following standa...

Page 29: ...ion NI Hungary Kft 10 Commerce Way H 4031 Debrecen H tar t 1 A Hungary Norton Massachusetts 02766 Phone 36 52 515400 508 946 5100 Fax 36 52 515414 Fax 508 946 9500 http hungary ni com debrecen E mail...

Reviews: