10-34
MC68VZ328 User’s Manual
Programming Model
10.4.10
Port K Registers
Port K is composed of the following 8-bit general-purpose I/O registers:
•
Port K direction register (PKDIR)
•
Port K data register (PKDATA)
•
Port K pull-up/-down enable register (PKPUEN)
•
Port K select register (PKSEL)
Each signal in the PKDATA register connects to an external pin. As on the other ports, each bit on Port K
is individually configured.
10.4.10.1
Port K Direction Register
The direction register controls the direction (input or output) of the line associated with the PKDATA bit
position. When the data bit is assigned to a dedicated I/O function by the PKSEL register, the DIR bits are
ignored. The settings for the PKDIR register bit positions are shown in Table 10-46.
PKDIR
Port K Direction Register
0x(FF)FFF440
10.4.10.2
Port K Data Register
The settings for the PKDATA register bit positions are shown in Table 10-47 on page 10-35.
BIT 7
6
5
4
3
2
1
BIT 0
DIR7
DIR6
DIR5
DIR4
DIR3
DIR2
DIR1
DIR0
TYPE
rw
rw
rw
rw
rw
rw
rw
rw
RESET
0
0
0
0
0
0
0
0
0x00
Table 10-46. Port K Direction Register Description
Name Description
Setting
DIRx
Bits 7–0
Direction—These bits control the direction of
the pins in an 8-bit system. They reset to 0.
0 = The pins are inputs.
1 = The pins are outputs.
Summary of Contents for MC68VZ328
Page 1: ...MC68VZ328UM D Rev 0 02 2000 MC68VZ328 Integrated Processor User s Manual ...
Page 14: ...xiv MC68VZ328 User s Manual ...
Page 18: ...xviii MC68VZ328 User s Manual ...
Page 26: ...xxvi MC68VZ328 User s Manual ...
Page 42: ...1 12 MC68VZ328 User s Manual Modules of the MC68VZ328 ...
Page 54: ...2 12 MC68VZ328 User s Manual In Circuit Emulation ICE Signals ...
Page 68: ...3 14 MC68VZ328 User s Manual Programmer s Memory Map ...
Page 110: ...6 22 MC68VZ328 User s Manual Programming Model ...