English
Language : 

MC9S12E256 Datasheet, PDF (155/602 Pages) Freescale Semiconductor, Inc – HCS12 Microcontrollers
3.3.7.3
Port U Data Direction Register (DDRU)
Chapter 3 Port Integration Module (PIM9E256V1)
R
W
Reset
7
DDRU7
0
6
DDRU6
5
DDRU5
4
DDRU4
3
DDRU3
2
DDRU2
0
0
0
0
0
Figure 3-44. Port U Data Direction Register (DDRU)
1
DDRU1
0
0
DDRU0
0
Read: Anytime. Write: Anytime.
This register configures port pins PU[7:0] as either input or output.
If a pulse width modulator channel is enabled, the associated pin is forced to be an output and the
associated Data Direction Register bit has no effect. If the associated pulse width modulator channel is
disabled, the corresponding DDRUx bit reverts to control the I/O direction of the associated pin.
If the TIM2 module is enabled, each port pin configured for output compare is forced to be an output and
the associated Data Direction Register bit has no effect. If the associated timer output compare is disabled,
the corresponding DDRUx bit reverts to control the I/O direction of the associated pin.
If the TIM2 module is enabled, each port pin configured as an input capture has the corresponding DDRUx
bit controlling the I/O direction of the associated pin.
When both a timer function and a PWM function are enabled on the same pin, the MODRR register
determines which function has control of the pin
Table 3-31. DDRU Field Descriptions
Field
7:0
Data Direction Port U
DDRU[7:0] 0 Associated pin is configured as input.
1 Associated pin is configured as output.
Description
MC9S12E256 Data Sheet, Rev. 1.08
Freescale Semiconductor
155