Data dn....z – Measurement Computing Digital232 User Manual

Page 28

Advertising
background image

Section 3

Command Descriptions

3.6

DATA Dn....Z

The Data command outputs up to 40 bits of data to the output ports. The number

of bits which can be sent with the Data command is limited by the number of bits
programmed as outputs. For formats F0 through F3, if the amount of data sent is less
than the 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 a
single port is selected with the Port command, only eight bits may sent with the Data
command. The Data Strobe output is pulse for approximately 50 microseconds after
new data is output on the selected ports.

For formats F0 through F3, data sent by the controller is contained within a prefix

(D) and a suffix (Z). In format F4, the five bytes immediately following the prefix (D)
is interpreted as data and the suffix (Z) is not used. Refer to the Fn command for
additional details.

Dn...Z n... represents the data to be output, terminated by Z.
(note: in the F4 mode, the Z terminator is not allowed)

Example:

@

reset the Digital232

C5P1

configure all ports as output, select port 1

D55Z

send "55" to port 1

R0

read data from port 1,
display shows 55

P0

select all ports

D1234567890Z

send data to all 40 bits

R0

read data from the Digital232,
display shows 1234567890

Advertising