Port Integration Module (S12XHYPIMV1)
MC9S12XHY-Family Reference Manual, Rev. 1.01
Freescale Semiconductor
143
2.3.89
Port V Data Register (PTV)
Address 0x0298
Access: User read/write
1
1
Read: Anytime.
Write: Anytime
7
6
5
4
3
2
1
0
R
PTV7
PTV6
PTV5
PTV4
PTV3
PTV2
PTV1
PTV0
W
—
—
—
—
SS
—
—
MISO
2
2
Special SPI/PWM&IIC priority
—
—
—
—
PWM7
PWM6
PWM5
PWM4
—
—
—
—
SDA
SCK
MOSI
SCL
—
IOC1_3
—
IOC1_2
—
IOC1_1
—
IOC1_0
IOC0_7
IOC0_6
IOC0_5
IOC0_4
Altern.
Function
M3C1P
M3C1M
M3C0P
M3C0M
M2C1P
M2C1M
M2C0P
M2C0M
M3SINP
M3SINM
M3COSP
M3COSM
M2SINP
M2SINM
M2COSP
M2COSM
Reset
0
0
0
0
0
0
0
0
Figure 2-86. Port V Data Register (PTV)
Table 2-73. PTV register Field Descriptions
Field
Description
7,5
PTV
Port V general purpose input/output data—Data Register, Motor driver PWM output
Port V pins are associated with the Motor PWM output.
When not used with the alternative functions, these pins can be used as general purpose I/O. If the associated data
direction bits of these pins are set to 1, a read returns the value of the port register, otherwise the buffered pin input
state is read.
• The SSD takes precedence over the Motor Driver and general purpose I/O function
• The Motor driver PWM takes precedence over the general purpose I/O function.
6, 4
PTV
Port V general purpose input/output data—Data Register, Motor driver PWM output, TIM1 channel 3,2
Port V pins are associated with the Motor PWM output and TIM1 channels 3-2
When not used with the alternative functions, these pins can be used as general purpose I/O. If the associated data
direction bits of these pins are set to 1, a read returns the value of the port register, otherwise the buffered pin input
state is read.
• The SSD takes precedence over the Motor Driver and TIM0,TIM1 and general purpose I/O function
• The Motor driver PWM takes precedence over the TIM0, TIM1 and the general purpose I/O function.
• The TIM0 output compare function takes precedence over the TIM1 and the general purpose I/O function.
• The TIM1 output compare function takes precedence over the general purpose I/O function if the related channels
is enabled
1
electronic components distributor