beautypg.com

Measurement Computing Digital232 User Manual

Page 33

background image

Section 3

Command Descriptions

3.11

prefix (D) and a suffix (Z). If the amount of data sent is less than the number

of bits programmed as outputs, the least-significant bits will contain the data
sent and the most-significant bits will be cleared to logic zero. If the data sent
is greater than the number of bits programmed for output or selected by the Pn
command, the Digital232 will generate a conflict error and ignore the entire
command string. The Data Strobe output is pulse for approximately 50
microseconds after new data is output on the selected port(s).

Example:

F3

select decimal mode

R0

read data from the Digital232, display shows 240;165

D100;200Z

output 100 & 200 to the Digital232

R0

read data from the Digital232, display shows 100;200

F4 Format - Binary

In the F4 binary format the Digital232 expects the "D" prefix followed by

five bytes of data beginning with PORT5 without the "Z" suffix. If any digital
I/O port is configured as an input, the data to that input port will be ignored and
no error will be generated.

When data is requested from the Digital232 (R0) it asserts Inhibit, reads

the data from all ports, unasserts Inhibit and outputs 5 bytes beginning with
PORT5. Serial terminators are appended to the output. After output the
Digital232 must be requested to perform subsequent reads. EDR (R1) may
also be used to capture data in this format.

Example:

F4

select the binary mode

D!&Jg(Z

the binary representation of the characters
!&Jg( will be output to the digital I/O port