Datasheet

Section 8 I/O Ports
Rev. 4.00 Sep 27, 2006 page 226 of 1130
REJ09B0327-0400
8.2.4 MOS Input Pull-Up Function
Port 1 has a built-in MOS input pull-up function that can be controlled by software. This MOS
input pull-up function can be used in modes 2 and 3, and can be specified as on or off on a bit-by-
bit basis.
When a P1DDR bit is cleared to 0 in mode 2 or 3, setting the corresponding P1PCR bit to 1 turns
on the MOS input pull-up for that pin.
The MOS input pull-up function is in the off state after a reset and in hardware standby mode. The
prior state is retained in software standby mode.
Table 8.5 summarizes the MOS input pull-up states.
Table 8.5 MOS Input Pull-Up States (Port 1)
Mode Reset
Hardware
Standby Mode
Software
Standby Mode
In Other
Operations
1 Off Off Off Off
2, 3 Off Off On/Off On/Off
Legend:
Off: MOS input pull-up is always off.
On/Off:On when P1DDR = 0 and P1PCR = 1; otherwise off.
8.3 Port 2
8.3.1 Overview
Port 2 is an 8-bit I/O port. Port 2 pins also function as address bus output pins (A15 to A8), 8-bit
PWM output pins (PW15 to PW8) (H8S/2148 Group and H8S/2147N only), and the timer
connection output pin (CBLANK) (H8S/2148 Group only). Port 2 functions change according to
the operating mode. Port 2 has a built-in MOS input pull-up function that can be controlled by
software.
Figure 8.5 shows the port 2 pin configuration.