English
Language : 

MC9S12E128CFUE Datasheet, PDF (149/606 Pages) Freescale Semiconductor, Inc – MC9S12E128 Data Sheet
3.3.5.3
Port S Data Direction Register (DDRS)
Chapter 3 Port Integration Module (PIM9E128V1)
R
W
Reset
7
DDRS7
0
6
DDRS6
5
DDRS5
4
DDRS4
3
DDRS3
2
DDRS2
0
0
0
0
0
Figure 3-31. Port S Data Direction Register (DDRS)
1
DDRS1
0
0
DDRS0
0
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 SCI1 transmitter is enabled, the PS[3] pin becomes the TXD1 output pin and the associated Data
Direction Register bit has no effect. When the SCI1 receiver is enabled, the PS[2] pin becomes the RXD1
input pin and the associated Data Direction Register bit has 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, SCI1 and SCI0 functions are disabled, the corresponding Data Direction Register bit reverts to
control the I/O direction of the associated pin.
Table 3-22. DDRS Field Descriptions
Field
7:0
Data Direction Port S
DDRS[7:0] 0 Associated pin is configured as input.
1 Associated pin is configured as output.
Description
MC9S12E128 Data Sheet, Rev. 1.07
Freescale Semiconductor
149