PROGRAMING WITHOUT THE PAMUX DRIVER
Pamux User’s Guide
4-3
Figure 4-2: Read Timing on the Pamux Bus
DIRECT PROGRAMMING OF PAMUX STATIONS WITH AC28
The remainder of this chapter presents important information on reading from and writing to Pamux
stations. Several simplified examples illustrate the basics of Pamux driver programming using
BASIC’s INP function and OUT statement. These examples are written in MS-DOS QBasic, available
on most PCs configured with MS-DOS 5.0 and above.
For more complete examples that handle error checking and provide a set of functions, see the
Pamux.DLL source code, which is written in C/C++. This source code is found on the Pamux driver
disk (in the WIN\SOURCE directory) and on the Opto 22 BBS.
VARIABLES USED IN EXAMPLES
This variable is the I/O port address for the AC28 data port. This value corresponds to the “A”
jumpers on the AC28.
CONST MyAc28IoPort% = &H100
This variable is the I/O port address for the AC28 reset port. This value corresponds to the “R”
jumpers on the AC28.
CONST MyAc28ResetPort% = &H1E0
‘ Base I/O address for reset
register
This variable determines the reset level of the AC28. This value corresponds to the jumper setting on
the brain boards. This example assumes an active-high reset level.
CONST MyAc28ResetLevel% = -1
‘ Turn reset on
Содержание PAMUX
Страница 10: ...TABLE OF CONTENTS x Pamux User s Guide...
Страница 14: ...TABLE OF CONTENTS xiv Pamux User s Guide...
Страница 103: ...PROGRAMING WITH THE PAMUX DRIVER 3 42 Pamux User s Guide...
Страница 121: ...PROGRAMING WITHOUT THE PAMUX DRIVER 4 18 Pamux User s Guide...
Страница 125: ...TROUBLESHOOTING AND TIPS A 4 A 4 A 4 A 4 A 4 Pamux User s Guide...
Страница 135: ...SPECIFICATIONS B 10 Pamux User s Guide...
Страница 141: ...TEMPERATURE CONVERSIONS ROUTINES C 6 Pamux User s Guide...
Страница 143: ...PRODUCT SUPPORT D 2 Pamux User s Guide...
Страница 149: ...GLOSSARY E 6 Pamux User s Guide...