![](http://datasheet.mmic.net.cn/Freescale-Semiconductor/S9S12HA32J0CLL_datasheet_99631/S9S12HA32J0CLL_97.png)
Port Integration Module (S12HYPIMV1)
MC9S12HY/HA-Family Reference Manual, Rev. 1.05
Freescale Semiconductor
97
2 Special priority for SPI & IIC
Table 2-36. PTH Register Field Descriptions
Field
Description
7-4
PTH
Port H general purpose input/output data—Data Register, LCD segment driver output
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.
The LCD segment driver output function takes precedence over the general purpose I/O function if enabled
3
PTH
Port H general purpose input/output data—Data Register, LCD segment driver output, SS of SPI, SDA of IIC
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.
The LCD segment driver output takes precedence over the SPI, IIC and the general purpose I/O function
The SDA of IIC takes precedence over the SPI and the general purpose I/O function
The SS of SPI takes precedence over the general purpose I/O function
2
PTH
Port H general purpose input/output data—Data Register, LCD segment driver output, SCK of SPI, ECLK
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.
The LCD segment driver output takes precedence over the SPI, ECLK and the general purpose I/O function
The SCK of SPI takes precedence over the ECLK and the general purpose I/O function
The ECLK takes precedence over the general purpose I/O function
1
PTH
Port H general purpose input/output data—Data Register, LCD segment driver output, MOSI of SPI
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.
The LCD segment driver output takes precedence over the SPI and the general purpose I/O function
The MOSI of SPI takes precedence over the general purpose I/O function
0
PTH
Port H general purpose input/output data—Data Register, LCD segment driver output, MISO of SPI, SCL of IIC
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.
The LCD segment driver output takes precedence over the SPI, IIC and the general purpose I/O function
The SCL of IIC takes precedence over the SPI and the general purpose I/O function
The MISO of SPI takes precedence over the general purpose I/O function