|
PC87591L-N05 Datasheet, PDF (110/401 Pages) National Semiconductor (TI) – LPC Mobile Embedded Controller | |||
|
◁ |
4.0 Embedded Controller Modules (Continued)
4.5 GENERAL-PURPOSE I/O (GPIO) PORTS
The PC87591L-N05 includes four types of General-Purpose I/O (GPIO) ports: Px, Py, Pz and Pw.
⢠Px signals: Each signal is bidirectional and can be conï¬gured as input or output. An internal weak pull-up is provided
to hold the pin high when used as an input or in an open-drain scheme.
⢠Py signals: Each signal is input only. An internal weak pull-up is provided to hold the pin high.
⢠Pz signals: Each signal is output only. It may be conï¬gured to work as totem-pole or in an open-drain scheme.
⢠Pw signals: Each signal is bidirectional and can be conï¬gured for input or output. The Pw pins may be shared with
development system functions. These ports can be implemented off-chip in DEV environment using external logic.
The GPIO signals are organized in ports. Each port is either 8-bits or 16-bits wide. In ports where not all eight bits are used,
some of the registerâs bits are reserved. Some GPIO signals share their pins with one or more alternate functions. A config-
uration bit selects which function is active (see Section 2.4 on page 49).
GPIO Port Functionality
The PC87591L-N05 provides 92 GPIO pins. They are subdivided into the following groups:
⢠Ports IOPA(7-0), IOPB(7-0), IOPC(7-0), IOPD(7-0), IOPQ(2-0) and IOPF(7-0)
These ports are on-chip, General-Purpose Input/Output (GPIO) ports (type Px).
IOPC0 is reserved for power supply control use. Bit 0 of PCALT, PCDIR, PCWPU and PCDOUT are reset on VCC Power-
Up reset and Watchdog reset only.
IOPB5 and IOPB6 have an option for automatic TRI-STATE based on LPCPD. See âMSWC Control Status Register 3
(MSWCTL3)â on page 293 for the enable function.
IOPB6 is selected to its alternate function, by default (i.e., bit 6 is set to 1).
Ports IOPA4-0, IOPB2-0, IOPC0 and IOPD3 have the option to echo the value of the associated input. For the exact
echo matrix specifications, see Section 2.4.3 on page 56.
Bit 5 of PBALT register, bit 0 of PCALT register and bits 4-7 of PDALT register are read only (RO) and return a value of
zero.
⢠IOPE(7-0) and KBSIN(7-0)
These are General-Purpose Input (GPI) ports (type Py). IOPE(3-0) and IOPE5 do not implement the pull-up function,
and the respective bits in PEWPU are reserved. KBSIN has no alternate function; thus it has no PyALT register.
⢠KBSOUT(15-0), IOPQ3
This is a 16-bit General-Purpose Output (GPO) port (type Pz). Since KBSOUT has no alternate functions, its alter-
nate function register is not implemented. The reset value of KBSOUT register is FFFF16. KBSOUT has open-drain
output drivers.
IOPQ3 is selected to its alternate function (CLK) by default (i.e., bit 3 of PQATL register is set to 1 after reset).
⢠Ports IOPJ(7-2), IOPL(4-3) and IOPM(7-0)
These ports are on-chip, General-Purpose Input/Output (GPIO) ports (type Pw).
⢠When the analog function is enable, the Read function, for GPIO signals that are multiplexed with analog functions,
is disabled; this affects signals KBSIN(7-0) and IOPE(3-0).
When the BIU function is enabled, the Read function, for GPIO signals that are multiplexed with BIU signals, is dis-
abled; this affects signals IOPL(4-3) and IOPM(7-0).
4.5.1 Features
⢠General-Purpose Input/Output (GPIO) Port (Px).
â Each pin functions as input or output signal.
â Direction register controls the port direction.
â Weak pull-up.
â Read-back on all registers.
⢠General-Purpose Input (GPI) Port (Py).
â All port pins function as input signals.
â Weak pull-up.
â Read-back on all control registers.
⢠General-Purpose Output (GPO) Port (Pz).
â All pins function as output signals.
â Read-back on all registers.
www.national.com
110
Revision 1.2
|
▷ |