Datasheet

Chapter 2 Port Integration Module (PIM9C32) Block Description
86 MC9S12C-Family / MC9S12GC-Family Freescale Semiconductor
Rev 01.24
2.3.2.2.3 Port S Data Direction Register (DDRS)
Read: Anytime.
Write: Anytime.
Module Base + 0x000A
76543210
R0000
DDRS3 DDRS2 DDRS1 DDRS0
W
Reset 0 0 0 00000
= Unimplemented or Reserved
Figure 2-12. Port S Data Direction Register (DDRS)
Table 2-11. DDRS Field Descriptions
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.