English
Language : 

MC9S12P128 Datasheet, PDF (83/564 Pages) Freescale Semiconductor, Inc – S12 Microcontrollers
Port Integration Module (S12PPIMV1)
Table 2-29. PTIM Register Field Descriptions
Field
5-0
PTIM
Description
Port M input data—
A read always returns the buffered input state of the associated pin. It can be used to detect overload or short circuit
conditions on output pins.
2.3.34 Port M Data Direction Register (DDRM)
Address 0x0252
7
R
0
W
Reset
0
1. Read: Anytime
Write: Anytime
6
5
4
3
2
0
DDRM5
DDRM4
DDRM3
DDRM2
0
0
0
0
0
Figure 2-32. Port M Data Direction Register (DDRM)
Access: User read/write(1)
1
0
DDRM1
DDRM0
0
0
Table 2-30. DDRM Register Field Descriptions
Field
Description
5
DDRM
Port M data direction—
This bit determines whether the associated pin is an input or output.
Depending on the configuration of the enabled SPI the I/O state will be forced to be input or output. In this case the
data direction bit will not change.
4
DDRM
1 Associated pin is configured as output
0 Associated pin is configured as input
Port M data direction—
This bit determines whether the associated pin is an input or output.
Depending on the configuration of the enabled SPI the I/O state will be forced to be input or output. In this case the
data direction bit will not change.
3
DDRM
1 Associated pin is configured as output
0 Associated pin is configured as input
Port M data direction—
This bit determines whether the associated pin is an input or output.
Depending on the configuration of the enabled SPI the I/O state will be forced to be input or output. In this case the
data direction bit will not change.
1 Associated pin is configured as output
0 Associated pin is configured as input
S12P-Family Reference Manual, Rev. 1.12
Freescale Semiconductor
83