Datasheet

Section 8 I/O Ports
Rev. 4.00 Sep 27, 2006 page 214 of 1130
REJ09B0327-0400
Table 8.2 H8S/2147N Port Functions
Expanded Modes Single-Chip Mode
Port Description Pins
Mode 1
Mode 2, Mode 3
(EXPE = 1)
Mode 2, Mode 3
(EXPE = 0)
Port 1 8-bit I/O port
Built-in MOS
input pull-
ups
•LED drive
capability
P17 to P10/
A7 to A0/
PW7 to PW0
Lower address
output
(A7 to A0)
When DDR = 0
(after reset): input
port
When DDR = 1:
lower address
output (A7 to A0) or
PWM timer output
(PW7 to PW0)
I/O port also functioning as
PWM timer output (PW7 to
PW0)
Port 2 8-bit I/O port
Built-in MOS
input pull-
ups
•LED drive
capability
P27/A15/PW15
P26/A14/PW14
P25/A13/PW13
P24/A12/PW12
P23/A11/PW11
P22/A10/PW10
P21/A9/PW9
P20/A8/PW8
Upper address
output
(A15 to A8)
When DDR = 0
(after reset): input
port
When DDR = 1:
upper address
output (A15 to A8),
PWM timer output
(PW15 to PW8), or
output ports (P27 to
P24)
I/O port also functioning as
PWM timer output (PW15
to PW8)
Port 3 8-bit I/O port
Built-in MOS
input pull-
ups
•LED drive
capability
P37 to P30/
HDB7 to HDB0/
D15 to D8
Data bus input/output (D15 to D8) I/O port also functioning as
host interface data bus
input/output (HDB7 to
HDB0)
Port 4 8-bit I/O port P47/PWX1
P46/PWX0
P45/TMRI1/
HIRQ12
P44/TMO1/
HIRQ1
P43/TMCI1/
HIRQ11
P42/TMRI0/
SCK2/SDA1
P41/TMO0/
RxD2/IrRxD
P40/TMCI0/
TxD2/IrTxD
I/O port also functioning as 14-bit
PWM timer output (PWX1, PWX0),
8-bit timer 0 and 1 input/output
(TMCI0, TMRI0, TMO0, TMCI1,
TMRI1, TMO1), SCI2 input/output
(TxD2, RxD2, SCK2), IrDA interface
input/output (IrTxD, IrRxD), and I
2
C
bus interface 1 (option) input/output
(SDA1)
I/O port also functioning as
14-bit PWM timer output
(PWX1, PWX0), 8-bit timer
0 and 1 input/output
(TMCI0, TMRI0, TMO0,
TMCI1, TMRI1, TMO1),
host interface host CPU
interrupt request output
(HIRQ12, HIRQ1,
HIRQ11), SCI2 input/
output (TxD2, RxD2,
SCK2), IrDA interface
input/output (IrTxD, IrRxD),
and I
2
C bus interface 1
(option) input/output
(SDA1)