Digital Filtering Example; Change Detection - National Instruments USB-6525 User Manual And Specifications

Full-speed usb 2.0 device that provides eight +/-60 vdc channel-to-channel isolated digital inputs (di), eight 60 vdc/30 v rms channel-to-channel isolated solid-state relay (ssr) outputs, and a 32-bit counter.
Hide thumbs Also See for USB-6525:
Table of Contents

Advertisement

External
Signal
Filter
Clock
Sample Clock
External
Signal
Sampled
Filtered
Signal

Change Detection

Note
Excessive change detections can affect system performance. Use digital filtering to
minimize the effects of noisy input lines.
© National Instruments Corporation

Digital Filtering Example

Figure 5 shows a filter configuration with a t
(t
/2 filter clock).
interval
H
H
L
L
H
H
A
In periods A and B, the filter blocks the glitches because the external signal
does not remain steadily high from one rising edge of the filter clock to the
next. In period C, the filter passes the transition because the external signal
remains steadily high. Depending on when the transition occurs, the filter
may require up to two filter clocks—one full filter interval—to pass a
transition. The figure shows a rising (0 to 1) transition. The same filtering
applies to falling (1 to 0) transitions.
You can program the NI 6525 to send an interrupt when a change occurs on
any input line.
The NI 6525 can monitor changes on selected input lines or on all input
lines. It can monitor for rising edges (0 to 1), falling edges (1 to 0), or both.
When an input change occurs, the NI 6525 generates an interrupt, and the
NI-DAQ driver then notifies the software.
The NI 6525 sends a change detection when any one of the changes occurs,
but it does not report which line changed or if the line was rising or falling.
After a change, you can read the input lines to determine the current line
states. The maximum rate of change detection is determined by the
software response time, which varies from system to system.
L
L
H
H
B
H
H
H
H
C
Figure 5. Digital Filtering Example
7
USB-6525 User Guide and Specifications
filter interval
interval
H

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents