Pamux User’s Guide 65
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
11 0 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
PROGRAMING WITH THE PAMUX DRIVER