Parallel Input/Output Control
MCF51CN128 Reference Manual,
Rev. 6
9-2
Freescale Semiconductor
Port D is assosiated with RGPIO[7:0].
shows RGPIO pin mapping to the port I/O pins.
Port F is assosiated with RGPIO[15:8].
shows RGPIO pin mapping to the port I/O pins.
Chapter 10, “Rapid GPIO (RGPIO),”
for additional details.
9.1.3
Keyboard Functions
Ports E and G include keyboard interrupt capability. Keyboard 1 is associated with GPIO Port G.
shows KBI1 pin mapping to the port I/O pins.
Keyboard 2 is associated with GPIO Port E.
shows KBI2 pin mapping to the port I/O pins.
9.1.4
Port Mux Control
Many port pins are shared with on-chip peripherals such as timer systems, communication systems, or
keyboard interrupts as shown in
. You may select which function owns a pin with the port mux
control (MC) registers. These are defined in detail in
9.1.5
Special Cases
9.1.5.1
Pull-Up Resistors
After reset, the shared peripheral functions are normally disabled and the pins are configured as inputs
(PT
x
DD[n] = 0). The pin control functions for each pin are configured as follows:
•
Slew rate control enabled (PT
x
SE[n] = 1)
Table 9-2. Port D Pin Mapping to RGPIO
Port pin
PTD7
PTD6
PTD5
PTD4
PTD3
PTD2
PTD1
PTD0
KBI1 pin
RGPIO7
RGPIO6
RGPIO5
RGPIO4
RGPIO3
RGPIO2
RGPIO1
RGPIO0
Table 9-3. Port F Pin Mapping to RGPIO
Port pin
PTF7
PTF6
PTF5
PTF4
PTF3
PTF2
PTF1
PTF0
KBI1 pin
RGPIO15
RGPIO14
RGPIO13
RGPIO12
RGPIO11
RGPIO10
RGPIO9
RGPIO8
Table 9-4. KBI1 Pin Mapping
Port pin
PTG7
PTG6
PTG5
PTG4
PTG3
PTG2
PTG1
PTG0
KBI1 pin
KBI1P7
KBI1P6
KBI1P5
KBI1P4
KBI1P3
KBI1P2
KBI1P1
KBI1P0
Table 9-5. KBI2 Pin Mapping
Port pin
PTE7
PTE6
PTE5
PTE4
PTE3
PTE2
PTE1
PTE0
KBI2 pin
KBI2P7
KBI2P6
KBI2P5
KBI2P4
KBI2P3
KBI2P2
KBI2P1
KBI2P0