Instruction manual
Table Of Contents
- INTRODUCTION
- GETTING STARTED
- MAKING THE CONNECTIONS
- USING THE PC215E
- STRUCTURE AND ASSIGNMENTS OF THE REGISTERS
- Register Assignments
- Register Groups
- The Register Details
- Programmable Peripheral Interface PPI-X Data Register Port A
- Programmable Peripheral Interface PPI-X Data Register Port B
- Programmable Peripheral Interface PPI-X Data Register Port C
- Programmable Peripheral Interface PPI-X Command Register
- Programmable Peripheral Interface PPI-Y Data Register Port A
- Programmable Peripheral Interface PPI-Y Data Register Port B
- Programmable Peripheral Interface PPI-Y Data Register Port C
- Programmable Peripheral Interface PPI-Y Command Register
- Z1 Counter 0 Data Register
- Z1 Counter 1 Data Register
- Z1 Counter 2 Data Register
- Counter/Timer Z1 Control Register
- Z1 Counter/Timer Status Register
- Z2 Counter 0 Data Register
- Z2 Counter 1 Data Register
- Z2 Counter 2 Data Register
- Counter/Timer Z2 Control Register
- Z2 Counter/Timer Status Register
- Group Z Clock Connection Register
- Group Z Gate Connection Register
- Interrupt Source Selection Register
- Interrupt Status Register
- PROGRAMMING THE PC215E
- Copyright
- Files installed from the Distribution Diskette
- Windows DLL and Examples
- DOS 'C' Library and Examples
- Using the Dynamic Link Library
- Windows and DOS Library Functions
- Initialisation Functions
- Interrupt Control Functions
- Data Buffer Functions
- Timer/Counter Functions
- Differential Counter Functions
- Frequency Generation Functions
- Millisecond Stopwatch Functions
- Frequency Input and Output Functions
- Digitally- and Voltage-Controlled Oscillator Functions
- Digital Input/Output Functions
- Switch Scanner Matrix Functions
- Bi-Directional Data Bus Functions
- PC215E Library Error Codes
- PC215E Interface Guide For LABTECH NOTEBOOK
- Guide to User Programming
- Signal Centre
- CONTENTS
- DECLARATION OF CONFORMITY

PC215E Page 56
6.4.1 Borland C++ User Information
1) Ensure that the library DIO_TC.C and the header file DIO_TC.H are in a directory where the
compiler can locate them. Failure to find these files may cause ‘unresolved external’
compilation errors.
2) At the beginning of the application program, add the following line:
#include "DIO_TC.H"
3) Add the file DIO_TC.C to the project list in the environment and use the MAKE command to
compile and link.
6.4.2 Microsoft C/C++ User Information
1) Ensure that the library DIO_TC.LIB and the header file DIO_TC.H are in a directory where
the compiler can locate them. Failure to find these files may cause ‘unresolved external’
compilation errors.
2) At the beginning of the application program, add the following line:
#include "DIO_TC.H"
3) Compile the Microsoft C/C++ DIO_TC library with the following command-lines:
cl -Ml -c DIO_TC.C
lib DIO_TC.LIB +DIO_TC.OBJ
4) Compile the application program using the large model and linking with the DIO_TC library
by typing the following command line:
cl -Ml myprog.c -link DIO_TC.LIB
6.5 Using the Dynamic Link Library
6.5.1 Visual Basic
To open one of the Visual Basic example projects provided with the DLL, from within Microsoft
Visual Basic select 'File|Open Project...' and select one of the .MAK project files provided in the
WINDOWS\VB subdirectory of the PC215E software directory. The project window will now
appear on the desktop. Double-click on any file in the project to view the source code, or select
Run to run the program.
To create your own PC215E Visual Basic program from scratch, perform the following steps:
• From within Microsoft Visual Basic, select 'File|New Project'. A new project window
will appear, into which the standard Visual Basic Control (VBX) files are automatically
loaded. Also an empty Form1 design window will appear.
• Select 'File|Add file...' and select the following files from the WINDOWS\VB
subdirectory of the PC215E software directory:
DIO_TC.BAS - PC215E DLL declarations and global constants
REGISTER.FRM - Board registration form
CONSTANT.TXT - Visual Basic global constants