Description: This function writes an 8 bit byte to an I/O port.
Returns: Nothing
Usage: Script or Steady State
Format: Out(, Value)
Parameters: Port { numeric } { required } { no default }
Any numeric expression giving the I/O address of the port to write. Port must be in the range 0 to 65535.
Value { numeric } { required } { no default }
Any numeric expression giving the byte to write. Value must be in the range 0 to 255.
Comments: This function requires that the VTSIO driver be installed. Please refer to the topic, Communicating Directly With Hardware for more details.
If Port or Value is out of range or invalid, nothing is written. If this statement appears in a state, Value is written when its value changes; if it is in a script, Value is written when the script is executed.
Example:
Out(0x300, reg);
This writes reg to CPU output port 300 (hex).
See Also: