XC886/888CLM
Parallel Ports
User’s Manual
6-6
V1.3, 2010-02
Parallel Ports, V 1.0
6.1.1.1
Data Register
If a port pin is used as general purpose output, output data is written into the data register
Px_DATA. If a port pin is used as general purpose input, the latched value of the port pin
can be read through register Px_DATA.
Note: A port pin that has been assigned as input will latch in the active internal pull-
up/pull-down setting if it is not driven by an external source. This results in register
Px_DATA being updated with the active pull value.
Bit Px_DATA.n can only be written if the corresponding pin is set to output
(Px_DIR.n = 1) and cannot be written if the corresponding pin is set to input
(Px_DIR.n = 0). The content of Px_DATA.n is output on the assigned pin if the pin is
assigned as GPIO pin and the direction is switched/set to output. A read operation of
Px_DATA returns the register value and not the state of the corresponding Px_DATA
pin.
Px_DATA
Port x Data Register
7
6
5
4
3
2
1
0
P7
P6
P5
P4
P3
P2
P1
P0
rw
rw
rw
rw
rw
rw
rw
rw
Field
Bits
Type Description
Pn
(n = 0 – 7)
n
rw
Port x Pin n Data Value
0
Port x Pin n data value = 0
1
Port x Pin n data value = 1
*
Содержание XC886CLM
Страница 1: ...User s Manual V1 3 2010 02 Microcontrollers 8 Bit XC886 888CLM 8 Bit Single Chip Microcontroller...
Страница 3: ...User s Manual V1 3 2010 02 Microcontrollers 8 Bit XC886 888CLM 8 Bit Single Chip Microcontroller...
Страница 324: ...XC886 888CLM Serial Interfaces User s Manual 12 52 V1 3 2010 02 Serial Interfaces V 1 0...
Страница 663: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG...