English
Language : 

MC9S08GT16A Datasheet, PDF (83/300 Pages) Freescale Semiconductor, Inc – Microcontrollers
6.2.3 Port C and SCI2, IIC, and High-Current Drivers
Parallel Input/Output
Port C
Bit 7
6
5
3
3
2
1
Bit 0
MCU Pin: PTC7
PTC6
PTC5
PTC4
PTC3/
SCL
Figure 6-4. Port C Pin Names
PTC2/
SDA
PTC1/
RxD2
PTC0/
TxD2
Port C is an 8-bit port which is shared among the SCI2 and IIC modules, and general-purpose I/O. When
SCI2 or IIC modules are enabled, the pin direction will be controlled by the module or function. Port C
has high current output drivers.
Port C pins are available as general-purpose I/O pins controlled by the port C data (PTCD), data direction
(PTCDD), pullup enable (PTCPE), and slew rate control (PTCSE) registers. Refer to Section 6.3, “Parallel
I/O Controls,” for more information about general-purpose I/O control.
When the SCI2 module is enabled, PTC0 serves as the SCI2 module’s transmit pin (TxD2) and PTC1
serves as the receive pin (RxD2). Refer to Chapter 11, “Serial Communications Interface (S08SCIV1),”
for more information about using PTC0 and PTC1 as SCI pins
When the IIC module is enabled, PTC2 serves as the IIC modules’s serial data input/output pin (SDA) and
PTC3 serves as the clock pin (SCL). Refer to Chapter 13, “Inter-Integrated Circuit (S08IICV1),” for more
information about using PTC2 and PTC3 as IIC pins.
6.2.4 Port D, TPM1 and TPM2
Port D
Bit 7
0
MCU Pin:
6
5
4
3
2
1
Bit 0
0
0
PTD4/
PTD3/
PTD2/
PTD1/
PTD0/
TPM2CH1 TPM2CLK/ TPM1CH2 TPM1CH1 TPM1CLK/
TPM2CH0
TPM1CH0
Figure 6-5. Port D Pin Names
Port D is an 5-bit port shared with the two TPM modules, TPM1 and TPM2, and general-purpose I/O.
When the TPM1 or TPM2 modules are enabled in output compare or input capture modes of operation,
the pin direction will be controlled by the module function.
Port D pins are available as general-purpose I/O pins controlled by the port D data (PTDD), data direction
(PTDDD), pullup enable (PTDPE), and slew rate control (PTDSE) registers. Refer to Section 6.3, “Parallel
I/O Controls,” for more information about general-purpose I/O control.
The TPM2 module can be configured to use PTD4–PTD3 as either input capture, output compare, PWM,
or external clock input pins (PTD3 only). Refer to Chapter 10, “Timer/PWM (S08TPMV2),” for more
information about using PTD4–PTD3 as timer pins.
The TPM1 module can be configured to use PTD2–PTD0 as either input capture, output compare, PWM,
or external clock input pins (PTD0 only). Refer to Chapter 10, “Timer/PWM (S08TPMV2),” for more
information about using PTD2–PTD0 as timer pins.
MC9S08GT16A/GT8A Data Sheet, Rev. 1
Freescale Semiconductor
83