BBPORT

Command:

CONNECT BBPORT

Command Syntax:

CONNECT BBPORT [MASK value]

Range

Describe:

When the optional MASK is not specified, this command connects all 10 BB pins to the BBPORT object as digital I/O pins.

The optional MASK parameter may be used to selectively connect specific pins. The mask value may be specified in decimal, binary, or hexadecimal format. For example, 1023 or 0X3FF selects all 10 pins and is the default internal mask value used by the BBPORT object if a MASK is not specified.

 

Another example: If only pins BB1 and BB2 are going to be used, a mask value of 3 or 0x03 will select on the two pins.

Result:

If not MASK is specified, the program can read/write to all pins of BBPORT.

If a MASK is specified, the program can write to the specified pins.

Type or
Addressable Component:

Sensor