EasyManua.ls Logo

National Instruments 6527 Series User Manual

National Instruments 6527 Series
37 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #26 background imageLoading...
Page #26 background image
Chapter 3 Programming
6527 Register-Level Programmer Manual 3-4 ni.com
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. To do this, consult the following documents, which
you can find in your local bookstore:
Designing PCI Cards and Drivers for Power Macintosh Computers
Inside Macintosh: Devices
Inside Macintosh: 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 documents listed above as
a reference, write a program to retrieve the deviceNode parameter from the Name Registry.
#include <pci.h>
void*configureCard(RegEntryIDPtr deviceNode);
void*configureCard
(RegEntryIDPtrdeviceNode)
{
unsigned shortpciCommandRegister;
unsigned longcardBaseAddress,
miteBaseAddress;
//configure the i/o space of the device such
//that it is memory mapped.
ExpMgrConfigReadWord(deviceNode,
((LogicalAddress) 0x00000004L),
&pciCommandRegister);
ExpMgrConfigWriteWord(deviceNode,
((LogicalAddress) 0x00000004L),
(pciCommandRegister | 0x0002));
//get the base addresses for the device.
ExpMgrConfigReadLong(deviceNode,
((LogicalAddress) 0x00000010L),
&miteBaseAddress);
Question and Answer IconNeed help?

Do you have a question about the National Instruments 6527 Series and is the answer not in the manual?

National Instruments 6527 Series Specifications

General IconGeneral
BrandNational Instruments
Model6527 Series
CategoryI/O Systems
LanguageEnglish

Summary

Important Information

Warranty Details

Details the warranty period and National Instruments' responsibilities for defective equipment and software media.

Copyright and Legal Notices

Outlines copyright laws, trademark usage, and legal disclaimers regarding the manual and product.

Product Usage Warning

Alerts users to critical safety warnings regarding the use of National Instruments products in life-support systems.

About This Manual

Manual Content Overview

Describes the information contained in the manual for register-level programming of 6527 devices.

Using the Manual Set

Guides users on how to utilize the 6527 Register-Level Programmer Manual alongside other documentation.

Conventions

Document Conventions

Explains the typographical and symbolic conventions used throughout the manual for clarity.

Chapter 1: Getting to Know Your 6527

PCI Interface Overview

Introduces the PCI MITE ASIC used for communication and the need to initialize the PCI interface.

General Operation Registers

Describes the main input/output registers and the Clear Register for resetting functions.

Digital Filtering Option

Explains how to enable/disable filtering to reduce glitches and the use of filter intervals.

Change Notification Option

Details using change notification to generate interrupts on input line changes.

Chapter 2: Register Map and Descriptions

Register Overview

Summarizes register groups: General Operation, Digital Filtering, and Change Notification.

Port Registers (Input/Output)

Describes input registers for optocoupler states and output registers for solid-state relay control.

Key Control Registers

Groups ID, Clear, and Master Interrupt Control Registers for device identification and function management.

Filter and Edge Detection Configuration

Covers registers for setting filter intervals, enabling filtering, and configuring edge detection interrupts.

Status Registers

Details the Change Status Register, which indicates the status of change detection events.

Chapter 3: Programming

Common Terms

Lists and defines terms commonly used in programming examples, such as port addresses and registers.

PCI Initialization

Guides on initializing the PCI local bus and configuring the device for PC and Macintosh systems.

PCI Initialization Examples

Provides pseudocode examples for re-mapping the PCI MITE and activating the device for specific platforms.

Programming Digital I/O Inputs

Explains reading input data from ports and configuring digital filtering for input lines.

Programming Digital I/O Outputs

Details controlling solid-state relays on output ports by writing digital values to port registers.

Change Notification and Interrupts

Covers configuring, handling, and disabling change notification interrupts for input line changes.

Appendix A: Technical Support Resources

Web and Developer Support

Directs users to National Instruments' web support, developer zone, and online resources for assistance.

Customer Education and Training

Provides information on training options, courses, and educational materials for users to enhance skills.

System Integration Services

Offers guidance on consulting or employing system integration services for complex projects and solutions.

Worldwide Support Network

Informs users about National Instruments' global offices and how to contact them for timely support.

Related product manuals