Measurement-computing Digital232 Manuale Utente Pagina 28

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 59
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 27
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
Vedere la pagina 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 58 59

Commenti su questo manuale

Nessun commento