
General Purpose Input/Output
LH75400/01/10/11 (Preliminary) User’s Guide
21-18
6/17/03
21.2.3.15 Port G Data Direction Register
PGDDR is the Port G Data Direction Register. The active bits used in this register are Read/
Write. Bits set in PGDDR set the corresponding PG pin to be an output:
• Bit [7] controls pin 116 when the pin is configured as PG7. It does not control pin 116
when the pin is configured as CTCAP0B or CTCMP0B.
• Bit [6] controls pin 117 when the pin is configured as PG6. It does not control pin 117
when the pin is configured as CTCAP0A or CTCMP0A.
• Bit [5] controls pin 118 when the pin is configured as PG5. It does not control pin 118
when the pin is configured as CTCLK.
• Bit [4] controls pin 120 when the pin is configured as PG4. It does not control pin 120
when the pin is configured for LCDVEEEN or LCDMOD.
• Bit [3] controls pin 121 when the pin is configured as PG3. It does not control pin 121
when the pin is configured as LCDVDDEN.
• Bit [2] controls pin 122 when the pin is configured as PG2. It does not control pin 122
when the pin is configured as LCDDSPLEN or LCDREV.
• Bit [1] controls pin 123 when the pin is configured as PG1. It does not control pin 123
when the pin is configured as LCDCLS.
• Bit [0] controls pin 124 when the pin is configured as PG0. It does not control pin 124
when the pin is configured as LCDPS.
Clearing a bit configures the pin to be an input. A System Reset clears all bits.
NOTE: The LCDMOD, LCDREV, LCDCLS, and LCDPS functions apply to the LH75401 and LH75411
SoC devices only.
Table 21-31. PGDDR 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 G 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-32. PGDDR Register Definitions
BITS
NAME
FUNCTION
31:8
///
Reserved
Writing to these bits has no effect. Reading returns 0.
7:0
Port G Data Direction
Port G Output/Input
Bits set = Port G output.
Bits cleared = Port G input.