Rev. 5.00, 09/03, page 580 of 760
18.3.10 Port K Control Register (PKCR)
Bit: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
PK7
MD1
PK7
MD0
PK6
MD1
PK6
MD0
PK5
MD1
PK5
MD0
PK4
MD1
PK4
MD0
PK3
MD1
PK3
MD0
PK2
MD1
PK2
MD0
PK1
MD1
PK1
MD0
PK0
MD1
PK0
MD0
Initial value:0000000000000000
R/W: R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W
The port K control register (PKCR) is a 16-bit readable/writable register that selects the pin
functions. PKCR is initialized to H'0000 by a power-on reset, but is not initialized by a manual
reset, in standby mode, or in sleep mode.
Bits 15 and 14—PK7 Mode 1 and 0 (PK7MD1, PK7MD0)
Bits 13 and 12—PK6 Mode 1 and 0 (PK6MD1, PK6MD0)
Bits 11 and 10—PK5 Mode 1 and 0 (PK5MD1, PK5MD0)
Bits 9 and 8—PK4 Mode 1 and 0 (PK4MD1, PK4MD0)
Bits 7 and 6—PK3 Mode 1 and 0 (PK3MD1, PK3MD0)
Bits 5 and 4—PK2 Mode 1 and 0 (PK2MD1, PK2MD0)
Bits 3 and 2—PK1 Mode 1 and 0 (PK1MD1, PK1MD0)
Bits 1 and 0—PK0 Mode 1 and 0 (PK0MD1, PK0MD0)
These bits select the pin functions and perform input pull-up MOS control.
Bit (2n + 1) Bit 2n
PKnMD1 PKnMD0 Pin Function
0 0 Other function (see table 18.1) (Initial value)
0 1 Port output
1 0 Port input (Pull-up MOS: on)
1 1 Port input (Pull-up MOS: off)
(n = 0 to 7)