Datasheet

Rev.6.00 Oct.28.2004 page 298 of 1016
REJ09B0138-0600H
Port 6 Data Direction Register (P6DDR)
Bit:76543210
P67DDR P66DDR P65DDR P64DDR P63DDR P62DDR P61DDR P60DDR
Initial value : 0 0 0 0 0 0 0 0
R/W:WWWWWWWW
P6DDR is an 8-bit write-only register, the individual bits of which specify input or output for the pins of port 6. P6DDR
cannot be read; if it is, an undefined value will be read.
Setting a P6DDR bit to 1 makes the corresponding port 6 pin an output pin, while clearing the bit to 0 makes the pin an
input pin.
P6DDR is initialized to H'00 by a power-on reset, and in hardware standby mode. It retains its prior state after a manual
reset*, and in software standby mode. As the DMAC is initialized by a manual reset*, the pin states are determined by the
P6DDR and P6DR specifications.
Note: * Manual reset is only supported in the H8S/2357 ZTAT.
Port 6 Data Register (P6DR)
Bit:76543210
P67DR P66DR P65DR P64DR P63DR P62DR P61DR P60DR
Initial value : 0 0 0 0 0 0 0 0
R/W : R/W R/W R/W R/W R/W R/W R/W R/W
P6DR is an 8-bit readable/writable register that stores output data for the port 6 pins (P6
7
to P6
0
).
P6DR is initialized to H'00 by a power-on reset, and in hardware standby mode. It retains its prior state after a manual
reset*, and in software standby mode.
Note: * Manual reset is only supported in the H8S/2357 ZTAT.
Port 6 Register (PORT6)
Bit:76543210
P67 P66 P65 P64 P63 P62 P61 P60
Initial value : * * * * * * * *
R/W:RRRRRRRR
Note: * Determined by state of pins P6
7
to P6
0
.
PORT6 is an 8-bit read-only register that shows the pin states. It cannot be written to. Writing of output data for the port 6
pins (P6
7
to P6
0
) must always be performed on P6DR.
If a port 6 read is performed while P6DDR bits are set to 1, the P6DR values are read. If a port 6 read is performed while
P6DDR bits are cleared to 0, the pin states are read.
After a power-on reset and in hardware standby mode, PORT6 contents are determined by the pin states, as P6DDR and
P6DR are initialized. PORT6 retains its prior state after a manual reset*, and in software standby mode.
Note: * Manual reset is only supported in the H8S/2357 ZTAT.