h8s-2172 Renesas Electronics Corporation., h8s-2172 Datasheet - Page 265

no-image

h8s-2172

Manufacturer Part Number
h8s-2172
Description
Renesas 16-bit Single-chip Microcomputer H8s Family H8s-2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
• P31/USCLK
• P30/USWDVLD
8.4
Port 4 is an 8-bit I/O port that also has other functions. The port 4 has the following registers.
• Port 4 data direction register (P4DDR)
• Port 4 data register (P4DR)
• Port 4 register (PORT4)
8.4.1
The individual bits of P4DDR specify input or output for the pins of port 4. P4DDR cannot be
read; if it is, an undefined value will be read.
USBCKSTP
P31DDR
Pin function
USBCKSTP
P30DDR
Pin function
Bit
7
6
5
4
3
2
1
0
The pin function is switched as shown below according to the combination of the P31DDR bit
and the USBCKSTP bit in MSTPCRL.
The pin function is switched as shown below according to the combination of the P30DDR bit
and the USBCKSTP bit in MSTPCRL.
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
P31 input
P30 input
R/W
W
W
W
W
W
W
W
W
0
0
When a pin function is specified to a general purpose
I/O, setting this bit to 1 makes the corresponding port 4
pin an output pin, while clearing this bit to 0 makes the
pin an input pin.
Description
1
1
P31 output
P30 output
1
1
Rev. 2.00, 03/04, page 233 of 534
USWDVLD I/O
USCLK input
0
0

Related parts for h8s-2172