Configure cn – Measurement Computing Digital488 User Manual
Page 35

Section 3 Command Descriptions
3.5
Configure Cn
Ports 1 thru 5 are configured as inputs or outputs with the Configure command.
Each port is eight bits wide. At power-on, all ports are initialized as inputs. The
Configure command is usually the first command to be sent after power on. All ports
programmed as outputs will be set to a logic zero after receiving the Configure
command. The actual output level is dependent on the Invert command (I16).
Cn Mode n (0 thru 5) defines which ports are input and output
Port
5
4
3 2
1
C0 in
in
in
in
in
C1 in
in
in
in
out
C2 in
in
in
out
out
C3 in
in
out
out
out
C4
in
out
out
out
out
C5
out
out
out
out
out
in = programmed as an input port
out = programmed as an output port
Example:
CLEAR 718
reset the Digital488
OUTPUT 718;"C1X"
select port 1 as output, ports 2 thru 5
as inputs