beautypg.com

Port pn – Measurement Computing Digital232 User Manual

Page 38

background image

Section 3

Command Descriptions

3.16

Port Pn

The Port command determines which port is selected for output and input data.

In the default mode (P0), all ports are selected. The P1 thru P5 commands select a
specific eight bit port.

The Output Select (Gn) command is used to determine whether input or output

port data is sent out the serial port when requested. Data in modes P1 through P5 is
input or output in groups of eight bits.

P0

All five ports are selected

P1

Port 1 is selected

P2

Port 2 is selected

P3

Port 3 is selected

P4

Port 4 is selected

P5

Port 5 is selected

Example:

@

reset the Digital 232

P4

select port 4