beautypg.com

Appendix a-digital232 command summary, Digital 232 command summary – Measurement Computing Digital232 User Manual

Page 53

background image

Appendix A

Digital232 Command Summary

A.1

Digital 232 Command Summary

Command

Code

Description

Bit Set

An

Set bit n (1 thru 40)

Bit Clear

Bn

Clear bit n (1 thru 40)

Output

G0

Input and Output port data is output

G1

Only Input port data is output

G2

Only Output port data is output

Configure

C0

All ports are inputs

C1

Port 1 is an output, ports 2 thru 5 are inputs

C2

Ports 1 and 2 are outputs, ports 3 thru 5 are inputs

C3

Ports 1 thru 3 are outputs, ports 4 and 5 are inputs

C4

Ports 1 thru 4 are outputs, port 5 is an input

C5

All ports are outputs

Data

Dn..Z

Data to be outputted is entered after "D" and
terminated by "Z"

Data Ready

R0

Data is transmitted to the host computer via the
serial port upon receipt of an R0 command

R1

Data is latched on an EDR transition, and
transmitted to the host via the serial port

R2

Data is transmitted to the host via the serial port
after receipt of a serial terminator

Execute

X

Execute preceding command string

Format

F0

ASCII Hexadecimal

F1

ASCII Charater

F2

ASCII Binary

F3

ASCII Decimal

F4

Binary