
System 3
3-41
RX7 Stimulator Base Station
Configuring
the
Programmable
I/O
Lines
Each of the eight bit-addressable lines can be independently configured as inputs or
outputs. The digital I/O lines can be configured as inputs or outputs in groups of
eight bits – that is as byte A, byte B, byte C, and byte D. Note, however, that the
bytes must be addressed as if part of a word, not as individual bytes. See
“Addressing Digital Bits In A Word” in the
RPvdsEx Manual
for more information.
By default, all bits are configured as inputs. This default setting is intended to
prevent damage to equipment that might be connected to the digital I/O lines. The
user can configure the bits in the RPvdsEx configuration register. The configuration
register is also used to determine what the eight front panel Bits lights represent.
To access the bit configuration register:
1. Click the
Device Setup
command on the
Implement
menu.
2. In the
Set Hardware Parameters
dialog box, click the
Device Type
box
and select the
RX7 Elec-Stimulator
from the list.
The dialog expands to display the
Device Configuration Register.
3. Click
Modify
to display the
Edit I/O Setup Control
dialog box.
In this dialog box, a series of check boxes are used to create a bitmask
that is used to program all bits.
4. To enable the check boxes, delete
Und
from the
Decimal Value
box.
5. To determine the desired value, select or clear the check boxes according to
the table below. By default, all check boxes are cleared (value = 0).
Selecting a check box sets the corresponding bit in the bitmask to one.
6. When the configuration is complete, click
OK
to return to the
Set Hardware
Parameters
dialog box.
Bit #
Description
0-7
Each of these bits controls the configuration of one of the eight
addressable bits as inputs or outputs. Setting the bit to one will configure
that bit as an output.
8-11
Each of these bits controls the configuration of one of the four
addressable bytes as inputs or outputs. Setting the bit to one will
configure that byte as an output.
bit 8 - byte A, bit 9 - byte B, bit 10 - byte C, and bit 11 - byte D
12-14
Create a bit code that determines how the front panel Bits lights are
used, see table below.