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
-
-
-
-
-
Содержание MC9S12XS128
Страница 4: ...S12XS Family Reference Manual Rev 1 13 4 Freescale Semiconductor ...
Страница 58: ...Device Overview S12XS Family S12XS Family Reference Manual Rev 1 13 58 Freescale Semiconductor ...
Страница 150: ...Memory Mapping Control S12XMMCV4 S12XS Family Reference Manual Rev 1 13 150 Freescale Semiconductor ...
Страница 168: ...Interrupt S12XINTV2 S12XS Family Reference Manual Rev 1 13 168 Freescale Semiconductor ...
Страница 194: ...Background Debug Module S12XBDMV2 S12XS Family Reference Manual Rev 1 13 194 Freescale Semiconductor ...
Страница 364: ...Periodic Interrupt Timer S12PIT24B4CV1 S12XS Family Reference Manual Rev 1 13 364 Freescale Semiconductor ...
Страница 396: ...Pulse Width Modulator S12PWM8B8CV1 S12XS Family Reference Manual Rev 1 13 396 Freescale Semiconductor ...
Страница 506: ...Voltage Regulator S12VREGL3V3V1 S12XS Family Reference Manual Rev 1 13 506 Freescale Semiconductor ...
Страница 736: ...Ordering Information S12XS Family Reference Manual Rev 1 13 736 Freescale Semiconductor ...
Страница 737: ......