English
Language : 

S912XEG128J2MAA Datasheet, PDF (130/1324 Pages) Freescale Semiconductor, Inc – Microcontrollers
Chapter 2 Port Integration Module (S12XEPIMV1)
2.3.37 Port M Data Register (PTM)
Address 0x0250
7
R
PTM7
W
Altern. TXCAN3
Function
—
(TXCAN4)
—
TXD3
Reset
0
1. Read: Anytime.
Write: Anytime.
6
PTM6
5
PTM5
4
PTM4
3
PTM3
2
PTM2
RXCAN3 TXCAN2 RXCAN2 TXCAN1 RXCAN1
—
(TXCAN0) (RXCAN0) (TXCAN0) (RXCAN0)
(RXCAN4) (TXCAN4) (RXCAN4)
—
—
—
(SCK0)
(MOSI0)
(SS0)
(MISO0)
RXD3
—
—
—
—
0
0
0
0
0
Figure 2-35. Port M Data Register (PTM)
Access: User read/write(1)
1
0
PTM1
PTM0
TXCAN0
—
—
—
—
0
RXCAN0
—
—
—
—
0
Field
7-6
PTM
5
PTM
Table 2-33. PTM Register Field Descriptions
Description
Port M general purpose input/output data—Data Register
Port M pins 7 and 6 are associated with TXCAN and RXCAN signals of CAN3 and the routed CAN4, as well as with
TXD and RXD signals of SCI3, respectively.
The CAN3 function takes precedence over the CAN4, SCI3 and the general purpose I/O function if the CAN3 module
is enabled. The CAN4 function takes precedence over the SCI3 and the general purpose I/O function if the CAN4
module is enabled. The SCI3 function takes precedence over the general purpose I/O function if the SCI3 module
is enabled.
When not used with the alternative function, this pin can be used as general purpose I/O.
If the associated data direction bit of this pin is set to 1, a read returns the value of the port register, otherwise the
buffered pin input state is read.
Port M general purpose input/output data—Data Register
Port M pin 5 is associated with the TXCAN signal of CAN2 and the routed CAN4 and CAN0, as well as with SCK
signals of SPI0.
The CAN2 function takes precedence over the routed CAN0, routed CAN4, the routed SPI0 and the general purpose
I/O function if the CAN2 module is enabled. The routed CAN0 function 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
takes precedence over the routed SPI0 and general purpose I/O function if the routed CAN4 module is enabled. The
routed SPI0 function takes precedence of the general purpose I/O function if the routed SPI0 is enabled.
When not used with the alternative function, this pin can be used as general purpose I/O.
If the associated data direction bit of this pin is set to 1, a read returns the value of the port register, otherwise the
buffered pin input state is read.
MC9S12XE-Family Reference Manual Rev. 1.25
130
Freescale Semiconductor