Bit clear bn – Measurement Computing Digital232 User Manual

Page 26

Advertising
background image

Section 3

Command Descriptions

3.4

BIT CLEAR Bn

The Bit Clear command will clear to a logic zero an output bit described by the

argument 'n'. Clearing a bit may represent either a 0 volt or +5 volt output, depending
on whether an Invert command (I16) has been sent. If data is active high (default
condition), then Bit Clear outputs 0 volts. When multiple Bit Clear commands are
used in the same command string, an Execute command (X) must follow each
command.

The bit which is being cleared must have been defined as an output by the

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

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

is sent.

Bn

Bit n (1 thru 40) is cleared to a logic 0

Example:

@

reset the Digital232

C5

configure all ports as output

A7XA8XA9

set bits 7, 8, and 9 to +5 volts

B7

clear bit 7 to zero volts

B8XB9

clear bits 8 and 9 to zero volts

Advertising