PROGRAMING WITH THE PAMUX DRIVER
Pamux User’s Guide
3-7
SET BASE ADDRESS
0
Purpose:
Configures the driver with the base address of the AC28 to use when sending future commands.
Command Type:
Driver
Parameters:
COMMAND
Contains the value (zero).
VALUE ARRAY
The first element of this array contains a single value that selects the address.
Valid values are:
VALUE%(0)
Base Address
0
100 hex (default base address)
1
140 hex
2
180 hex
3
280 hex
8
2100 hex
9
2180 hex
10
2200 hex
11
2280 hex
Remarks:
To properly initialize the driver with the correct address of the AC28 card, send this command
before any other command.
The driver assumes a default AC28 base address of 100 hex. If a value greater than 12 is specified,
the driver returns a -6 in the ERRCOD% variable.
This command needs to only be sent once during initialization.
This command has no effect when using the driver resident in the LC4.
Example:
This example tells the driver to use 180 hex as the AC28 base address:
100
COMMAND% = 0
‘ Set base address command
110
VALUE%(0) = 2
‘ Value of 2 = 180 hex
120
GOSUB 1000
‘ Call the driver
.
.
1000
CALL Pamux(ERRCOD%,ADDRESS%,COMMAND%,POSITION%,VALUE%(0))
1010
IF ERRCOD% < 0 THEN GOTO 2000
1020
RETURN
Summary of Contents for PAMUX
Page 10: ...TABLE OF CONTENTS x Pamux User s Guide...
Page 14: ...TABLE OF CONTENTS xiv Pamux User s Guide...
Page 103: ...PROGRAMING WITH THE PAMUX DRIVER 3 42 Pamux User s Guide...
Page 121: ...PROGRAMING WITHOUT THE PAMUX DRIVER 4 18 Pamux User s Guide...
Page 125: ...TROUBLESHOOTING AND TIPS A 4 A 4 A 4 A 4 A 4 Pamux User s Guide...
Page 135: ...SPECIFICATIONS B 10 Pamux User s Guide...
Page 141: ...TEMPERATURE CONVERSIONS ROUTINES C 6 Pamux User s Guide...
Page 143: ...PRODUCT SUPPORT D 2 Pamux User s Guide...
Page 149: ...GLOSSARY E 6 Pamux User s Guide...