Chapter 4
Programming
© National Instruments Corporation
4-11
AT-DIO-32F User Manual
CFG3 Register
The CFG3 Register contains 13 bits that control the Counter 1 and Counter 2 operations, clock
selection, and I/O port transfer mode.
Address:
Base a 04 (hex)
Type:
Write-only
Word Size:
16-bit
Bit Map:
15
14
13
12
11
10
9
8
DBLBUFB WRITED
WRITEB
TRANS32
WRITEC
WRITEA
CNT2SRC
CNT1SRC
7
6
5
4
3
2
1
0
DBLDMA
CNTINTEN CNT2HSEN CNT1HSEN
CNT2EN
CNT1EN
TCINTEN2
TCINTEN1
Bit
Name
Description
15
DBLBUFB
Port B Double-Buffer Enable Bit.
If DBLBUFB is set, Port B is double-buffered. When Port B is
configured as an output port, a write operation to the port loads
data into the first buffer of the port. When a REQ1 is received, the
data is transferred to the second buffer of the port, which dumps
the data to the digital I/O connector. Double-buffering is usually
used for pattern generation. If DBLBUFB is cleared, Port B is a
single buffer; that is, data written to the port is immediately
dumped to the digital I/O connector. When Port B is configured as
an input port and DBLBUFB is set, an active level or edge of a
REQ1 signal latches the data into the input buffer of Port B. A
read operation reads the data in the buffer instead of the I/O
connector. If DBLBUFB is cleared, the port is transparent; that is,
a read operation reads the data on the I/O connector.
14
WRITED
Port D Write/Read Bit.
When WRITED is set, Port D is configured for a write operation.
When WRITED is cleared, Port D is configured for a read
operation. If Port D is configured for a write operation, after every
LRESET2 this bit must first be cleared and then set again for
reintializing handshaking purposes (or clear and set DIODEN of
the CFG2 Register).
13
WRITEB
Port B Write/Read Bit.
When WRITEB is set, Port B is configured for a write operation.
When WRITEB is cleared, Port B is configured for a read
operation. If Port B is configured for a write operation, after every
LRESET1 this bit must first be cleared and then set again for
reintializing handshaking purposes (or clear and set DIOBEN of
the CFG1 Register).
Содержание AT-DIO-32F
Страница 19: ......
Страница 101: ......
Страница 102: ......
Страница 123: ......
Страница 124: ......
Страница 125: ......
Страница 126: ......
Страница 127: ......
Страница 128: ......
Страница 129: ......
Страница 130: ......
Страница 131: ......
Страница 132: ......
Страница 133: ......
Страница 134: ......
Страница 135: ......
Страница 136: ......
Страница 137: ......
Страница 138: ......
Страница 139: ......
Страница 140: ......
Страница 141: ......
Страница 142: ......
Страница 143: ......