English
Language : 

S912XHY128F0VLM Datasheet, PDF (129/802 Pages) Freescale Semiconductor, Inc – S12 Microcontrollers
Port Integration Module (S12XHYPIMV1)
Table 2-52. PTR Register Field Descriptions (continued)
Field
1
PTR
Description
Port R general purpose input/output data—Data Register, TIM0 channels,TX of CAN1
When not used with the alternative function, the associated pin can be used as general purpose I/O. In general
purpose output mode the register bit value is driven to the pin.
If the associated data direction bit is set to 1, a read returns the value of the port register bit, otherwise the buffered
pin input state is read.
0
PTR
• The TX of CAN1 function takes precedence over the TIM0 and general purpose I/O function
• The TIM0 output compare function takes precedence over the general purpose I/O function2
Port R general purpose input/output data—Data Register, TIM0 channels,RX of CAN1
When not used with the alternative function, the associated pin can be used as general purpose I/O. In general
purpose output mode the register bit value is driven to the pin.
If the associated data direction bit is set to 1, a read returns the value of the port register bit, otherwise the buffered
pin input state is read.
• The RX of CAN1 function takes precedence over the TIM0 and general purpose I/O function
• The TIM0 output compare function takes precedence over the general purpose I/O function3
1 In order TIM input capture to be function correctly, the corresponding DDRR bit should be set as input state
2 In order TIM input capture to be function correctly, the corresponding DDRR bit should be set as input state
3 In order TIM input capture to be function correctly, the corresponding DDRR bit should be set as input state
2.3.66 Port R Input Register (PTIR)
Address 0x0281
7
R PTIR7
6
PTIR6
5
PTIR5
4
PTIR4
3
PTIR3
2
PTIR2
W
Reset
u
u
u
u
u
u
= Unimplemented or Reserved
u = Unaffected by reset
Figure 2-63. Port R Input Register (PTIR)
1 Read: Anytime.
Write:Never, writes to this register have no effect.
Access: User read1
1
PTIR1
0
PTIR0
u
u
Field
7-0
PTIR
Table 2-53. PTIR Register Field Descriptions
Description
Port R input data—
This register always reads back the buffered state of the associated pins. This can also be used to detect overload
or short circuit conditions on output pins.
MC9S12XHY-Family Reference Manual, Rev. 1.01
Freescale Semiconductor
129