RTD Embedded Technologies, Inc.
|
www.rtd.com
42
DMx820 User’s Manual
PORTx_TRISTATE
This register selects if each bit in Port 0, Port 1, or Port 2 is an input or an output.
15
14
13
12
11
10
9
8
Px_15
Px_14
Px_13
Px_12
Px_11
Px_10
Px_9
Px_8
RW,+0
RW,+0
RW,+0
RW,+0
RW,+0
RW,+0
RW,+0
RW,+0
7
6
5
4
3
2
1
0
Px_7
Px_6
Px_5
Px_4
Px_3
Px_2
Px_1
Px_0
RW,+0
RW,+0
RW,+0
RW,+0
RW,+0
RW,+0
RW,+0
RW,+0
Field
Description
Px_[15:0]
Select input or output
’0’ = Input
’1’ = Output
PORTx_MODE
Selects if each pin in Port 0, Port 1, or Port 2 is a standard I/O (controlled by PORTx_TRISTATE) or a peripheral output (controlled by
PORTx_PERIPH_SEL).
15
14
13
12
11
10
9
8
Px_15
Px_14
Px_13
Px_12
Px_11
Px_10
Px_9
Px_8
RW,+0
RW,+0
RW,+0
RW,+0
RW,+0
RW,+0
RW,+0
RW,+0
7
6
5
4
3
2
1
0
Px_7
Px_6
Px_5
Px_4
Px_3
Px_2
Px_1
Px_0
RW,+0
RW,+0
RW,+0
RW,+0
RW,+0
RW,+0
RW,+0
RW,+0
Field
Description
Px_[15:0]
Port Mode
’0’ = Standard I/O (controlled by PORTx_ TRISTATE)
’1’ = Peripheral (controlled by PORTx_PERIPH_SEL)
PORTx_PERIPH_SEL_L
This register selects the peripheral for Port 0, Port 1, or Port 2 when it is a peripheral output (i.e. PORTx_MODE[] = ‘1’).
This register selects
the peripheral for bits [7:0].
15
14
13
12
11
10
9
8
Px_7
Px_6
Px_5
Px_4
RW,+00
RW,+00
RW,+00
RW,+00
7
6
5
4
3
2
1
0
Px_3
Px_2
Px_1
Px_0
RW,+00
RW,+00
RW,+00
RW,+00
PORTx_PERIPH_SEL_H
This register selects the peripheral for Port 0, Port 1, or Port 2 when it is a peripheral output (i.e. PORTx_MODE[] =
‘1’). This register selects
the peripheral for bits [15:8].
15
14
13
12
11
10
9
8
Px_15
Px_14
Px_13
Px_12
RW,+00
RW,+00
RW,+00
RW,+00
7
6
5
4
3
2
1
0