PortPairConfig (Set Port Pair Voltage)

The PortPairConfig instruction is used to set up the voltage for a pair of terminals on the datalogger.

Syntax

PortPairConfig ( Port, Option, PullOpt [optional] )

Remarks

By default, digital ports are set up for 5V. They can be set to 3.3V using this instruction. Ports are configured in terminal pairs – if C1 is set to 3.3V using this instruction, C2 is also set to 3.3V.

Parameters

Port

Specifies the port to be configured using this instruction. Right click to display a drop-down list box of valid options.

Alphanumeric Description
C1 Datalogger control terminals 1 & 2
C3 Datalogger control terminals 3 & 4
U1 Universal terminal pair U1 (TX) & U2 (RX)
U3 Universal terminal pair U3 (TX) & U4 (RX)
U5 Universal terminal pair U5 (TX) & U6 (RX)
U7 Universal terminal pair U7 (TX) & U8 (RX)
U9 Universal terminal pair U9 (TX) & U10 (RX)
U11 Universal terminal pair U11 (TX) & U12 (RX)

Type: Constant

Option

Sets the voltage for the port. This parameter has the following options:

Code Description
1 5V (default)
2 3.3V

Type: Variable

Optional Parameter

PullOpt

Optional parameter that specifies the type of pull-up resistor to be used. If this parameter is left blank, the instruction defaults to 0 = pull down.

Code Description
0 Pull down (default)
1 Pull up

Type: Constant