66 Pamux User’s Guide
SET RESET ADDRESS 1
PURPOSE:
Configures the driver with the reset address of the AC28 to use when sending a reset command.
COMMAND TYPE:
Driver
PARAMETERS:
COMMAND Contains the value 1.
VALUE ARRAY The first element of this array contains a single value that selects the reset
address. Valid values are:
VALUE%(0) Reset Address
0 0E0 hex (default reset address)
1 1E0 hex
2 2E0 hex
3 3E0 hex
REMARKS:
To properly initialize the driver with the correct reset address of the AC28 card, send this command
before sending a reset command.
The driver assumes a default AC28 reset address of 0E0 hex. If a value greater than 12 is specified,
the driver returns a -6 in the ERRCOD% variable.
This command need 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 1E0 hex as the AC28 reset address.
100 COMMAND% = 1
‘ Set reset address command
11 0 VALUE%(0) = 1
‘ Value of 1 = 1E0 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