CP380
Programming
ID 19313, Rev. 0100
Page 4 - 3
®
PEP Modular Computers GmbH
4. Programming
4.1 High Level Language Programming
For high level language programming, the following files are required:
•
ME9x_32.DLL
(CP380 family system driver DLL in the Windows system directory)
•
MEDLG32.DLL
(Dialogue DLL in the Windows system directory)
•
ME9x.H, ME9x.PAS
or
ME9x.BAS
(CP380 family header/include files matching
programming environment)
•
MEDEFS.H, MEDEFS.PAS
or
MEDEFS.BAS
(CP380 family macro definitions
matching the programming environment)
•
ME9x.32.LIB, ME9x.BC.LIB
(CP380 library file for Visual C++/Borland C)
Make sure that the paths required to find the above files are set correctly in the compiler
and linker.
4.1.1
C Programming
The header files (
ME9x.H
), including the definitions of the API function calls, have to be
linked into your project for Visual C++, version 4.0 or later. If macro definitions are used,
the header file
MEDEFS.H
must also be linked into the project. Please be sure to read
the notes in these files.
4.1.2
Delphi Programming
The TPU source files (
ME9x.PAS
), including the definitions of the API function calls,
have to be linked into your project for Delphi version 2.0 or later. If macro definitions are
used, the macro definition file (
MEDEFS.PAS
) must also be linked into the project.
Please be sure to read the notes in these files.
4.1.3
Basic Programming
The include files (
ME9x.BAS
), including the definitions of the API function calls, have to
be linked into your project for Visual Basic version 4.0 or later. If macro definitions are
used, the macro definition file (
MEDEFS.BAS
) must also be linked into the project.
Please be sure to read the notes in these files.
4.1.4
Example Programs
To facilitate understanding of programming the boards, some example programs are
provided with source code. These example programs are automatically installed in the
$
$
Important Note:
Interrupt service functions (e. g. _me94EnableInt) are not sup-
ported under Visual Basic.
Summary of Contents for CP380
Page 2: ... PEP Modular Computers GmbH This page was intentionally left blank ...
Page 12: ... PEP Modular Computers GmbH This page was intentionally left blank ...
Page 26: ... PEP Modular Computers GmbH This page was intentionally left blank ...
Page 28: ... PEP Modular Computers GmbH This page was intentionally left blank ...
Page 34: ... PEP Modular Computers GmbH This page was intentionally left blank ...
Page 38: ... PEP Modular Computers GmbH This page was intentionally left blank ...
Page 42: ... PEP Modular Computers GmbH This page was intentionally left blank ...
Page 44: ... PEP Modular Computers GmbH This page was intentionally left blank ...
Page 68: ... PEP Modular Computers GmbH This page was intentionally left blank ...