h8s-2111b Renesas Electronics Corporation., h8s-2111b Datasheet - Page 156

no-image

h8s-2111b

Manufacturer Part Number
h8s-2111b
Description
Renesas 16-bit Single-chip Microcomputer H8s Family / H8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
7.9
Port 9 is an 8-bit I/O port. Port 9 pins also function as the interrupt input pins, IIC_0 I/O pin,
subclock input pin, and system clock (φ) output pin. P97 is an NMOS push-pull output. SDA0 is
an NMOS open-drain output, and has direct bus drive capability. Port 9 has the following
registers.
• Port 9 data direction register (P9DDR)
• Port 9 data register (P9DR)
7.9.1
P9DDR specifies input or output for the pins of port 9 on a bit-by-bit basis.
7.9.2
P9DR stores output data for the port 9 pins.
Note:
Rev. 1.00, 05/04, page 122 of 544
Bit
7
6
5
4
3
2
1
0
Bit
7
6
5
4
3
2
1
0
*
Port 9 Data Direction Register (P9DDR)
Bit Name
P97DDR
P96DDR
P95DDR
P94DDR
P93DDR
P92DDR
P91DDR
P90DDR
Bit Name
P97DR
P96DR
P95DR
P94DR
P93DR
P92DR
P91DR
P90DR
Port 9
Port 9 Data Register (P9DR)
The initial value of bit 6 is determined according to the P96 pin state.
Initial
Value
0
0
0
0
0
0
0
0
Initial
Value
0
Undefined* R
0
0
0
0
0
0
R/W
W
W
W
W
W
W
W
W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Description
When the corresponding P9DDR bits are set to 1, pin
P96 functions as the φ output pin and pins P97 and
P95 to P90 become output ports. When P9DDR bits
are cleared to 0, the corresponding pins become input
ports.
Description
With the exception of P96, if a port 9 read is performed
while P9DDR bits are set to 1, the P9DR values are
read directly, regardless of the actual pin states. If a
port 9 read is performed while P9DDR bits are cleared
to 0, the pin states are read.
For P96, the pin state is always read.

Related parts for h8s-2111b