English
Language : 

MC9S12P128 Datasheet, PDF (82/564 Pages) Freescale Semiconductor, Inc – S12 Microcontrollers
Port Integration Module (S12PPIMV1)
Table 2-28. PTM Register Field Descriptions (continued)
Field
3
PTM
2
PTM
1
PTM
0
PTM
Description
Port M general purpose input/output data—Data Register, SPI SS input/output
When not used with the alternative function, the associated pin can be used as general purpose I/O. In general
purpose output mode the register bit value is driven to the pin.
If the associated data direction bit is set to 1, a read returns the value of the port register bit, otherwise the buffered
pin input state is read.
• The SPI function takes precedence over the general purpose I/O function if enabled.
Port M general purpose input/output data—Data Register, SPI MISO input/output
When not used with the alternative function, the associated pin can be used as general purpose I/O. In general
purpose output mode the register bit value is driven to the pin.
If the associated data direction bit is set to 1, a read returns the value of the port register bit, otherwise the buffered
pin input state is read.
• The SPI function takes precedence over the general purpose I/O function if enabled.
Port M general purpose input/output data—Data Register, CAN TXCAN output
When not used with the alternative function, the associated pin can be used as general purpose I/O. In general
purpose output mode the register bit value is driven to the pin.
If the associated data direction bit is set to 1, a read returns the value of the port register bit, otherwise the buffered
pin input state is read.
• The CAN function takes precedence over the general purpose I/O function if enabled.
Port M general purpose input/output data—Data Register, CAN RXCAN input
When not used with the alternative function, the associated pin can be used as general purpose I/O. In general
purpose output mode the register bit value is driven to the pin.
If the associated data direction bit is set to 1, a read returns the value of the port register bit, otherwise the buffered
pin input state is read.
• The CAN function takes precedence over the general purpose I/O function if enabled.
2.3.33 Port M Input Register (PTIM)
Address 0x0251
7
R
0
6
5
4
3
2
0
PTIM5
PTIM4
PTIM3
PTIM2
W
Reset
u
u
u
u
u
u
= Unimplemented or Reserved
u = Unaffected by reset
Figure 2-31. Port M Input Register (PTIM)
1. Read: Anytime
Write:Never, writes to this register have no effect.
Access: User read(1)
1
PTIM1
0
PTIM0
u
u
S12P-Family Reference Manual, Rev. 1.12
82
Freescale Semiconductor