
General Purpose Input/Output
LH75400/01/10/11 (Preliminary) User’s Guide
21-10
6/17/03
21.2.3.7 Port C Data Direction Register
PCDDR is the Port C Data Direction Register. The active bits used in this register are
Read/Write.
Bits set in the PCDDR Register set the corresponding PC pin to be an output:
• Bit [7] controls pin 32 when the pin is configured as PC7. It does not control pin 32 when
the pin is configured as A23.
• Bit [6] controls pin 33 when the pin is configured as PC6. It does not control pin 33 when
the pin is configured as A22.
• Bit [5] controls pin 35 when the pin is configured as PC5. It does not control pin 35 when
the pin is configured as A21.
• Bit [4] controls pin 36 when the pin is configured as PC4. It does not control pin 36 when
the pin is configured as A20.
• Bit [3] controls pin 37 when the pin is configured as PC3. It does not control pin 37 when
the pin is configured as A19.
• Bit [2] controls pin 38 when the pin is configured as PC2. It does not control pin 38 when
the pin is configured as A18.
• Bit [1] controls pin 39 when the pin is configured as PC1. It does not control pin 39 when
the pin is configured as A17.
• Bit [0] controls pin 40 when the pin is configured as PC0. It does not control pin 40 when
the pin is configured as A16.
Clearing a bit configures the pin to be an input. A System Reset clears all bits.
Table 21-15. PCDDR Register
BIT
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
FIELD
///
RESET
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
RW
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
BIT
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
FIELD
///
Port C Data Direction
RESET
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
RW
R
R
R
R
R
R
R
R
RW
RW
RW
RW
RW
RW
RW
RW
ADDR
0xFF 0x08
Table 21-16. PCDDR Register Definitions
BITS
NAME
FUNCTION
31:8
///
Reserved
Writing to these bits has no effect. Reading returns 0.
7:0
Port C Data Direction
Port C Output/Input
Bits set = Port C output.
Bits cleared = Port C input.