4
Controlling the GPIO Interface
This chapter briefly describes how to configure the GPIO interface before
accessing it from a program by use of DIL subroutines.
It
then discusses the
capabilities and limitations of DIL subroutines when controlling the GPIO
interface.
Interface Configuration
The Series 300 GPIO interface is configured by setting several switches on the
interface card. The interface installation manual explains how each switch is
used and how it should be configured. Configurable functions associated with
these switches include:
• Data logic sense,
• Data handshake mode,
• Input data clock source.
Set the configuration switches according to the directions found in the GPIO
interface installation manual.
Creating the GPIO Interface File
After setting the necessary switches on your GPIO interface, install the card in
the computer then create an interface file for it as explained in Chapter 2. An
appropriate interface file must be created before the interface can be accessed
from HP-UX.
Controlling the GPIO Interface
4-1