English
Language : 

MC9S12Q128_10 Datasheet, PDF (85/644 Pages) Freescale Semiconductor, Inc – HCS12 Microcontrollers
2.3.2.2.3
Chapter 2 Port Integration Module (PIM9C32) Block Description
Port S Data Direction Register (DDRS)
Module Base + 0x000A
7
R
0
W
Reset
0
Read: Anytime.
Write: Anytime.
6
5
4
3
2
0
0
0
DDRS3
DDRS2
0
0
0
0
0
= Unimplemented or Reserved
Figure 2-12. Port S Data Direction Register (DDRS)
Table 2-11. DDRS Field Descriptions
1
DDRS1
0
0
DDRS0
0
Field
Description
3–0
DDRS[3:0]
Direction Register Port S — This register configures each port S pin as either input or output.
If the associated SCI transmit or receive channel is enabled this register has no effect on the pins. The pin is
forced to be an output if the SCI transmit channel is enabled, it is forced to be an input if the SCI receive channel
is enabled.
The DDRS bits revert to controlling the I/O direction of a pin when the associated channel is disabled.
0 Associated pin is configured as input.
1 Associated pin is configured as output.
Note: Due to internal synchronization circuits, it can take up to 2 bus cycles until the correct value is read on PTS
or PTIS registers, when changing the DDRS register.
Freescale Semiconductor
MC9S12Q128
85
Rev 1.10