Optically isolated and electromechanical relay boards (76 pages)
Summary of Contents for National Instruments 6509
Page 1
Static DIO Register-Level Programmer Manual for NI 6509, 651x, 6520, 6521, and 6528 Devices Static DIO Register-Level Programmer Manual November 2005 371580A-01...
Page 3
Warranty The NI 6509, NI 6510, NI 6511, NI 6512, NI 6513, NI 6514, NI 6515, NI 6516, NI 6517, NI 6518, NI 6519, NI 6520, NI 6521, and NI 6528 are warranted against defects in materials and workmanship for a period of one year from the date of shipment, as evidenced by receipts or other documentation.
Contents About This Manual How To Use the Manual Set..................viii Conventions ........................viii Chapter 1 Getting to Know Your NI 6509/651x/6520/6521/6528 Device Using Your NI 6509/651x/6520/6521/6528 ..............1-2 PCI Interface....................1-2 General Operation Registers................1-2 Chapter 2 Register Map and Descriptions IO Port Data ........................2-4 IOPort(N )Data ....................2-4...
NI-DAQ, NI-DAQmx Base software could be used as an alternative. If your OS is also unsupported in NI-DAQmx Base, you would then need to program your device using the Static DIO Register-Level Programmer Manual for NI 6509, 651x, 6520, 6521, and 6528 Devices.
About This Manual How To Use the Manual Set The Static DIO Register-Level Programmer Manual for NI 6509, 651x, 6520, 6521, and 6528 Devices is one piece of the documentation set for your data acquisition system. You could have any of several types of manuals, depending on the hardware and software in your system.
Page 9
NI 6509/651x/6520/6521/6528 Device The NI 6509 is a 96-bit, high-drive digital input/output (DIO) device for PCI, PXI, and CompactPCI chassis. The NI 6509 features 96 TTL/CMOS-compatible digital I/O lines, 24 mA high-drive output, and the industrial DIO feature set. For more information on the...
PCI Interface The NI 6509/651x/6520/6521/6528 use the PCI MITE Application-Specific Integrated Circuit (ASIC) to communicate with the PCI or PXI bus. National Instruments designed this ASIC specifically for data acquisition. Before register-level programming the NI 6509/651x/6520/6521/6528 device, you must initialize the PCI interface as described in Chapter 3, Programming.
Page 11
Chapter 1 Getting to Know Your NI 6509/651x/6520/6521/6528 Device Table 1-1. NI 6509/651x/6520/6521/6528 Product Port Directions Port Direction Model 10 (xA) 11 (xB) PCI-6509 PXI-6509 PCI-6510 — — — — — — — — PCI-6511 — — — — PXI-6511 —...
Register Map and Descriptions Table 2-2 shows the register map for the NI 6509, 651x, 6520, 6521, and 6528 devices. The table gives the register name, the register address offset from the device base address (Base Address Register 1), the size of the register in bits, and the type of register (read-only, write-only, or read and write).
Page 13
Chapter 2 Register Map and Descriptions Table 2-1. NI 6509/651x/6520/6521/6528 Register Address Map—Recurring Port Registers Register Name Short Name Offset (Hex) Type Size IO Port Data IOPort(N)Data 0x40 + 0xN0 Read-write 8-bit IO Select IOSelect(N) 0x41 + 0xN0 Read-write 8-bit...
Page 14
Chapter 2 Register Map and Descriptions Table 2-3. NI 6509/651x/6520/6521/6528 Register Address Map—Watchdog Timer Registers Offset Register Name (Hex) Type Size Watchdog Timer Software Timeout Enable 0x15 Read-write 8-bit Watchdog Timer Expire Status 0x17 Read 8-bit Watchdog Timer Timeout Interval...
Chapter 2 Register Map and Descriptions IO Port Data IOPort(N )Data This register is used to read digital data from or write data to port N, where N is the port number in hexidecimal. Ports can range from 0 to 11 (0x0 to 0xB), depending on your device. For each port, Note you must add an additional offset equal to 0x10 time the port number in hex.
Chapter 2 Register Map and Descriptions Rising Edge Sensitivity Configuration Registers RiseEdgeEnable(N ) This register enables monitoring of input lines of port N for rising edges, where N is the port number in hexidecimal. Ports can range from 0 to 11 (0x0 to 0xB), depending on your device. For each port, Note you must add an additional offset equal to 0x10 time the port number in hex.
Chapter 2 Register Map and Descriptions Filter Enable Registers FilterEnable(N ) This register enables filtering of input lines of port N, where N is the port number in hexidecimal. In FilterEnable(N) registers, all lines of all ports share the same interval. Ports can range from 0 to 11 (0x0 to 0xB), depending on your device.
Chapter 2 Register Map and Descriptions Watchdog Timer Enable Registers WatchdogEnable(N ) This register enables port N to go to configured expiration states when the watchdog timer (WDT) expires, where N is the port number in hexidecimal. WatchdogEnable(N) is only valid for fixed output or bidirectional ports.
Chapter 2 Register Map and Descriptions RTSI Enable Registers RTSI_En(N ) This register enables RTSI for port N, where N is the port number in hexidecimal. Ports can range from 0 to 11 (0x0 to 0xB), depending on your device. For each port, Note you must add an additional offset equal to 0x10 time the port number in hex.
Chapter 2 Register Map and Descriptions Clear Register Write to individual bit of this register to clear certain functionality in the board. Address Offset: 0x01 Type: Write strobe Size: 8-bit Bit Map: Reserved ClrWDT+ RstWDT ClrWDTExp ClrEdge ClrOvrFlow Reserved Reserved Name Description Reserved...
Chapter 2 Register Map and Descriptions Filter Interval 32-Bit Register The filter interval register controls the filter interval for distinguishing between valid input pulses and glitches. There are twenty bits in the filter interval register. Address Offset: 0x08 Type: Read-write Size: 32-bit Bit Map:...
Chapter 2 Register Map and Descriptions Watchdog Timer Software Timeout Enable This register enables the device to go to specified expiration states when the watchdog timer expires. Address Offset: 0x15 Type: Read-write Size: 8-bit Bit Map: Reserved Reserved Reserved Reserved Reserved Reserved Reserved...
Chapter 2 Register Map and Descriptions Watchdog Timer Timeout Interval This register specifies the amount of time to wait before going to the expiration state. It is expressed in terms of 100 ns. Address Offset: 0x18 Type: Read-write Size: 32-bit Bit Map: WDT_TI(31) WDT_TI(30) WDT_TI(29) WDT_TI(28) WDT_TI(27) WDT_TI(26) WDT_TI(25) WDT_TI(24) WDT_TI(23) WDT_TI(22)
Chapter 2 Register Map and Descriptions RTSI Pulse when Edge Detected This register configures which RTSI lines to pulse for 200 ns when there is an edge detected on any of the lines configured for monitoring. Address Offset: 0x0E Type: Read-write Size: 16-bit...
Chapter 2 Register Map and Descriptions RTSI Trigger for Watchdog Timer Enables RTSI line to act as a hardware trigger for the watchdog timer. Address Offset: 0x12 Type: Read-write Size: 16-bit Bit Map: Reserved Reserved Reserved Reserved Reserved Reserved Reserved RTSI Trig(8) RTSI...
Programming This chapter contains basic programming information for your NI 6509/651x/6520/6521/6528 devices. Programming your NI 6509/651x/6520/6521/6528 device involves writing to and reading from registers on the device. Registers are listed in Chapter 2, Register Map and Descriptions. Programming Examples Most of the register-level functionality is explained through a separate set of examples in the NI Measurement Hardware Driver Development Kit (DDK).
The PCI Bus moves data for the NI 6509/651x/6520/6521/6528 devices. Configure the bus-related resources before you execute a register-level program. To do this, you need to assign a base address and optionally assign an interrupt channel to your NI 6509/651x/6520/6521/6528 device as shown here and in the following section.
Page 42
BAR0. The base address is now 0xD1000. Make sure the re-mapped PCI MITE and the NI 6509/651x/6520/6521/6528 memory ranges are not used by another device or system resource. You can exclude this memory from use with a memory manager. Static DIO Register-Level Programmer Manual...
Technical Support Resources Visit the following sections of the National Instruments Web site at for technical support and professional services: ni.com • Support—Online technical support resources at ni.com/support include the following: – Self-Help Resources—For answers and solutions, visit the award-winning National Instruments Web site for software drivers...
Page 44
Appendix A Technical Support Resources • Calibration Certificate—If your product supports calibration, you can obtain the calibration certificate for your product at ni.com/ calibration If you searched and could not find the answers you need, contact ni.com your local office or NI corporate headquarters. Phone numbers for our worldwide offices are listed at the front of this manual.
Page 46
Glossary isolation signal conditioning to break ground loops and reject high common-mode voltages to protect equipment and users and to ensure accurate measurements least significant bit most significant bit optical isolation the technique of using an optocoupler to transfer data without electrical continuity, to eliminate high-potential differences and transients optocoupler a device that transfers electrical signals by utilizing light waves to provide...
Page 48
Index National Instruments support and recurring port registers services, A-1 Falling Edge Sensitivity Configuration NI Measurement Hardware Driver registers, 2-7 Development Kit (DDK), 3-1 Filter Enable registers, 2-8 programming your device without, 3-1 IO Port Data, 2-4 NI support and services, A-1...
Need help?
Do you have a question about the 6509 and is the answer not in the manual?
Questions and answers