English
Language : 

MC3S12RG128 Datasheet, PDF (88/546 Pages) Freescale Semiconductor, Inc – Microcontrollers
Chapter 2 Port Integration Module (PIM3RG128V1) Block Description
2.3.2.3 Port M Registers
2.3.2.3.1 Port M I/O Register (PTM)
Module Base + 0x_0010
R
W
CAN
CAN0
CAN4
SPI0
Reset
7
PTM7
TXCAN4
0
6
PTM6
5
PTM5
4
PTM4
3
PTM3
2
PTM2
RXCAN4
0
TXCAN0 RXCAN0 TXCAN0 RXCAN0
TXCAN4 RXCAN4
SCK0
MOSI0
SS0
MISO0
0
0
0
0
Figure 2-16. Port M I/O Register (PTM)
1
PTM1
TXCAN0
0
0
PTM0
RXCAN0
0
Read: Anytime.
Write: Anytime.
If the data direction bits of the associated I/O pins are set to 1, a read returns the value of the port register,
otherwise the value at the pins is read.
Table 2-12. PTM Field Descriptions
Field
7–6
PM[7:6}
5–4
PM[5:4]
3–2
PM[3:2]
1–0
PM[1:0]
Description
PM[7:6]
• The CAN4 function (TXCAN4 and RXCAN4) takes precedence over the general purpose I/O function if the
CAN4 module is enabled. Refer to MSCAN Block Guide for details.
PM[5:4]
• The CAN0 function (TXCAN0 and RXCAN0) takes precedence over the CAN4, the SPI0 and the general
purpose I/O function if the CAN0 module is enabled.
• The CAN4 function (TXCAN4 and RXCAN4) takes precedence over the SPI and general purpose I/O function
if the CAN4 module is enabled. Refer to MSCAN Block Guide for details.
• The SPI0 function (SCK0 and MOSI0) takes precedence of the general purpose I/O function if the SPI0 is
enabled. Refer to SPI Block Guide for details.
PM[3:2]
• The CAN0 function (TXCAN0 and RXCAN0) takes precedence over the SPI0 and the general purpose I/O
function if the CAN0 module is enabled. Refer to MSCAN Block Guide for details.
• The SPI0 function (SS0 and MISO0) takes precedence of the general purpose I/O function if the SPI0 is
enabled and not in bidirectional mode. Refer to SPI Block Guide for details.
PM[1:0]
• The CAN0 function (TXCAN0 and RXCAN0) takes precedence over the general purpose I/O function if the
CAN0 module is enabled. Refer to MSCAN Block Guide for details.
MC3S12RG128 Data Sheet, Rev. 1.05
88
Freescale Semiconductor