Datasheet

Section 8 I/O Ports
Rev. 4.00 Jun 06, 2006 page 201 of 1004
REJ09B0301-0400
8.2.4 MOS Input Pull-Up Function
Port 1 has an on-chip 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.4 summarizes the MOS input pull-up states.
Table 8.4 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/2138 Group only), and the timer connection output pin
(CBLANK) (H8S/2138 Group only). Port 2 functions change according to the operating mode.
Port 2 has an on-chip MOS input pull-up function that can be controlled by software.
Figure 8.5 shows the port 2 pin configuration.