RTD Embedded Technologies, Inc.
|
www.rtd.com
46
DM35425HR User’s Manual
6.5
BAR2
–
Advanced Digital I/O Functional Block
This function block is for 32 bi-directional digital I/O. The Advanced Digital I/O (ADIO) Function block has multiple channels. There are 3
channels in this functional block: IN, OUT and DIRECTION. Each channel has its own FIFO and DMA channel.
Table 21: Digital I/O Functional Block
Offset
0x03
0x02
0x01
0x00
H
ea
de
r
FB + 0x00
FB_ID
FB + 0x04
FB_DMA_BUFFERS
FB_DMA_CHANNELS
Reserved
Reserved
D
igital I/O
C
on
trol
FB + 0x08
STOP_TRIG
START_TRIG
CLK_SRC
MODE_STATUS
FB + 0x0C
CLK_DIV
FB + 0x10
CLK_DIV_CNTR
FB + 0x14
PRE_TRIGGER_CAPTURE (limited by FIFO size)
FB + 0x18
POST_STOP_CAPTURE
FB + 0x1C
SAMPLE_CNT
FB + 0x20
INT_ENA (Conversion, Start, Stop, Error, Channel)
FB + 0x24
INT_STAT
Reserved
FB + 0x28
CLK_BUS3
CLK_BUS2
Reserved
FB + 0x2C
CLK_BUS7
CLK_BUS6
CLK_BUS5
CLK_BUS4
D
igital I/O C
ha
nn
els
FB + 0x30
DIO_IN
FB + 0x34 DIO_OUT
FB + 0x38
DIO_DIR
FB + 0x3C
Reserved
ADV_INT_MODE
FB + 0x40
ADV_INT_MASK
FB + 0x44
ADV_INT_COMP
FB + 0x48
ADV_INT_CAPT
FB + 0x4C
Reserved
P_BUS_READY_EN
P_BUS_EN
D
igital I/O F
IF
O
FB + 0x50
CH_FIFO_ACCESS (DIO_IN)
FB + 0x54
CH_FIFO_ACCESS (DIO_OUT)
FB + 0x58
CH_FIFO_ACCESS (DIO_DIR)
6.5.1
FB_ID
(R
EAD
-O
NLY
)
This is the functional block ID. This register should read 0x01003001 for the Advanced Digital I/O functional block.
6.5.2
FB_DMA_CHANNELS
(R
EAD
-O
NLY
)
This register contains the number of DMA Channels in this Function Block. Each Channel contains a control register, and a set of Buffer
Descriptor Registers.
6.5.3
FB_DMA_BUFFERS
(R
EAD
-O
NLY
)
This register contains the number of Buffer Descriptors in each DMA Channel.
6.5.4
M
ODE
_S
TATUS
(R
EAD
/W
RITE
,
R
EAD
-O
NLY
)
Selects the current mode of operation and indicates its triggering status.
B[3:0]: Mode
o
0x04: Uninitialized. This is the power-on state. No converter initialization has taken place. Sampling is stopped, and all
counters are reset and the triggering state machine is reset. Transition to any of the other Modes will start converter
initialization (sampling will not start until initialization is complete).
o
0x00: Reset. Sampling is stopped. All counters are reset and the triggering state machine is reset.
o
0x01: Paused. Sampling is stopped, but the counters and triggering state machine maintain their state.
o
0x02: Go, Single-Shot. After converting the Post-Stop number of values, converting stops. The Mode must be set back
to RESET in order to convert more values.