EasyManuals Logo
Home>National Instruments>I/O Systems>6527 Series

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 #28 background imageLoading...
Page #28 background image
Chapter 3 Programming
6527 Register-Level Programmer Manual 3-6 ni.com
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. The filter interval is in 200 ns increments. To set
a filter interval of 10 ms, the value to write to the Filter Interval Register is 0x00C350
((10 ms/200 ns) = 50,000 decimal = 0x00C350 hexadecimal).
Use the following pseudocode example:
Write (Filter Interval + 2, 0x00) //Set most significant bits of filter interval
Write (Filter Interval + 1, 0xC3) //Set the intermediate bits of filter interval
Write (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 bits of Port 0
Read (Port 0) //Begin reading filtered input
Output
To control an output port of a 6527 device, write a digital value to the appropriate Port
Register to control the solid-state relays associated with that port. At power-up, all solid-state
relays of all output ports are open.
Note
Writing a digital 1 to a port line (which is also the initial power-up state) opens the
relay. Writing a digital 0 to a port line closes the relay, allowing current to flow between
the DIG+ and DIG terminals of the switch.
The following example writes eight bits11111110 binary, or 0xFE hexadecimalto Port 0.
This value closes the solid-state relay on Port 0, line 0, but leaves all other relays in the port
open.
Use the following pseudocode example:
Write (Port 0, 0xFE) //Write 11111110 binary to Port 0

Questions and Answers:

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

Related product manuals