mc9s12hz256v2 Freescale Semiconductor, Inc, mc9s12hz256v2 Datasheet - Page 139

no-image

mc9s12hz256v2

Manufacturer Part Number
mc9s12hz256v2
Description
Hcs12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
4.3.4.2
Read: Anytime. Write: Never, writes to this register have no effect.
This register always reads back the status of the associated pins.
4.3.4.3
Read: Anytime. Write: Anytime.
This register configures port pins PP[5:0] as either input or output.
If a PWM channel is enabled, the corresponding pin is forced to be an output and the associated Data
Direction Register bit has no effect. Channel 5 can also force the corresponding pin to be an input if the
shutdown feature is enabled.
When the IIC bus is enabled, the PP[5:4] pins become the SCL and SDA bidirectional pins respectively
as long as the corresponding PWM channels are disabled. The associated Data Direction Register bits have
no effect.
When the SCI1 transmitter is enabled, the PP[0] pin becomes the TXD1 output pin and the associated Data
Direction Register bit has no effect. When the SCI1 receiver is enabled, the PP[2] pin becomes the RXD1
input pin and the associated Data Direction Register bit has no effect.
If the PWM, IIC and SCI1 functions are disabled, the corresponding Data Direction Register bit reverts to
control the I/O direction of the associated pin.
Freescale Semiconductor
DDRP[5:0]
Reset
Reset
Field
5:0
W
W
R
R
Data Direction Port P
0 Associated pin is configured as input.
1 Associated pin is configured as output.
Port P Input Register (PTIP)
Port P Data Direction Register (DDRP)
0
0
0
0
7
7
= Reserved or Unimplemented
= Reserved or Unimplemented
0
0
0
0
6
6
Figure 4-25. Port P Data Direction Register (DDRP)
Figure 4-24. Port P I/O Register (PTP)
Table 4-18. DDRP Field Descriptions
DDRP5
PTIP5
MC9S12HZ256 Data Sheet, Rev. 2.05
u
0
5
5
DDRP4
PTIP4
u
0
4
4
Description
u = Unaffected by reset
DDRP3
PTIP3
u
0
3
3
Chapter 4 Port Integration Module (PIM9HZ256V2)
DDRP2
PTIP2
u
0
2
2
DDRP1
PTIP1
u
0
1
1
DDRP0
PTIP0
u
0
0
0
139

Related parts for mc9s12hz256v2