English
Language : 

S912XHZ512F1VAG Datasheet, PDF (107/978 Pages) Freescale Semiconductor, Inc – Covers MC9S12XHZ384, MC9S12XHZ256
Chapter 2 Port Integration Module (S12XHZPIMV1)
2.3.11 Port T
Port T is associated with the 8-channel enhanced capture timer (ECT), the Inter-IC (IIC0 and IIC1)
modules and the liquid crystal display (LCD) driver. Each pin is assigned to these modules according to
the following priority: LCD Driver > IIC1/IIC0 > ECT > general-purpose I/O.
When the IIC1 module is enabled and MODRR1 is set, PT[7:6] pins become SCL1 and SDA1 pins
respectively. When the IIC0 module is enabled and MODRR0 is set, PT[5:4] pins become SCL0 and
SDA0 respectively. Refer to the IIC block description chapter for information on enabling and disabling
the IIC bus.
If the corresponding LCD frontplane drivers are enabled (and LCD module is enabled), the FP[27:24]
outputs of the LCD module are available on port T pins PT[3:0].
If the corresponding LCD frontplane drivers are disabled (or LCD module is disabled) and the ECT is
enabled, the timer channels configured for output compare are available on port T pins PT[3:0].
Refer to the LCD block description chapter for information on enabling and disabling the LCD and its
frontplane drivers.Refer to the ECT block description chapter for information on enabling and disabling
the ECT module.
During reset, port T pins are configured as inputs with pull down.
2.3.11.1 Port T I/O Register (PTT)
Module Base + 0x0000
R
W
ECT:
IIC1/IIC0:
LCD:
Reset
7
PTT7
OC7
SCL1
0
6
PTT6
OC6
SDA1
0
5
PTT5
4
PTT4
3
PTT3
2
PTT2
OC5
OC4
OC3
OC2
SCL0
SDA0
1
1
0
0
0
0
Figure 2-58. Port T I/O Register (PTT)
1
PTT1
OC1
1
0
0
PTT0
OC0
1
0
Read: Anytime. Write: Anytime.
If the associated data direction bit (DDRTx) is set to 1 (output), a read returns the value of the I/O register
bit.
If the associated data direction bit (DDRTx) is set to 0 (input) and the LCD frontplane driver is enabled
(and LCD module is enabled), the associated I/O register bit (PTTx) reads “1”.
If the associated data direction bit (DDRTx) is set to 0 (input) and the LCD frontplane driver is disabled
(or LCD module is disabled), a read returns the value of the pin.
MC9S12XHZ512 Data Sheet, Rev. 1.06
Freescale Semiconductor
107