
MMC2001
PROGRAMMING REFERENCE
MOTOROLA
REFERENCE MANUAL
C-45
PCx — Port Control Bit x
0 =
Corresponding pin is configured as GPIO pin
1 =
Corresponding pin is configured as UART pin
At reset, these bits are cleared to zero.
C.9.9 UART Data Direction Register (UDDR)
This register controls the direction of UART GPIO pins.
Figure C-44 UART Data Direction Register
PDCx — Port Direction Control Bit x
0 =
Corresponding GPIO pin is configured as input
1 =
Corresponding GPIO pin is configured as output
At reset, these bits are cleared to zero.
C.9.10 UART Port Data Register (UPDR)
The UART port data register is used to read or write data to or from UART GPIO pins.
X = Undefined
Figure C-45 UART Port Data Register
PDx — Port Data Bit x
These bits are used to read or write data from/to the corresponding port pins if they
are configured as GPIO (by PC[3:0] bits in UPCR). If a port pin x is configured as a
GPIO input, then the corresponding PDx bit will reflect the value present on this pin. If
a port pin x is configured as a GPIO output, then the value written into the corre-
sponding PDx bit will be reflected on the pin.
Note that since the CTS and RTS pins are not present for UART1, the corresponding
port control register bits should be configured in a manner which provides determinis-
tic data when the port data register is read. One method for doing this is to configure
the missing pins as general-purpose outputs.
U0DDR — UART0 Data Direction Register
1000908C
U1DDR — UART1 Data Direction Register
1000A08C
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R
0
0
0
0
0
0
0
0
0
0
0
0
PDC3
PDC2
PDC1
PDC0
W
RESET:
0
0
0
0
U0PDR — UART0 Port Data Register
1000908E
U1PDR — UART1 Port Data Register
1000A08E
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R
0
0
0
0
0
0
0
0
0
0
0
0
PD3
PD2
PD1
PD0
W
RESET:
X
X
X
X
Freescale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc.
..