RTD Embedded Technologies, Inc.
| www.rtd.com
49
DM35418HR/DM35218HR
User’s Manual
BDM-610010041 Rev F
6.6
BAR2: Digital I/O (DIO)
This function block is for 32 bi-directional digital I/O. There are not any interrupts or DMA.
6.6.1
F
UNCTION
B
LOCK
R
EGISTER
M
AP
Table 25: 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
DIO
C
on
tro
l
FB + 0x08
DIO_INPUT_VAL
FB + 0x0C
DIO_OUTPUT_VAL
FB + 0x10
DIO_DIRECTION
6.6.2
DIO_INPUT_VAL
(R
EAD
O
NLY
)
This register provides the current value on the Digital I/O lines. The bits in the register correspond with the Digital I/O pins as follows:
Bit
CN3 Pin Number
Signal Name
31
34
DIO0.31
30
33
DIO0.30
29
32
DIO0.29
28
31
DIO0.28
27
30
DIO0.27
26
29
DIO0.26
25
28
DIO0.25
24
27
DIO0.24
23
26
DIO0.23
22
25
DIO0.22
21
24
DIO0.21
20
23
DIO0.20
19
22
DIO0.19
18
21
DIO0.18
17
20
DIO0.17
16
19
DIO0.16
Bit
CN3 Pin Number
Signal Name
15
16
DIO0.15
14
15
DIO0.14
13
14
DIO0.13
12
13
DIO0.12
11
12
DIO0.11
10
11
DIO0.10
9
10
DIO0.9
8
9
DIO0.8
7
8
DIO0.7
6
7
DIO0.6
5
6
DIO0.5
4
5
DIO0.4
3
4
DIO0.3
2
3
DIO0.2
1
2
DIO0.1
0
1
DIO0.0
6.6.3
DIO_OUTPUT_VAL
(R
EAD
/W
RITE
)
The value to be output if the pins are configured as output. Bit assignments are the same as above.
6.6.4
DIO_DIRECTION
(R
EAD
/W
RITE
)
Selects the direction of the I/O bit. 0=input, 1=output. Bit assignments are the same as above.
All pins default to inputs at power-up.