beautypg.com

P - port select…… 64, P - port select – Measurement Computing Digital488/80A User Manual

Page 70

background image

P - Port Select

SYNTAX

Pn

Select port(s)

n

for data I/O, where

n =

value from

0

to

5

.

P0

(Default) Select all 5 ports.

P1

Select Port 1.

P2

Select Port 2.

P3

Select Port 3.

P4

Select Port 4.

P5

Select Port 5.

P?

Returns current port(s) selection

n

.

DESCRIPTION

The Port Select (

P

) command determines which port is selected for data input/output. In the default mode

P0

, all 5

ports are selected. Modes

P1

through

P5

select a specific 8-bit port.


It is recommended that the Bus Input/Output (

G

) command be used with mode

P0

to select which type of port data

(input or output) is sent, when the Digital488/80A is addressed to Talk. Data in modes

P1

through

P5

are input or

output in groups of 8 bits.

EXAMPLE

PRINT#1,"CLEAR08"

Line 1: Reset the Digital488/80A.

PRINT#1,"OUTPUT08;P4X"

Line 2: Select Port 4.

64 Digital488/80A Commands

967695

Digital488/80A User's Manual