![Data Translation DT9840 Series User Manual Download Page 61](http://html.mh-extra.com/html/data-translation/dt9840-series/dt9840-series_user-manual_511263061.webp)
Register Description
61
Digital I/O Subsystem
The DT9841-VIB provide 16 digital I/O signals (ports 0 and 1). Bit 0 of digital port 2 is used as
the SCL clock and bit 1 of digital port 2 is used as the SDA data output; the remaining bits (2-7)
of digital port 2 are reserved. You must turn streaming writes to digital port 2 off; see
for more information.
All other DT9840 Series modules provide 24 digital I/O signals (ports 0, 1, and 2). You can
program each port for input or output using bits 17, 18, and 19 of the Hardware Control and
Status register, described in
. As inputs, the data on the ports is sampled at
25 MHz.
To read all the digital ports at once, use register 0xB0004020. To write to all the digital ports at
once, use register 0xB0008008. To read or write to digital port 0 only, use register 0xB0010004.
To read or write to digital port 1 only, use register 0xB0010008. To read or write to digital port
2 only, use register 0xB001000C. Refer to
for more information on these
registers.
When port 0 is configured as an input port, you can program the mask register located at
address 0xB0010000 to generate an interrupt when any bit of port 0 changes state. In this
mode, the sample rate changes to 1 MHz. Refer to
for more information on
this register. To enable the interrupt, set bit 21 of the Hardware Control and Status register,
described in
. The data is right justified, aligning with digital port 0.
Additionally, you can minimize false triggers due to noise on digital input port 0 by enabling
a 10 ms deglitch function using bit 20 of the Hardware Control and Status register, described
in
.
All digital inputs are +5 V tolerant. All digital outputs include diode protection to isolated
ground and is5 V. The outputs are disabled on power-up and remain in the previous
state on USB reset.
Summary of Contents for DT9840 Series
Page 1: ...DT9840 Series UM 19197 T User s Manual Title Page ...
Page 4: ......
Page 44: ...Chapter 1 44 ...
Page 76: ...Chapter 2 76 ...
Page 98: ...Appendix A 98 ...
Page 124: ...Appendix B 124 ...