English
Language : 

MC9S12XD256MAL Datasheet, PDF (846/1348 Pages) Freescale Semiconductor, Inc – Freescale’s Scalable Controller Area Network
Chapter 22 DP512 Port Integration Module (S12XDP512PIMV2)
22.3.2.30 Port M Data Register (PTM)
R
W
CAN
Routed
CAN0
Routed
CAN4
Routed
SPIO
Reset
7
PTM7
TXCAN3
TXCAN4
0
6
PTM6
RXCAN3
5
PTM5
TXCAN2
TXCAN0
4
PTM4
RXCAN2
RXCAN0
3
PTM3
TXCAN1
TXCAN0
2
PTM2
RXCAN1
RXCAN0
RXCAN4 TXCAN4 RXCAN4
SCK0
MOSI0
SS0
MISO0
0
0
0
0
0
Figure 22-32. Port M Data Register (PTM)
1
PTM1
TXCAN0
0
0
PTM0
RXCAN0
0
Read: Anytime.
Write: Anytime.
Port M pins 75–0 are associated with the CAN0, CAN1, CAN2, CAN3, SCI3, as well as the routed CAN0,
CAN4, and SPI0 modules. When not used with any of the peripherals, these pins can be used as general
purpose I/O.
If the data direction bits of the associated I/O pins are set to logic level “1”, a read returns the value of the
port register, otherwise the buffered pin input state is read.
Table 22-32. PTM Field Descriptions
Field
7–6
PTM[7:6]
5–4
PTM[5:4]
Description
The CAN3 function (TXCAN3 and RXCAN3) takes precedence over the CAN4, SCI3 and the general purpose
I/O function if the CAN3 module is enabled. Refer to MSCAN section for details.
The CAN4 function (TXCAN4 and RXCAN4) takes precedence over the SCI3 and the general purpose I/O
function if the CAN4 module is enabled. Refer to MSCAN section for details.
The SCI3 function (TXD3 and RXD3) takes precedence over the general purpose I/O function if the SCI3 module
is enabled. Refer to SCI section for details.
The CAN2 function (TXCAN2 and RXCAN2) takes precedence over the routed CAN0, routed CAN4, the routed
SPI0 and the general purpose I/O function if the CAN2 module is enabled{pim_9xd_prio.m}.
The routed CAN0 function (TXCAN0 and RXCAN0) takes precedence over the routed CAN4, the routed SPI0
and the general purpose I/O function if the routed CAN0 module is enabled.
The routed CAN4 function (TXCAN4 and RXCAN4) takes precedence over the routed SPI0 and general purpose
I/O function if the routed CAN4 module is enabled. Refer to MSCAN section for details.
The routed SPI0 function (SCK0 and MOSI0) takes precedence of the general purpose I/O function if the routed
SPI0 is enabled. Refer to SPI section for details.
MC9S12XDP512 Data Sheet, Rev. 2.21
848
Freescale Semiconductor