English
Language : 

MC9S12E128CFUE Datasheet, PDF (137/606 Pages) Freescale Semiconductor, Inc – MC9S12E128 Data Sheet
Chapter 3 Port Integration Module (PIM9E128V1)
3.3.2 Port M
Port M is associated with the serial communication interface (SCI2) , Inter-IC bus (IIC) and the digital to
analog converter (DAC0 and DAC1) modules. Each pin is assigned to these modules according to the
following priority: IIC/SCI2/DAC1/DAC0 > general-purpose I/O.
When the IIC bus is enabled, the PM[7:6] pins become SCL and SDA respectively. Refer to the IIC block
description chapter for information on enabling and disabling the IIC bus.
When the SCI2 receiver and transmitter are enabled, the PM[5:4] become RXD2 and TXD2 respectively.
Refer to the SCI block description chapter for information on enabling and disabling the SCI receiver and
transmitter.
When the DAC1 and DAC0 outputs are enabled, the PM[1:0] become DAO1 and DAO0 respectively.
Refer to the DAC block description chapter for information on enabling and disabling the DAC output.
During reset, PM[3] and PM[1:0] pins are configured as high-impedance inputs and PM[7:4] pins are
configured as pull-up inputs.
3.3.2.1 Port M I/O Register (PTM)
7
6
5
4
3
2
1
0
R
0
PTM7
PTM6
PTM5
PTM4
PTM3
PTM1
PTM0
W
IIC: SCL
SDA
SCI2:
TXD2
RXD2
DAC1/DAC0:
DAO1
DAO0
Reset
0
0
0
0
0
0
0
0
= Reserved or Unimplemented
Figure 3-10. Port M I/O Register (PTM)
Read: Anytime. Write: Anytime.
If the associated data direction bit (DDRMx) is set to 1 (output), a read returns the value of the I/O register
bit. If the associated data direction bit (DDRMx) is set to 0 (input), a read returns the value of the pin.
3.3.2.2 Port M Input Register (PTIM)
R
W
Reset
7
PTIM7
u
6
5
4
3
2
PTIM6
PTIM5
PTIM4
PTIM3
0
u
u
u
u
0
= Reserved or Unimplemented
u = Unaffected by reset
Figure 3-11. Port M Input Register (PTIM)
1
PTIM1
0
PTIM0
u
u
MC9S12E128 Data Sheet, Rev. 1.07
Freescale Semiconductor
137