This user guide describes how to use the National Instruments USB-6525
data acquisition (DAQ) device.
Introduction
The NI USB-6525 is a full-speed USB 2.0 device that provides
eight ±60 VDC channel-to-channel isolated digital inputs (DI),
eight 60 VDC/30 V
outputs, and a 32-bit counter.
Software support for the USB-6525 for Windows 2000/XP is provided by
NI-DAQmx.
The NI-DAQmx CD contains example programs that you can use to get
started programming with the USB-6525. Refer to the NI-DAQmx for USB Devices Getting Started Guide, that shipped with your device and is also
accessible from Start»All Programs»National Instruments»NI-DAQ
for more information.
NoteFor information about non-Windows operating system support, refer to ni.com/
info
and enter rddqld.
Hardware
The block diagram in Figure 3 shows key functional components of the
USB-6525.
Figure 2. USB-6525 Back View
Vbus
USB
Full-Speed USB Interface
USB-6525 User Guide and Specifications2ni.com
USB Microcontroller
Figure 3. USB-6525 Block Diagram
P0
P1
SSRs
Current-
Limiting
Isolated
Inputs
P0.<0..7>A/B
P1.<0..7>+/–
Digital I/O Terminal Block
Page 4
Refer to the Safety Guidelines section of this document for important safety
information.
Setting Up Hardware
Complete the following steps to set up the hardware:
1.Install combicon screw terminal blocks by inserting them into the
combicon jacks.
NoteThe USB-6525 kit ships with signal labels. You can apply the signal labels on the
screw terminal blocks for easy signal identification.
2.Refer to Table 1 and Figure 4 for label orientation and affix provided
signal labels to the screw terminal blocks. Insert the screw terminal
blocks into their respective matching combicon jacks. Refer to
Figure 4 for more information about signal label orientation.
1
2
3
4
1 Overlay Label with Pin Orientation Guides
2 Combicon Jack
3
3 Screw Terminal Blocks
4 Signal Labels
4
3.Connect the wiring to the appropriate screw terminals.
The USB-6525 device ships with two detachable terminal blocks for digital
signals. Each individual terminal accepts a wire gauge between
16 AWG–28 AWG.
Table 1. Digital Terminal Assignments
ModuleTerminalSignalModuleTerminalSignal
1P0.0A17P1.0+
2P0.0B18P1.0–
3P0.1A19P1.1+
4P0.1B20P1.1–
5P0.2A21P1.2+
6P0.2B22P1.2–
7P0.3A23P1.3+
8P0.3B24P1.3–
9P0.4A25P1.4+
10P0.4B26P1.4–
11P0.5A27P1.5+
12P0.5B28P1.5–
13P0.6A29P1.6+
14P0.6B30P1.6–
15P0.7A31P1.7+/PFI 0+
16P0.7B32P1.7–/PFI 0–
USB-6525 User Guide and Specifications4ni.com
Page 6
Signal Descriptions
Signal NameDirectionDescription
Table 2 describes the signals available on the I/O connectors.
Table 2. Signal Descriptions
P0.<0..7>A/BOutputSolid-state relay 60 VDC/30 V
P1.<0..6>+/–Input±60 VDC digital input.
P1.<0..6>+ corresponds to the positive input terminal.
P1.<0..6>– corresponds to the negative input terminal.
P1.7+/– or PFI 0+/–InputThis channel is configurable as either a digital input or
an event counter.
Digital Input Signal—±60 VDC digital input.
P1.7+ corresponds to the positive input terminal.
P1.7– corresponds to the negative input terminal.
CTR—As a counter, this signal can be used as an event
counter input source.
PFI 0+ corresponds to the positive counter terminal.
PFI 0– corresponds to the negative counter terminal.
(42.4 Vpk) output
rms
Features
Digital Filtering
The NI 6525 features digital filtering, change detection, programmable
power-up output states, and a watchdog timer.
Use the digital filter option available on the NI 6525 input lines to eliminate
glitches on input data. When used with change detection, filtering can also
reduce the number of changes to examine and process.
You can configure the digital input channels to pass through a digital filter,
and you can program the filter interval the filter uses. The filter blocks
pulses that are shorter than half of the specified filter 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 filter operates on the inputs from the optocouplers. The optocouplers
turn on faster than they turn off, passing rising edges faster than falling
edges. The optocouplers can therefore subtract up to 150 μs from a low
pulse.
Table 3 lists the pulse widths guaranteed to be passed and blocked.
Table 3. NI 6525 Digital Filtering
Pulse Width PassedPulse Width Blocked
Filter Interval
t
interval
Low PulseHigh PulseLow PulseHigh Pulse
t
+ 150 μst
interval
t
interval
/2(t
interval
interval
/2) – 150 μs
You can enable filtering on as many input lines as is necessary for your
application. All filtered lines share the same timing interval, which ranges
from 120 μs to 2600 ms.
Internally, the filter uses two clocks: the sample clock and the filter clock.
1
The sample clock has a 40 μs period
. The filter clock is generated by a
counter and has a period equal to one half of the specified timing interval.
The input signal is sampled on each rising edge of the sample clock, which
1
is every 40 μs
. A change in the input signal is recognized only if it
maintains its new state for at least two consecutive rising edges of the filter
clock.
The filter clock is programmable and allows you to control how long a
pulse must last to be recognized. The sample clock provides a fast sample
rate to ensure that input pulses remain constant between filter clocks.
1
The accuracy of the sample clock is ±1.5%.
USB-6525 User Guide and Specifications6ni.com
Page 8
Digital Filtering Example
HHHHH
HLLHH
HLLHH
A
B
C
Sample Clock
External
Signal
Sampled
Filtered
Signal
External
Signal
Filter
Clock
Figure 5 shows a filter configuration with a t
(t
/2 filter clock).
interval
filter interval
interval
Figure 5. Digital Filtering Example
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.
Change Detection
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.
NoteExcessive change detections can affect system performance. Use digital filtering to
minimize the effects of noisy input lines.
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.
An overflow bit indicates that an additional rising or falling edge has been
detected before the software could process the previous change.
Refer to the software documentation for information about how to set up
and implement the change detection.
Change Detection Example
Table 4 shows a change detection example for six bits of one port.
Table 4. Change Detection Example
Bit
76543210
Changes to detect——
Enable rising-edge
detection
Enable falling-edge
detection
yesyesyesyesnonoyesno
yesyesyesyesnononoyes
This example assumes the following line connections:
•Bits 7, 6, 5, and 4 are connected to data lines from a four-bit TTL
output device. The NI 6525 detects any change in the input data so you
can read the new data value.
•Bit 1 is connected to a limit sensor. The NI 6525 detects rising edges
on the sensor, which correspond to over-limit conditions.
•Bit 0 is connected to a switch. The software can react to any switch
closure, which is represented by a falling edge. If the switch closure is
noisy, enable digital filtering for this line.
In this example, the NI 6525 reports rising edges only on bit 1, falling edges
only on bit 0, and rising and falling edges on bits 7, 6, 5, and 4. The NI 6525
reports no changes for bits 3 and 2. After receiving notification of a change,
you can read the port to determine the current values of all eight lines. You
cannot read the state of any lines that are configured for change detection
until the change detection interrupt occurs.
USB-6525 User Guide and Specifications8ni.com
Page 10
Programmable Power-Up Output States
The default power-up state of the digital output lines is logic low, which
opens the solid-state relays. The lines on output ports are user-configurable
for logic high (closed relay) or logic low (open relay). User-configurable
power-up states are useful for ensuring that the NI 6525 powers up in a
known state.
To use MAX (recommended) to program the power-up states, select
the device and click the Properties button. Refer to the software
documentation for information about how to program the power-up states
using NI-DAQ with LabVIEW or other National Instruments application
development environments (ADEs).
Watchdog Timer
The watchdog timer is a software configurable feature used to set critical
outputs to safe states in the event of a software failure, a system crash, or
any other loss of communication between the application and the NI 6525.
When the watchdog timer is enabled, if the NI 6525 does not receive a
watchdog reset software command within the time specified for the
watchdog timer, the outputs go to a user-defined safe state and remain in
that state until the watchdog timer is disarmed by the application and new
values are written, the NI 6525 is reset, or the computer is restarted. The
expiration signal that indicates an expired watchdog will continue to assert
until the watchdog is disarmed. After the watchdog timer expires, the
NI 6525 ignores any writes until the watchdog timer is disarmed.
You can set the watchdog timer timeout period to specify the amount of
time that must elapse before the watchdog timer expires. The counter on the
watchdog timer is configurable up to (2
Digital I/O
USB-6525 has eight channel-to-channel optically isolated inputs,
P1.<0..7>, and eight channel-to-channel optically isolated solid-state relay
outputs, P0.<0..7>. P1.7/PFI 0 can also function as a 32-bit counter. Refer
to the Event Counter section for more information about the counter.
Optically Isolated Inputs
The USB-6525 provides eight channels of isolated digital inputs. These
inputs consist of an optocoupler, a depletion-mode MOSFET-based
current-limiting circuit, and Schottky diode.
Each channel has its own positive and negative terminals. The input range
on the channels is –60 VDC to +60 VDC.
Sensing DC Voltages
The USB-6525 detects a wide range of DC signals, from TTL-like logic
levels to DC power supply levels up to 60 V.
Applying a DC voltage of at least 3.2 V across two input terminals registers
logic high. Applying no voltage or a voltage difference of 1 V or less
registers logic low. DC voltages between 1 V and 3.2 V may not register a
consistent or usable value.
Signal Connection Example
Figure 6 shows signal connections for a power supply and load connected
to an isolated input.
Digital
Logic
Computer
Ground
P1.x+
P1.x–
Twisted-Pair
Wiring
Load
Caution
MOSFET-Based
Current-Limiting
Circuitry
Schottky
Isolation
USB-6525
Figure 6. Connecting a Power Supply and Load to the Isolated Input
Use twisted-pair field wiring to reduce EMC noise.
In Figure 6, the USB-6525 is sensing a powered load that is connected to
the power supply through a switch.
NotePower supplies must be within the USB-6525 device range. Refer to the
Specifications section for information about these ranges.
+
Vsupply
_
When the switch is open, no current flows through the load and no voltage
is applied to the load or to the USB-6525 input. The digital logic of the
USB-6525 then registers a logic low for the channel. When the switch is
USB-6525 User Guide and Specifications10ni.com
Page 12
closed, current flows through both the load and the USB-6525 optocoupler,
and the USB-6525 registers a logic high for the channel.
Solid-State Relay (SSR) Outputs
You can connect loads to the USB-6525. Connect the load to one of the
leads of the power source. Connect either the P0.xA or the P0.xB terminal
to the load and the other terminal to the other lead of the AC or DC power
source. Figure 7 shows a possible configuration where the load is
connected to the P0.xB terminal and the DC or AC power source.
P0.x A
P0.x B
USB-6525
Figure 7. Connecting a Load to the USB-6525
Caution
Use twisted-pair field wiring to reduce EMC noise.
Power-On and Power-Off Conditions
The default power-on state of the solid-state relays is open. By default, the
solid-state relays remain open when the chassis and the USB-6525 device
are powered off.
Protecting Inductive Loads
When inductive loads are connected to the USB-6525 SSR outputs, a large
counter-electromotive force may occur at switching time because of the
energy stored in the inductive load. These flyback voltages can damage the
SSR outputs and/or the external power supply.
Twisted-Pair
Wiring
Load
+
or
_
AC
Limit flyback voltages at your inductive load by installing one of the
following:
•For DC loads—Install a flyback diode within 18 in. of the load.
•For AC loads—Install a metal oxide varistor (MOV) rated for 30 V
Figures 8 and 9 show examples of using an external flyback diode to
Inductive
Load
USB-6525
MOV for AC
Inductive Loads
V
AC
P0.xA
P0.xB
protect DC inductive loads and an MOV to protect AC inductive loads,
respectively.
Flyback Diode for
DC Inductive Loads
P0.x A
Inductive
Load
P0.x B
USB-6525
+
V
DC
–
Figure 8. Contact Protection for DC Inductive Loads
USB-6525 User Guide and Specifications12ni.com
Figure 9. Contact Protection for AC Inductive Loads
Page 14
Using the USB-6525 as a TTL Output Device
V
OUT
RL = 5 kΩ
Isolated
Ground
To External
+5 V Supply
P0.x A
P0.x B
USB-6525
Figure 10 shows a signal connection example for a TTL-level application
with an external supply voltage of +5 V.
Figure 10. TTL Device Signal Connection Example
When the SSR is open, a small amount of current flows through RL and the
output voltage is close to 5 V, a logic high. When the SSR is closed, current
flows through R
and the output voltage is close to 0 V, a logic low.
L
Event Counter
Choose an R
value small enough to provide the necessary source current
L
but large enough to reduce sink current and to avoid consuming
unnecessary power. Many TTL-level applications use an R
value of 5 kΩ.
L
You can configure PFI 0 (an alias to P1.7) as the source for a 32-bit counter.
In this mode, the device counts low to high transitions on P1.7. The counter
can be armed and disarmed and the count can be read or reset through
software. For more information about event timing requirements, refer to
the Specifications section. Refer to your software documentation for more
information about counter programming techniques.
Refer to the product Declaration of Conformity (DoC) for additional
regulatory compliance information. To obtain product certifications and
the DoC for this product, visit
number or product line, and click the appropriate link in the Certification
column.
Environmental Management
NI is committed to designing and manufacturing products in an
environmentally responsible manner. NI recognizes that eliminating
certain hazardous substances from our products is beneficial to the
environment and to NI customers.
For additional environmental information, refer to the NI and the Environment Web page at
environmental regulations and directives with which NI complies, as well
as other environmental information not included in this document.
(For information about China RoHS compliance, go to
ni.com/environment/rohs_china
.)
EU CustomersAt the end of their life cycle, all products must be sent to a WEEE recycling
center. For more information about WEEE recycling centers and National Instruments
WEEE initiatives, visit
Safety Guidelines
CautionOperate the hardware only as described in these operating instructions.
The following section contains important safety information that you must
follow when installing and using the USB-6525.
ni.com/environment/weee.htm.
Do not operate the USB-6525 in a manner not specified in this document.
Misuse of the device can result in a hazard. You can compromise the safety
protection built into the device if the device is damaged in any way. If the
device is damaged, contact National Instruments for repair.
Do not substitute parts or modify the device except as described in this
document. Use the device only with the chassis, modules, accessories, and
cables specified in the installation instructions. You must have all covers
and filler panels installed during operation of the device.
Do not operate the device in an explosive atmosphere or where there may
be flammable gases or fumes. If you must operate the device in such an
environment, it must be in a suitably rated enclosure.
If you need to clean the device, use a dry cloth. Make sure that the device
is completely dry and free from contaminants before returning it to service.
Operate the device only at or below Pollution Degree 2. Pollution is foreign
matter in a solid, liquid, or gaseous state that can reduce dielectric strength
or surface resistivity. The following is a description of pollution degrees:
•Pollution Degree 1 means no pollution or only dry, nonconductive
pollution occurs. The pollution has no influence.
•Pollution Degree 2 means that only nonconductive pollution occurs in
USB-6525 User Guide and Specifications18ni.com
most cases. Occasionally, however, a temporary conductivity caused
by condensation must be expected.
Page 20
•Pollution Degree 3 means that conductive pollution occurs, or dry,
nonconductive pollution occurs that becomes conductive due to
condensation.
You must insulate signal connections for the maximum voltage for which
the device is rated. Do not exceed the maximum ratings for the device. Do
not install wiring while the device is live with electrical signals. Do not
remove or add connector blocks when power is connected to the system.
Avoid contact between your body and the connector block signal when hot
swapping modules. Remove power from signal lines before connecting
them to or disconnecting them from the device.
1
Operate the device at or below the Measurement Category I
2
circuits are subjected to working voltages
and transient stresses
. Measurement
(overvoltage) from the circuit to which they are connected during
measurement or test. Measurement categories establish standard impulse
withstand voltage levels that commonly occur in electrical distribution
systems. The following is a description of measurement categories:
•Measurement Category I is for measurements performed on circuits
not directly connected to the electrical distribution system referred to
3
as MAINS
voltage. This category is for measurements of voltages
from specially protected secondary circuits. Such voltage
measurements include signal levels, special equipment, limited-energy
parts of equipment, circuits powered by regulated low-voltage sources,
and electronics.
•Measurement Category II is for measurements performed on circuits
directly connected to the electrical distribution system. This category
refers to local-level electrical distribution, such as that provided by a
standard wall outlet (for example, 115 V for U.S. or 230 V for Europe).
Examples of Measurement Category II are measurements performed
on household appliances, portable tools, and similar USB devices.
•Measurement Category III is for measurements performed in the
building installation at the distribution level. This category refers to
measurements on hard-wired equipment such as equipment in fixed
installations, distribution boards, and circuit breakers. Other examples
are wiring, including cables, bus-bars, junction boxes, switches,
socket-outlets in the fixed installation, and stationary motors with
permanent connections to fixed installations.
•Measurement Category IV is for measurements performed at the
primary electrical supply installation (<1,000 V). Examples include
1
Measurement Category as defined in electrical safety standard IEC 61010-1. Measurement Category is also referred to as
Installation Category.
2
Working Voltage is the highest rms value of an AC or DC voltage that can occur across any particular insulation.
3
MAINS is defined as a hazardous live electrical supply system that powers equipment. Suitably rated measuring circuits may
be connected to the MAINS for measuring purposes.
electricity meters and measurements on primary overcurrent
protection devices and on ripple control units.
Where to Go for Support
The National Instruments Web site is your complete resource for technical
support. At
troubleshooting and application development self-help resources to email
and phone assistance from NI Application Engineers.
A Declaration of Conformity (DoC) is our claim of compliance with the
Council of the European Communities using the manufacturer’s
declaration of conformity. This system affords the user protection for
electromagnetic compatibility (EMC) and product safety. You can obtain
the DoC for your product by visiting
product supports calibration, you can obtain the calibration certificate for
your product at
National Instruments corporate headquarters is located at
11500 North Mopac Expressway, Austin, Texas, 78759-3504.
National Instruments also has offices located around the world to help
address your support needs. For telephone support in the United States,
create your service request at
instructions or dial 512 795 8248. For telephone support outside the United
States, contact your local branch office:
ni.com/support you have access to everything from
ni.com/certification. If your
ni.com/calibration.
ni.com/support and follow the calling
Australia 1800 300 800, Austria 43 662 457990-0, Belgium 32 (0) 2 757 0020,
Brazil 55 11 3262 3599, Canada 800 433 3488, China 86 21 5050 9800,
Czech Republic 420 224 235 774, Denmark 45 45 76 26 00,
Finland 358 (0) 9 725 72511, France 01 57 66 24 24, Germany 49 89 7413130,
India 91 80 41190000, Israel 972 3 6393737, Italy 39 02 41309277,
Japan 0120-527196, Korea 82 02 3451 3400, Lebanon 961 (0) 1 33 28 28,
Malaysia 1800 887710, Mexico 01 800 010 0793,
Netherlands 31 (0) 348 433 466, New Zealand 0800 553 322,
Norway 47 (0) 66 90 76 60, Poland 48 22 328 90 10, Portugal 351 210 311 210,
Russia 7 495 783 6851, Singapore 1800 226 5886, Slovenia 386 3 425 42 00,
South Africa 27 0 11 805 8197, Spain 34 91 640 0085,
Sweden 46 (0) 8 587 895 00, Switzerland 41 56 2005151,
Taiwan 886 02 2377 2222, Thailand 662 278 6777, Turkey 90 212 279 3031,
United Kingdom 44 (0) 1635 523545
National Instruments, NI, ni.com, and LabVIEW are trademarks of National Instruments Corporation.
Refer to the Terms of Use section on ni.com/legal for more information about National
Instruments trademarks. Other product and company names mentioned herein are trademarks or trade
names of their respective companies. For patents covering National Instruments products/technology,
refer to the appropriate location: Help»Patents in your software, the patents.txt file on your
media, or the National Instruments Patent Notice at ni.com/patents.