Hitachi H8S/2646 Hardware Manual page 325

Hitachi 16-bit single-chip microcomputer h8s/2646 series
Table of Contents

Advertisement

Port K Data Direction Register (PKDDR)
Bit
:
7
PK7DDR PK6DDR
Initial value :
0
R/W
:
W
PKDDR is an 8-bit write-only register that specifies whether individual bits are input or output for
each of the pins in port K. It is not possible to read it. An undefined value is returned if an attempt
is made to read it.
PKDDR is initialized to H'00 if a reset occurs and in the hardware standby mode. The previous
values are retained by PKDDR in the software standby mode.
Port K Data Register (PKDR)
Bit
:
7
PK7DR
Initial value :
0
R/W
:
R/W
PKDR is an 8-bit readable/writable register that stores output data for the port K pins (PK7, PK6).
PKDR is initialized to H'00 if a reset occurs and in the hardware standby mode. The previous
values are retained in the software standby mode.
Port K Register (PORTK)
Bit
:
7
PK7
Initial value :
—*
R/W
:
R
Note: * Determined by state of pins PF7 to PF6.
PORTK is an 8-bit read-only register that reflects the states of the pins. It is not possible to write
to it. Always write output data from the port K pins (PK7, PK6) to PKDR.
If PKDDR is set to 1, the value of PKDR is returned when port K is read. If PKDDR is cleared to
0, the pin states are returned when port K is read.
6
5
0
Undefined Undefined Undefined Undefined Undefined Undefined
W
6
5
PK6DR
0
Undefined Undefined Undefined Undefined Undefined Undefined
R/W
6
5
PK6
—*
Undefined Undefined Undefined Undefined Undefined Undefined
R
4
3
4
3
4
3
2
1
0
2
1
0
2
1
0
293

Advertisement

Table of Contents
loading

Table of Contents