h8s-2161b Renesas Electronics Corporation., h8s-2161b Datasheet - Page 236

no-image

h8s-2161b

Manufacturer Part Number
h8s-2161b
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 8 I/O Ports
8.5
Port 4 is an 8-bit I/O port. Port 4 pins also function as PWMX output pins, TMR_0 and TMR_1
I/O pins, timer connection I/O pins, SCI_2 I/O pins, IrDA interface I/O pins, XBS output pins, and
the IIC_1 I/O pin. The output type of P42 and SCK2 is NMOS push-pull output. The output type
of SDA1 is NMOS open drain output. Port 4 pin functions are the same in all operating modes.
Port 4 has the following registers.
8.5.1
P4DDR specifies input or output for the pins of port 4 on a bit-by-bit basis.
Rev. 3.00 Mar 21, 2006 page 182 of 788
REJ09B0300-0300
Bit
7
6
5
4
3
2
1
0
Port 4 data direction register (P4DDR)
Port 4 data register (P4DR)
Bit Name
P47DDR
P46DDR
P45DDR
P44DDR
P43DDR
P42DDR
P41DDR
P40DDR
Port 4
Port 4 Data Direction Register (P4DDR)
Initial Value
0
0
0
0
0
0
0
0
R/W
W
W
W
W
W
W
W
W
Description
When a bit in P4DDR is set to 1, the
corresponding pin functions as an output port, and
when cleared to 0, as an input port.
As 14-bit PWM and SCI_2 are initialized in
software standby mode, the pin states are
determined by the TMR_0, TMR_1, XBS, IIC_1,
P4DDR, and P4DR specifications.

Related parts for h8s-2161b