HD6413308 Hitachi Semiconductor, HD6413308 Datasheet - Page 94

no-image

HD6413308

Manufacturer Part Number
HD6413308
Description
Hitachi Single-Chip MicroComputer
Manufacturer
Hitachi Semiconductor
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
HD6413308CP10
Manufacturer:
RENESAS
Quantity:
776
Part Number:
HD6413308CP10
Manufacturer:
HITACAI
Quantity:
20 000
Part Number:
HD6413308CP10V
Manufacturer:
RENESAS
Quantity:
776
Part Number:
HD6413308RCP10
Manufacturer:
HITACHI/日立
Quantity:
20 000
Part Number:
HD6413308RF8
Manufacturer:
NEC
Quantity:
2 468
Part Number:
HD6413308RF8
Manufacturer:
HITACHI/日立
Quantity:
20 000
Table 5-3 details the port 1 registers.
Table 5-3. Port 1 Registers
Name
Port 1 data direction register P1DDR
Port 1 data register
Port 1 Data Direction Register (P1DDR)—H’FFB0
Bit
Mode 1
Modes 2 and 3
P1DDR is an 8-bit register that selects the direction of each pin in port 1. A pin functions as an
output pin if the corresponding bit in P1DDR is set to “1,” and as an input pin if the bit is cleared to
“0.”
Port 1 Data Register (P1DR)—H’FFB2
Bit
Initial value
Read/Write
P1DR is an 8-bit register containing the data for pins P1
output pins it reads the value in the P1DR latch, but for input pins, it obtains the logic level directly
from the pin, bypassing the P1DR latch.
MOS Pull-Ups: Are available for input pins in modes 2 and 3. Software can turn on the MOS
pull-up by writing a “1” in P1DR, and turn it off by writing a “0.” The pull-ups are automatically
turned off for output pins in modes 2 and 3, and for all pins in mode 1.
Initial value
Read/Write
Initial value
Read/Write
P1
R/W
7
P1
W
DDR P1
7
1
0
7
0
7
R/W
6
P1
W
DDR P1
6
1
0
6
0
Abbreviation Read/Write Initial value
P1DR
6
R/W
5
P1
W
DDR P1
5
1
0
5
0
5
W
R/W
R/W
79
4
P1
W
DDR P1
4
1
0
4
0
4
7
to P1
R/W
3
P1
W
DDR P1
3
1
0
3
0
H’FF (mode 1)
H’00 (modes 2 and 3)
H’00
3
0
. When the CPU reads P1DR, for
R/W
2
P1
W
DDR P1
2
1
0
2
0
2
R/W
1
P1
W
DDR P1
1
1
0
1
0
1
Address
H’FFB0
H’FFB2
R/W
0
P1
W
DDR
0
1
0
0
0
0

Related parts for HD6413308