English
Language : 

MC9S08RG60 Datasheet, PDF (113/232 Pages) Motorola, Inc – Microcontrollers
8.3.3 Port C
SoC Guide — MC9S08RG60/D Rev 1.10
Port C
Bit 7
MCU Pin:
PTC7/
SS1
6
PTC6/
SPSCK1
5
PTC5/
MISO1
3
PTC4/
MOSI1
3
PTC3/
KBI2P3
2
PTC2/
KBI2P2
1
PTC1/
KBI2P1
Bit 0
PTC0/
KBI2P0
Figure 8-3 Port C Pin Names
Port C is an 8-bit general-purpose I/O port with four pins shared with the KBI2 keyboard interrupt inputs
and four pins shared with the SPI.
Port C pins are available as general-purpose I/O pins controlled by the port C data (PTCD), data direction
(PTCDD), and pullup enable (PTCPE) registers. Refer to 8.4 Parallel I/O Controls for more information
about general-purpose I/O control.
When the SPI module is enabled, PTC7 serves as the SPI module’s slave select pin (SS1), PTC6 serves as
the SPI clock pin (SPSCK1), PTC5 serves as the master-in slave-out pin (MISO1), and PTC4 serves as the
master-out slave-in pin (MOSI1). Refer to the Serial Peripheral Interface (SPI) Module section for more
information about using PTC7–PTC4 as SPI pins.
Any of the port C pins PTC3-PTC0 can be configured as a KBI2 keyboard interrupt pin. Refer to the
Keyboard Interrupt (KBI) Module section for more information about using port C pins as keyboard
interrupt pins.
8.3.4 Port D
Port D
Bit 7
6
5
MCU Pin:
PTD6/
TPM1CH0
PTD5
4
PTD4
3
PTD3
2
PTD2
1
Bit 0
PTD1/ PTD0/
RESET BKGD/MS
Figure 8-4 Port D Pin Names
Port D is an 7-bit general-purpose I/O port with one pin shared with the BKGD/MS function, one pin
shared with the RESET function, one pin shared with the IRQ function, and one pin shared with the TPM.
Port D pins are available as general-purpose I/O pins controlled by the port D data (PTDD), data direction
(PTDDD), and pullup enable (PTDPE) registers. Refer to 8.4 Parallel I/O Controls for more information
about general-purpose I/O control.
The PTD0/BKGD/MS pin is configured for the BKGD/MS function during reset and following reset. The
internal pullup for this pin is enabled when the BKGD/MS function is enabled, regardless of the PTDPE0
bit. During reset, the BKGD/MS pin functions as a mode select pin. After the MCU is out of reset, the
BKGD/MS pin becomes the background communications input/output pin. PTD0 can be configured to be
a general-purpose output pin through software control. Refer to the Modes of Operation section, the
Resets, Interrupts, and System Configuration section, and the Development Support section for more
information about using this pin.
Freescale Semiconductor
MC9S08RC/RD/RE/RG
113