USB-6509 Digital Filtering
- Updated2024-04-16
- 2 minute(s) read
USB-6509 Digital Filtering
Use the digital filter option available on the USB-6509 input lines to eliminate glitches on input data. You can use the digital filtering with change detection to reduce the number of changes to examine and process.
You can configure the digital input channels to pass through a digital filter, and control the timing interval the filter uses. The filter blocks pulses that are shorter than half of the specified timing interval and passes pulses that are longer than the specified interval. Intermediate-length pulses—pulses longer than half of the interval but less than the interval—may or may not pass the filter.
The following table lists the pulse widths guaranteed to be passed and blocked.
| Filter Setting | Pulse Width Guaranteed to Pass Filter | Pulse Width Guaranteed to Not Pass Filter |
|---|---|---|
| 400 ns ≤ tinterval ≤ 209.7152 ms | tinterval | tinterval /2 |
You can enable digital filtering on as many input lines as necessary for your application. All filtered lines share the same timing interval, which ranges from 400 ns to 209.7152 ms.
Internally, the filter uses the sample clock and the filter clock.
Digital Filtering Example
The following figure shows a filter configuration with a 208 ns filter interval (104 ns filter clock).
- 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.
- 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.
Related Information
- USB-6509 Change Detection
Program the USB-6509 to send an interrupt when a change occurs on any input line.