mc9s12hz256v2 Freescale Semiconductor, Inc, mc9s12hz256v2 Datasheet - Page 144

no-image

mc9s12hz256v2

Manufacturer Part Number
mc9s12hz256v2
Description
Hcs12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Chapter 4 Port Integration Module (PIM9HZ256V2)
4.3.5.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.5.3
Read: Anytime. Write: Anytime.
This register configures port pins PS[7:4] and PS[2:0] as either input or output.
When the SPI is enabled, the PS[7:4] pins become the SPI bidirectional pins. The associated Data
Direction Register bits have no effect.
When the SCI0 transmitter is enabled, the PS[1] pin becomes the TXD0 output pin and the associated Data
Direction Register bit has no effect. When the SCI0 receiver is enabled, the PS[0] pin becomes the RXD0
input pin and the associated Data Direction Register bit has no effect.
If the SPI and SCI0 functions are disabled, the corresponding Data Direction Register bit reverts to control
the I/O direction of the associated pin.
144
DDRS[7:4]
DDRS[1:0]
Reset
Reset
Field
7:4
1:0
W
W
R
R
DDRS7
PTIS7
Data Direction Port S
0 Associated pin is configured as input.
1 Associated pin is configured as output.
Data Direction Port S
0 Associated pin is configured as input.
1 Associated pin is configured as output.
Port S Input Register (PTIS)
Port S Data Direction Register (DDRS)
u
0
7
7
= Reserved or Unimplemented
= Reserved or Unimplemented
DDRS6
PTIS6
u
0
6
6
Figure 4-32. Port S Data Direction Register (DDRS)
Figure 4-31. Port S Input Register (PTIS)
Table 4-23. DDRS Field Descriptions
DDRS5
PTIS5
MC9S12HZ256 Data Sheet, Rev. 2.05
u
0
5
5
DDRS4
PTIS4
u
0
4
4
Description
u = Unaffected by reset
0
0
0
0
3
3
0
0
0
0
2
2
DDRS1
Freescale Semiconductor
PTIS1
u
0
1
1
DDRS0
PTIS0
u
0
0
0

Related parts for mc9s12hz256v2