
© National Instruments Corporation vii GPIB-LPT User Manual
Contents
Section One
Introduction .................................................................................................................1-1
Features............................................................................................................................1-1
What Your Kit Should Contain ...................................................................................... 1-3
Optional Equipment ........................................................................................................1-3
Section Two
Configuration and Installation
..................................................................2-1
Configuration .................................................................................................................. 2-2
Switch and Jumper Settings ................................................................................2-3
Base I/O Address and Interrupt Selection ...........................................................2-3
Listen Address and Control Function Selection ..................................................2-5
Installation........................................................................................................................2-8
Section Three
Function Description
...........................................................................................3-1
Address Decoding ..........................................................................................................3-2
Configuration Jumpers ...................................................................................................3-2
Data and Control Latches ................................................................................................ 3-2
Data Transceivers ............................................................................................................3-2
Data Wrap, Control Wrap and Status Buffers ................................................................3-2
External Device Listen Address Switch .......................................................................... 3-2
GPIB Handshaking ......................................................................................................... 3-3
GPIB Addressing ........................................................................................................... 3-3
Section Four
Running Diagnostic Tests
................................................................................4-1
The GPIB-LPT Test Commands .................................................................................... 4-1
-1 printer test .......................................................................................................4-1
-2 plotter test .......................................................................................................4-2
-c change LPT configuration ............................................................................... 4-3
-q quit ..................................................................................................................4-3
Section Five
Programming the GPIB-LPT
.......................................................................5-1
The GPIB-LPT Registers ................................................................................................ 5-1
Data Register (DATA) ........................................................................................ 5-2
Status Register (STAT) .......................................................................................5-3
Control Register (CTRL) .................................................................................... 5-5
Programming Considerations .........................................................................................5-6
Using the GPIB-LPT with the DOS Operating System .....................................5-6
Using the GPIB-LPT with C and BASIC ...........................................................5-6
Acessing the Parallel Port in C ................................................................5-7
Acessing the Parallel Port in BASIC ...................................................... 5-7