background image

©

National Instruments Corporation

1-1

6527 Register-Level Programmer Manual

1

Getting to Know Your 6527

Your 6527 device is a 48-bit, parallel, isolated digital I/O interface; the PCI-6527 for PCI bus
computers, and the PXI-6527 for PXI or CompactPCI chassis. The 6527 devices offer
48 channels of isolated digital data acquisition. Twenty-four of the channels are optocoupler
inputs and 24 are solid-state relay outputs. You can sense digital levels up to 28 VDC and
switch currents of up to 120 mA. Your device can perform digital filtering, which eliminates
glitches on input lines and change notification. This change notification can then generate
interrupts on rising or falling edges on input lines to notify you of changing data.

For more information regarding the functions, installation, connections, and safe use of
the 6527, refer to the

6527 User Manual

.

Caution

Using your 6527 device in a way inconsistent with the directions in the

6527 User

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:

PCI interface

General operation registers

Digital filtering registers

Change notification registers

PCI Interface

The 6527 uses 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 6527 device, you must initialize the
PCI interface as described in Chapter 3,

Programming

.

Содержание 6527

Страница 1: ...DAQ 6527 Register Level Programmer Manual 6527 Register Level Programmer Manual September 2001 Edition Part Number 370106B 01...

Страница 2: ...09 725 725 11 France 01 48 14 24 24 Germany 089 741 31 30 Greece 30 1 42 96 427 Hong Kong 2645 3186 India 91805275406 Israel 03 6120092 Italy 02 413091 Japan 03 5472 2970 Korea 02 596 7456 Malaysia 60...

Страница 3: ...ailures caused by owner s failure to follow the National Instruments installation operation or maintenance instructions owner s modification of the product owner s abuse misuse or negligent acts and p...

Страница 4: ...sters Ports 0 2 2 3 Output Registers Ports 3 5 2 4 ID Register 2 5 Clear Register 2 6 Filter Interval Registers 2 7 Filter Enables Ports 0 2 2 8 Change Status Register 2 9 Master Interrupt Control Reg...

Страница 5: ...egister Level Programmer Manual vi ni com Change Notification 3 7 Configuring Interrupt Generation 3 7 Handling Interrupts 3 8 Disabling Change Notification 3 8 Appendix A Technical Support Resources...

Страница 6: ...anual 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 pro...

Страница 7: ...ons to take to avoid injury data loss or a system crash bold Bold text denotes items that you must select or click on in the software such as menu items and dialog box options Bold text also denotes p...

Страница 8: ...es to notify you of changing data For more information regarding the functions installation connections and safe use of the 6527 refer to the 6527 User Manual Caution Using your 6527 device in a way i...

Страница 9: ...input lines using digital filtering Filtering can help eliminate glitches on input data and reduces the number of changes you need to process if you are using digital filtering with change notificatio...

Страница 10: ...on of each register follows the table Table 2 1 6527 Register Address Map Register Name Offset Hex Type Size General Operation Registers Port 0 Register Port 1 Register Port 2 Register Port 3 Register...

Страница 11: ...inside Change Notification Registers Change Status Master Interrupt Control Port 0 Rising Edge Detection Enable Port 1 Rising Edge Detection Enable Port 2 Rising Edge Detection Enable Port 0 Falling E...

Страница 12: ...ptically isolated digital input lines on the corresponding port Address Offsets 00 hex for Port 0 01 hex for Port 1 02 hex for Port 2 Type Read only Size 8 bit Bit Map Bit Name Description 7 0 N 7 0 D...

Страница 13: ...gister to get the states of the eight relays associated with the port The power up state of each register is all high hex FF causing the relays to be open Address Offset 03 hex for Port 3 04 hex for P...

Страница 14: ...ID Register is read only Use this register to confirm that you are successfully reading from your device Reading this register returns the hexadecimal value 27 Address Offset 06 hex Type Read only Si...

Страница 15: ...to these bits 3 ClrEdge Clear Edge Detectors Set this bit to 1 to clear the EdgeStatus status bit in the Change Status Register and clear all edge detectors 2 ClrOverflow Clear Overflow Set this bit...

Страница 16: ...r interval write to the ClrInterval bit of the Clear Register to ensure that the new filter interval takes effect immediately The filter interval affects only those input lines for which you have set...

Страница 17: ...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 Size 8 bit Bit Map Bit Name Description...

Страница 18: ...its are undefined and should be ignored 2 MasterInterruptStatus Indicates that the device is asserting an interrupt 1 Overflow Indicates that at least one more edge has been detected since an interrup...

Страница 19: ...nly zeroes to these bits 4 FallingEdgeIntEnable Interrupt Enable control Enable interrupt on falling edge detection This is enabled upon power up 1 Interrupt enabled 0 Interrupt disabled 3 RisingEdgeI...

Страница 20: ...2 11 6527 Register Level Programmer Manual 1 OverflowIntEnable Interrupt Enable control Enable overflow interrupt 1 Interrupt enabled 0 Interrupt disabled 0 EdgeIntEnable Edge Interrupt Enable control...

Страница 21: ...also set the EdgeInt bit in the Master Interrupt Control Register Address Offsets 18 hex for Port 0 19 hex for Port 1 1A hex for Port 2 Type Read and write Size 8 bit Bit Map Bit Name Description 7 0...

Страница 22: ...pts you must also set the EdgeInt bit in the Master Interrupt Control Register Address Offsets 20 hex for Port 0 21 hex for Port 1 22 hex for Port 2 Type Read and write Size 8 bit Bit Map Bit Name Des...

Страница 23: ...reading from registers on the device Registers are listed in Chapter 2 Register Map and Descriptions Note In this chapter all numbers preceded by 0x are hexadecimal Common Terms The following list of...

Страница 24: ...us with multiplexed address and data lines This system arbitrates and assigns resources through software freeing you from manually setting switches and jumpers The 6527 devices are fully compatible wi...

Страница 25: ...u choose not to re map the device you can skip the first CWrite instruction but you still need to perform the next and last instructions to initialize the device All values in this example are 32 bits...

Страница 26: ...osh Memory Inside Macintosh Operating System Utilities Inside Macintosh Processes Inside Macintosh Power PC System Software Example Use the following code sequence to activate the device Using the doc...

Страница 27: ...For input and output specifications refer to Appendix A Specifications of your 6527 User Manual Handshaking is also not required simply write to or read from a specified port Input You can read your...

Страница 28: ...Filter Interval 0 0x50 Set least significant bits of filter interval Write Clear Register 0x03 Clear filters and filter interval clock Write Port 0 Filter Enables 0xFF Enable filtering for all eight...

Страница 29: ...on line 1 or any change on line 7 6 5 or 4 generates an interrupt Tip It is recommended that you enable input filtering to prevent a brief glitch or noise pulse from generating a false interrupt Filt...

Страница 30: ...R use the Change Status Register to verify that a change occurred using the following pseudocode example Read Change Status Read status to verify change occurred Then read the value of the input lines...

Страница 31: ...access the latest example programs system configurators tutorials technical news as well as a community of developers ready to share their own techniques Customer Education National Instruments provid...

Страница 32: ...ce Web sites from the Worldwide Offices section of ni com Branch office Web sites provide up to date contact information support phone numbers e mail addresses and current events If you have searched...

Страница 33: ...oprietary semiconductor component designed and manufactured to perform a set of specific functions for a specific application C CompactPCI refers to the core specification defined by the PCI Industria...

Страница 34: ...y to eliminate high potential differences and transients optocoupler a device that transfers electrical signals by utilizing light waves to provide coupling with electrical isolation between input and...

Страница 35: ...lter bit Clear Register 2 6 ClrInterval bit Clear Register 2 6 ClrOverflow bit Clear Register 2 6 configuring interrupt generation 3 7 to 3 8 conventions used in manual viii customer education A 1 D d...

Страница 36: ...ster Interrupt Control Register 2 10 MasterInterruptStatus bit Change Status Register 2 9 N N 7 0 bits Input Registers Ports 0 2 2 3 Output Registers Ports 3 5 2 4 NI Developer Zone A 1 O output progr...

Страница 37: ...0 2 2 12 digital filtering registers Filter Enables Ports 0 2 2 8 Filter Interval Registers 2 7 register address map table 2 1 general operation registers 1 2 Clear Register 2 6 ID Register 2 5 Input...

Отзывы: