Command 2109: Sets the specified memory I/O port in bytes
Simultaneously sets 8 memory I/O bits.
Command Syntax
| bit | Name | Description | |
|---|---|---|---|
| Parameter 1 | 15 | bytePortNumber | Specifies the byte port of the memory I/O. |
| 14 | |||
| | | |||
| 1 | |||
| 0 |
| bit | Name | Description | |
|---|---|---|---|
| Parameter 2 | 15 | reserved | Returns “0”. |
| | | |||
| 8 | |||
| 7 | outData | Returns the output pattern of the output group specified by portNumber by an integer from 0 to 255. | |
| 6 | |||
| 5 | |||
| 4 | |||
| 3 | |||
| 2 | |||
| 1 | |||
| 0 |
Response Syntax
Refer to the following.
Description
The command simultaneously sets eight memory I/O bits using the combination of portNumber and outData values. The portNumber parameter specifies which group of 8 outputs to be used.
For example, if portNumber = 0, output bits 0-7 are used. If portNumber = 1, output bits 8-15 are used..
Once portNumber is selected, a specific output pattern must be defined using the outData parameter. The outData parameter is an integer value between 0-255.
The tables below show combination examples of I/O and their associated outData values when portNumber is 0 or 1 accordingly.
Output Settings When portNumber = 0 (Output number)
| outData Value | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|
| 01 | off | off | off | off | off | off | off | on |
| 02 | off | off | off | off | off | off | on | off |
| 03 | off | off | off | off | off | off | on | on |
| 08 | off | off | off | off | on | off | off | off |
| 09 | off | off | off | off | on | off | off | on |
| 10 | off | off | off | on | off | off | off | off |
| 11 | off | off | off | on | off | off | off | on |
| 99 | off | on | on | off | off | off | on | on |
| 255 | on | on | on | on | on | on | on | on |
Output Settings When portNumber = 1 (Output number)
| outData Value | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
|---|---|---|---|---|---|---|---|---|
| 01 | off | off | off | off | off | off | off | on |
| 02 | off | off | off | off | off | off | on | off |
| 03 | off | off | off | off | off | off | on | on |
| 08 | off | off | off | off | on | off | off | off |
| 09 | off | off | off | off | on | off | off | on |
| 10 | off | off | off | on | off | off | off | off |
| 11 | off | off | off | on | off | off | off | on |
| 99 | off | on | on | off | off | off | on | on |
| 255 | on | on | on | on | on | on | on | on |
Example
When outputting 254 to Port #1.
| Command | Response |
| 083DH 0001H 00FEH | 083DH 0000H 0000H |