Chapter 4 Port Integration Module (S12XDP512PIMV2)
MC9S12XDP512 Data Sheet, Rev. 2.11
Freescale Semiconductor 237
4.3.2.46 Port H Data Register (PTH)
Read: Anytime.
Write: Anytime.
Port H pins 7–0 are associated with the SCI4 and SCI5 as well as the routed SPI1 and SPI2 modules.
These pins can be used as general purpose I/O when not used with any of the peripherals.
If the data direction bits of the associated I/O pins are set to logic level “1”, a read returns the value of the
port register, otherwise the buffered pin input state is read.
The routed SPI2 function takes precedence over the SCI4 and SCI5 and the general purpose I/O function
if the routed SPI2 module is enabled. Refer to SPI section for details.
The routed SPI1 function takes precedence over the general purpose I/O function if the routed SPI1 is
enabled. Refer to SPI section for details.
The SCI4 and SCI5 function takes precedence over the general purpose I/O function if the SCI4 or SCI5
is enabled. Refer to SCI section for details.
0x0260
76543210
R
PTH7 PTH6 PTH5 PTH4 PTH3 PTH2 PTH1 PTH0
W
Routed
SPI SS2 SCK2 MOSI2 MISO2 SS1 SCK1 MOSI1 MISO1
Reset 00000000
Figure 4-48. Port H Data Register (PTH)