TAMS 81622 Installation instructions

TAMS 81622 PCI GPIO Card
for Linux
Installation & Operation Instructions

TAMS 81622 PCI GPIO Card
Installation & Operation Instructions
Test & Measurement Systems Inc.
750 14th Street SW
Loveland, CO 80537
USA
Telephone (970) 669 6553
Fax (970) 669 3090
Web Site www.tamsinc.com
Email [email protected]
Copyright Test & Measurement Systems Inc. 2000-2003

Contents
General Information....................................................................... 3
Unpacking your product
Overview of the TAMS 81622 GPIO Interface
Installing the Interface ................................................................... 5
Driver Installation.......................................................................... 6
Interface Configuration.................................................................. 8
Related Software Documentation................................................ 11
Standard Instrument Control Library for Linux
BASIC For Linux
Additional GPIO Documentation Online
Technical Information.................................................................. 12
Connector Pinouts
TAMS 81622 Enhancements beyond the HP 2074/5 .................. 14
TAMS 81622 PCI DMA
TAMS 81622 PCTL Delay
BootingAfter Configuration Changes
Appendix A: Wiring ................................................................... 17
Appendix B: File Locations........................................................ 20
Appendix C: TAMS 61622 SICL Extensions............................. 21
Warranty Information.................................................................... 28

General Information
Unpacking Your Product
When you open your TAMS GPIO Card shipment, examine its contents.
Note: The name of the product you have purchased is the TAMS 81622
(GPIO Card for Linux). It includes the TAMS 622-66501 GPIO card and the
t61622card driver for RedHatLinux. Seethe ReadMe for the versionsupported.
Please complete the registration card and return it to TAMS.
3

Overview of the TAMS 81622 GPIO Interface
This guide explains how to install and configure the TAMS 81622 GPIO (General
Purpose Input Output) interface.
GPIO is a parallel interface that is flexible and allows a variety of custom
connections. APCI expansion slot is required to accommodate the GPIO
interface card.
The TAMS GPIO card has a rotary DIP switch on the upper edge to set the
unique identifier for the card. This is the only switch that needs to be set prior to
installing the card. All other configuration is done in software.
Since the configuration of the GPIO interface (aside from setting the unique card
identifier) is done in software, rather than using DIP-switches or jumpers, this
guide also provides an explanation of the configuration process as it relates to
SICL. A detailed description of the TAMS GPIO’s functionality is included to aid
in this configuration process.
The TAMS 81622 provides 16 bit data exchange with peripheral devices that do
not support more common interface protocols like HP-IB or RS-232. Connection
flexibility is augmented in the TAMS GPIO interface by extra status and control
lines, a choice of handshake methods, several data-latching options, and
selectable data width and polarity.
There are two basic modes for the data ports in the TAMS GPIO interface. The
TAMS GPIO can be configured like the HP 98622 GPIO interface, which is called
Compatibility Mode. Alternately, the TAMS 81622 can be configured with a bi-
directional data port and auxiliary control lines, which is called Enhanced Mode
and is the same as that supported by HP 2074/5.
4

Installing the Interface
This section explains how to install the TAMS GPIO interface in the computer. To
complete the installation:
1. Make sure the computer is shut down properly, the power is turned off, and
the power cord is unplugged.
2. Refer to the Owner’s Guide of your computer for instructions on opening
your computer and installing PCI boards.
3. The rotary DIP switch on the upper edge of the TAMS 622-66501 card
should be set to the PCI slot number the card is going to reside in. If you
have multiple TAMS 622-66501 cards installed in a single machine, it is
important that the rotary DIP switches each be set to a unique number,
which is guaranteed if you set the switch to the slot number. (Be sure to
note the position of the rotary DIP switch, as you will need to know this when
you configure the card.)
4. Install the GPIO interface in the PC by plugging the card into the PCI slot.
5. Follow the instructions being careful to handle the TAMS 622-66501 board
only by its metal bracket. Avoid contact with the edges. After the board has
been plugged in and the retaining screw installed the computer should be
reassembled.
6. Prepare and install the GPIO interface cable.
Note: The TAMS 622-66501 card is a PCI device. Unlike most EISA and ISA
devices a PCI device does not require an I/O address or IRQ setting. These
settings are handled automatically.
5

Driver Installation
Note: Driver installation assumes basic knowledge about software installation
procedures specific to the platform. Refer to your platform specific operating
system documentation or contact your system administrator.
To install the t61622 driver it is not necessary for the TAMS 622-66501 interface
card(s) to be present in the system.
Note: You must have root permission to install the software. In addition, you
must have permission to write to the directories listed inAppendix B. Installation
of the TAMS GPIO driver (T81622) also requires that the TAMS I/O Libraries
(T82091) are already installed.
1Make sure that the I/O Libraries (T82091) for Linux are installed.
2Insert the installation CD-ROM into the drive and wait for the busy light to
remain off.
3Mount the CD-ROM. For example:
/bin/mount /dev/cdrom /mnt/cdrom
On some systems this step will be unnecessary since the Linux system will
mount the CD-ROM automatically.
/dev/cdrom is the device file for your CD-ROM drive and /mnt/cdrom
is a directory used as a mount point.
4Change to the directory where the driver is.
5Use RPM to install the driver. Architecture-specific versions of the software
have been provided for systems running the supported kernels; the
whichrpm.sh program returns the name of the correct RPM for your
system. (Note the use of backquotes (‘) rather than single quotes (‘).)
/bin/rpm –i ‘./whichrpm.sh‘
If this an upgrade over an existing version use the “-U” instead of “-i”:
/bin/rpm –U ‘./whichrpm.sh‘
6

6The T81622 RPM will automatically load the t61622 kernel module and build
the required device files.
7Once the installation is complete, unmount the CD.
cd /
/bin/umount /dev/cdrom
8Once the CD is unmounted, you may remove the media from the drive and
store it in a safe place.
In general, the installation procedure places the files in the necessary directories
by default. Appendix B is a reference for the Linux systems administrator, who
might wish to know where these files are placed.
You will still need to configure the new TAMS GPIO card as a SICL interface
card, as covered in the next section.
7

Interface Configuration
After installation of the driver software and loading of the t61622 kernel module
(handled automatically by the RPM package), the SICL configuration file /etc/
opt/sicl/hwconfig.cf needs to be edited to reflect the new interface
card. The version of SICL you are using includes the /opt/sicl/bin/
iosetup program, this can be used in place of manually editing the
hwconfig.cf file. You will still want to refer to this section for a description of
the fields.)
After configuration, the system does NOT need to be rebooted, nor does the
driver module need to be reloaded. However, the SICL iclear function should be
used after making changes to ensure that the configuration changes have taken
effect. See the man page on iclear (1).
For further configuration information, see the “Installing and Configuring the I/O
Libraries” chapter of the I/O Libraries Installation and Configuration Guide for
Linux.
For each TAMS 622-66501 card that you want to configure in your system, you
need to add a line to the hwconfig.cf file. While most users do not need to
see or use this file directly, having used iosetup to make configuration changes,
the fields and their respective meanings are important to know to properly use
the GPIO card.
The content of each line is as follows:
<lu> <name> t61622 <location> <sig> <polarity> <mode> <read_clk> <delay>
The fields are defined as:
Logical Unit (lu) The SICL Logical Unit number for this interface. This number
must be unique for the SICL interfaces currently configured on this machine. A
good choice for a logical unit number would be 12.
Symbolic Name (name) The unique SICL symbolic name. Agood choice would
be “gpio”.
Location The unique ID specified by the rotary DIP switch on the TAMS 622-
66501 being configured. This value is in the range 0-9
Signal (sig) Selects an Unix signal to be used by t61622 driver for interrupts. The value
must be in decimal format and must be 0 or one of the values defined in the signal.h
header file. Allowed signals are SIGIOT, SIGUSR1,
8

SIGUSR2 SIGIO or SIGURG. A value of 0 sets the default signal which is
SIGURG. Asignal is used by the t61622 driver to notify applications about kernel
events. You can select an alternate signal to avoid conflicts within your
application.
Polarity The logic polarity of various interface lines. A“0” sets active low
polarity; a “1” sets active high. Each bit controls the polarity of one function:
0b<Pullup><Data Out><Data In><PSTS><PFLG><PCTL>. For example,
0b111000 activates the pull up resistors and sets both Data Out and Data In to
active high, while PSTS, PFLG, and PCTL are all active low.
Mode A2-digit hexidecimal number that onfigures handshake and data port
mode. The most significant digit configures the data port.
HP 98622 compatibility mode:
0 = No DOUT clear at reset
1 = Clear DOUT at reset
Enhanced (bi-directional DINs) data port:
2 = No DOUT clear at reset
3 = Clear DOUT at reset
The least significant digit selects the PFLG/PCTL handshake mode.
0 = Full handshake
1 = Pulse handshake
2 =Async-Write/Pulse-Read handshake
For example, 0x10 specifies compatibility mode with DOUT cleared on reset and
full handshaking.
Read Clock (read_clk) Determines when data input registers are latched. The
first hex digit is for the upper (most significant) byte. Second hex digit is for the
lower byte. Valid values for each digit are:
0 = when register is read
1 = at busy edge
2 = at ready edge
Delay The delay (settling time) from data write to PCTL set:
0 = 200 nanoseconds
1 = 400 nanoseconds
2 = 700 nanoseconds
3 = 1.2 microseconds
4 = 2 microseconds
5 = 5 microseconds
6 = 10 microseconds
7 = 50 microseconds
9
Table of contents
Other TAMS PCI Card manuals
Popular PCI Card manuals by other brands

Conrad Electronic
Conrad Electronic 97 46 71 operating instructions

Micro Innovations
Micro Innovations USB650A Quick installation guide

KTI Networks
KTI Networks KF-310 user guide

Asus
Asus SpaceLink WL230 user manual

SIIG
SIIG SC2475 Quick installation guide

TRENDnet
TRENDnet TEW-703PI Quick installation guide













