Page 3
The reader should consult National Instruments if errors are suspected. In no event shall National Instruments be liable for any damages arising out of or related to this document or the information contained in it.
LabVIEW, Measurement Studio, or NI-DAQ, you do not need to read this manual. Note National Instruments strongly recommends using application development environment software, such as LabVIEW, Measurement Studio, or NI-DAQ to program your 6527 device. Application software provides easier programming with the same flexibility as register-level programming.
About This Manual Conventions The following conventions are used in this manual: <> Angle brackets that contain numbers separated by an ellipsis represent a range of values associated with a bit or signal name—for example, DIG+0.<3..0>. This icon denotes a tip, which alerts you to advisory information. This icon denotes a note, which alerts you to important information.
Using your 6527 device in a way inconsistent with the directions in the 6527 User Caution Manual can lead to equipment damage or injury. National Instruments is not liable for damage or injuries resulting from incorrect use. Using Your 6527 The 6527 circuitry can be divided into the following functional groups: •...
Chapter 1 Getting to Know Your 6527 General Operation Registers Initialize the PCI interface before using the general operation registers. Read the ID Register, one of the general operation registers, to verify the PCI interface is initialized properly. For more information on the ID Register, refer to the ID Register section in Chapter 2, Register Map and...
Chapter 2 Register Map and Descriptions Output Registers (Ports 3–5) The Output Registers are read and write. Write to an Output Register to control the switch states of the eight solid-state relays on the corresponding port. Read an Output Register to get the states of the eight relays associated with the port.
Chapter 2 Register Map and Descriptions Clear Register Write to the Clear Register to reset one or more functions of the 6527 device. The data you write to the clear register selects the function or functions you want to reset. Each bit set to 1 in the data resets one function.
Chapter 2 Register Map and Descriptions Filter Enables (Ports 0–2) These registers enable filtering for the input ports. You can enable or disable filtering individually for each input line. Address Offsets: 0C (hex) for Port 0 0D (hex) for Port 1 0E (hex) for Port 2 Type: Read and write...
Chapter 2 Register Map and Descriptions Master Interrupt Control Register The Master Interrupt Control Register enables change detection interrupts. To select the line to use for changes, use the Rising Edge Detection and Falling Edge Detection Registers. Address Offsets: 15 (hex) Type: Read and write Size:...
Chapter 2 Register Map and Descriptions Rising-Edge Detection Registers (Ports 0–2) These registers enable edge detection interrupts for rising edges on selected lines of input ports. To generate interrupts you must also set the EdgeInt bit in the Master Interrupt Control Register.
Chapter 3 Programming Port N Filter Enables Address of Input Port N Filter Enables (Base Address + 0x0C + N, where N is the port number) Change Status Address of Change Status Register (Base Address + 0x14) Master Interrupt Control Address of Master Interrupt Control Register (Base Address + 0x15) Port N Rising-Edge Detection...
Chapter 3 Programming The base address is now 0xD1000. Make sure the re-mapped PCI MITE and the 6527 memory ranges are not used by another device or system resource. You can exclude this memory from use with a memory manager. Initializing the PCI for the Macintosh (PCI-6527 Only) To program at the register level, you must know the base memory address and you must develop your own configuration program.
Chapter 3 Programming Input with Filtering You have the option to set filter enable bits and a filter period before performing input. The following example enables filtering with an interval of 10 ms for Port 0 (all lines). To use filtering, set the filter enable bits for the lines you want to filter. Then set a filter interval, which is common to all lines.
Chapter 3 Programming Write (Clear Register,0x03) //Clear filters and filter interval clock Write (Port 0 Filter Enables, 0xFF) //Enable filter for eight bits of Port 0 2. Set the Edge Detection Enable bits for the lines and edges you want to detect. Write (Port 0 Rising Edge Detection, 0xF2) //Rises to detect: lines 7 down to 4 and line 1 Write (Port 0 Falling Edge Detection, 0xF1) //Falls to detect: lines 7 down to 4 and line 0 Write to the Clear Register to clear any existing interrupts before you begin.
Technical Support Resources Web Support National Instruments Web support is your first stop for help in solving installation, configuration, and application problems and questions. Online problem-solving and diagnostic resources include frequently asked questions, knowledge bases, product-specific troubleshooting wizards, manuals, drivers, software updates, and more. Web support is available through the Technical Support section of ni.com...
Page 32
Appendix A Technical Support Resources Worldwide Support National Instruments has offices located around the world to help address your support needs. You can access our branch office Web sites from the Worldwide Offices section of . Branch office Web sites provide ni.com...
Page 34
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...