User's Manual
Using terminal commands
34
• The Command Code specifies the operation that will be applied to the
selected port. They are explained in the table below.
Code Description Parameters Returns
0000 RDP – Read Data Port. This
command reads the whole 16-bit
port and returns its value; the Port
Number has no significance for this
command
None
A 16-bit integer and
the result (OK or
ERROR). Only the
lowest four significant
bits reflect valid ports
for the A733
0001 RDDR – Read Data Direction
Register. This command reads the
whole 16-bit Data Direction Register
and returns its value; the Port
Number has no significance for this
command.
None A 16-bit integer and
the result (OK or
ERROR).
0010 CAI – Configure the port specified by
Port Number as input (acts upon the
Data Direction Register).
The port
number
Result (OK or
ERROR).
0011 CAO – Configure the port specified
by Port Number as output (acts upon
the Data Direction Register).
The port
number
Result (OK or
ERROR).
0100 RBV – Read the specified bit.
The port
number
Bit value and the
result (OK or
ERROR).
0101 RNS – Read the notification
2
status.
If no notification was pending, this
command returns an error. Even in
this case the time stamp of the last
valid notification is returned. If a
notification was pending, it will be
cleared.
The port
number
Returns the time of
the last port change in
standard time format
and the result (OK or
ERROR).
0110 DNOPC – Disable Notify On Port
Change.
The port
number
Result (OK or
ERROR).
0111 ENOPC – Enable Notify On Port
Change.
The port
number
Result (OK or
ERROR).
1000 RPNNER – Read the Pending
Notifications and the Notification
Enable Register. This command
returns the 16-bit Pending
Notifications and the Notification
None
Two 16-bit integers
(first the PN and then
the NE register) and
the result (OK or
ERROR).
2
See also “Notifications” on page 43.