Port Integration Module (S12XSPIMV1)
S12XS Family Reference Manual, Rev. 1.13
Freescale Semiconductor
121
2.4.2
Registers
A set of configuration registers is common to all ports with exception of the ATD port (
). All
registers can be written at any time, however a specific configuration might not become active.
For example selecting a pull-up device: This device does not become active while the port is used as a
push-pull output.
2.4.2.1
Data register (PORTx, PTx)
This register holds the value driven out to the pin if the pin is used as a general purpose I/O.
Writing to this register has only an effect on the pin if the pin is used as general purpose output. When
reading this address, the buffered state of the pin is returned if the associated data direction register bit is
set to “0”.
If the data direction register bits are set to logic level “1”, the contents of the data register is returned. This
is independent of any other configuration (
2.4.2.2
Input register (PTIx)
This is a read-only register and always returns the buffered state of the pin (
2.4.2.3
Data direction register (DDRx)
This register defines whether the pin is used as a input or an output.
If a peripheral module controls the pin the contents of the data direction register is ignored (
Independent of the pin usage with a peripheral module this register determines the source of data when
reading the associated data register address (
).
Table 2-71. Register availability per port
1
1
Each cell represents one register with individual configuration bits
Port
Data
Input
Data
Direction
Reduced
Drive
Pull
Enable
Polarity
Select
Wired-
Or Mode
Interrupt
Enable
Interrupt
Flag
Routing
A
yes
-
yes
yes
yes
-
-
-
-
-
B
yes
-
yes
-
-
-
-
-
E
yes
-
yes
-
-
-
-
-
K
yes
-
yes
-
-
-
-
-
T
yes
yes
yes
yes
yes
yes
-
-
-
yes
S
yes
yes
yes
yes
yes
yes
yes
-
-
-
M
yes
yes
yes
yes
yes
yes
yes
-
-
yes
P
yes
yes
yes
yes
yes
yes
-
yes
yes
-
H
yes
yes
yes
yes
yes
yes
-
yes
yes
-
J
yes
yes
yes
yes
yes
yes
-
yes
yes
-
AD
yes
-
yes
yes
yes
-
-
-
-
-
Summary of Contents for MC9S12XS128
Page 4: ...S12XS Family Reference Manual Rev 1 13 4 Freescale Semiconductor ...
Page 168: ...Interrupt S12XINTV2 S12XS Family Reference Manual Rev 1 13 168 Freescale Semiconductor ...
Page 736: ...Ordering Information S12XS Family Reference Manual Rev 1 13 736 Freescale Semiconductor ...
Page 737: ......