English
Language : 

MC9S12E128 Datasheet, PDF (155/606 Pages) Freescale Semiconductor, Inc – HCS12 Microcontrollers
Chapter 3 Port Integration Module (PIM9E128V1)
3.3.7 Port U
Port U is associated with one 4-channel timer (TIM2) and the pulse width modulator (PWM) module. Each
pin is assigned to these modules according to the following priority: TIM2/PWM > general-purpose I/O.
If the timer TIM2 is enabled, the channels configured for output compare are available on port U pins
PU[3:0]. Refer to the TIM block description chapter for information on enabling and disabling the TIM
module.
When a PWM channel is enabled, the corresponding pin becomes a PWM output. Refer to the PWM block
description chapter for information on enabling and disabling the PWM channels.
If both PWM and TIM2 are enabled simultaneously, the pin functionality is determined by the
configuration of the MODRR bits
During reset, port U pins are configured as high-impedance inputs.
3.3.7.1 Port U I/O Register (PTU)
7
R
PTU7
W
6
PTU6
5
PTU5
4
PTU4
3
PTU3
2
PTU2
1
PTU1
0
PTU0
PWM:
PW15
PW14
PW13
PW12
PW11
PW10
TIM2:
OC27
OC26
OC25
OC24
Reset
0
0
0
0
0
0
0
0
Figure 3-42. Port U I/O Register (PTU)
Read: Anytime. Write: Anytime.
If the associated data direction bit (DDRUx) is set to 1 (output), a read returns the value of the I/O register
bit. If the associated data direction bit (DDRUx) is set to 0 (input), a read returns the value of the pin.
3.3.7.2 Port U Input Register (PTIU)
7
R PTIU7
W
6
PTIU6
5
PTIU5
4
PTIU4
3
PTIU3
2
PTIU2
Reset
u
u
u
u
u
u
= Reserved or Unimplemented
u = Unaffected by reset
Figure 3-43. Port U Input Register (PTIU)
Read: Anytime. Write: Never, writes to this register have no effect.
This register always reads back the status of the associated pins.
1
PTIU1
u
0
PTIU0
u
MC9S12E128 Data Sheet, Rev. 1.07
Freescale Semiconductor
155