beautypg.com

Bit set an – Measurement Computing Digital232 User Manual

Page 25

background image

Section 3

Command Descriptions

3.3

BIT SET An

The Bit Set command programs a logic one output to a bit described by the

argument 'n'. Setting a bit may represent either a +5 volt or 0 volt output, depending
on whether an Invert command (I16) has been sent. If data is active high (default
condition), Bit Set outputs +5 volts. If multiple bits are to be set within the same
command string, an Execute command (X) must be included after every Bit Set
command.

The bit which is being set must have been configured as an output bit by the

Configure command to be valid, otherwise the Digital232 will generate a Conflict
Error.

The Strobe and Inhibit output lines are not pulsed when the Bit Set command is

sent.

An

Bit n (1 thru 40) is set to logic one

Example:

@

reset the Digital232

C5

configure all ports as output

A22

set bit 22 to a logic one

A23XA24

set bits 23 and 24 to a logic one