English
Language : 

MC9S08RG60 Datasheet, PDF (112/232 Pages) Motorola, Inc – Microcontrollers
Parallel Input/Output
The following paragraphs discuss each port and the software controls that determine each pin’s use.
8.3.1 Port A
Port A
Bit 7
MCU Pin:
PTA7/
KBI1P7
6
PTA6/
KBI1P6
5
PTA5/
KBI1P5
4
PTA4/
KBI1P4
3
PTA3/
KBI1P3
2
PTA2/
KBI1P2
1
PTA1/
KBI1P1
Bit 0
PTA0/
KBI1P0
Figure 8-1 Port A Pin Names
Port A is an 8-bit general-purpose I/O port shared with the KBI1 keyboard interrupt inputs. Bit 0 of port
A is an input-only pin.
Port A pins are available as general-purpose I/O pins controlled by the port A data (PTAD), data direction
(PTADD), and pullup enable (PTAPE) registers. Refer to 8.4 Parallel I/O Controls for more information
about general-purpose I/O control.
Any of the port A pins can be configured as a KBI1 keyboard interrupt pin. Refer to the Keyboard Interrupt
(KBI) Module section for more information about using port A pins as keyboard interrupt pins.
8.3.2 Port B
Port B
Bit 7
MCU Pin:
PTB7/
TPM1CH1
6
PTB6
5
PTB5
4
PTB4
3
PTB3
Figure 8-2 Port B Pin Names
2
PTB2
1
PTB1/
RxD1
Bit 0
PTB0/
TxD1
Port B is an 8-bit general-purpose I/O port with two pins shared with the SCI and one pin shared with the
TPM. The port B output drivers are capable of high current drive.
Port B pins are available as general-purpose I/O pins controlled by the port B data (PTBD), data direction
(PTBDD), and pullup enable (PTBPE) registers. Refer to 8.4 Parallel I/O Controls for more information
about general-purpose I/O control.
When the SCI module is enabled, PTB0 and PTB1 function as the transmit (TxD1) and receive (RxD1)
pins of the SCI. Refer to the Serial Communications Interface (SCI) Module section for more information
about using PTB0 and PTB1 as SCI pins.
The TPM can be configured to use PTB7 as either an input capture, output compare, or PWM pin. Refer
to the Timer/PWM Module (TPM) Module section for more information about using PTB7 as a timer pin.
112
MC9S08RC/RD/RE/RG
Freescale Semiconductor