Datasheet

Port Integration Module (S12XSPIMV1)
S12XS Family Reference Manual, Rev. 1.13
Freescale Semiconductor 109
2.3.51 Port H Input Register (PTIH)
2.3.52 Port H Data Direction Register (DDRH)
Address 0x0261 Access: User read
1
1
Read: Anytime
Write:Never, writes to this register have no effect
76543210
R PTIH7 PTIH6 PTIH5 PTIH4 PTIH3 PTIH2 PTIH1 PTIH0
W
Reset uuuuuuuu
= Unimplemented or Reserved u = Unaffected by reset
Figure 2-49. Port H Input Register (PTIH)
Table 2-48. PTIH Register Field Descriptions
Field Description
7-0
PTIH
Port H 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.
Address 0x0262 Access: User read/write
1
1
Read: Anytime
Write: Anytime
76543210
R
DDRH7 DDRH6 DDRH5 DDRH4 DDRH3 DDRH2 DDRH1 DDRH0
W
Reset 00000000
Figure 2-50. Port H Data Direction Register (DDRH)
Table 2-49. DDRH Register Field Descriptions
Field Description
7-0
DDRH
Port H data direction
This bit determines whether the associated pin is an input or output.
1 Associated pin configured as output
0 Associated pin configured as input