Philips LPC213 Series User Manual page 80

Table of Contents

Advertisement

Philips Semiconductors
Volume 1
Table 63:
GPIO register map
Generic
Description
Name
IOSET
GPIO Port Output set register. This register
controls the state of output pins in
conjunction with the IOCLR register. Writing
ones produces highs at the corresponding
port pins. Writing zeroes has no effect.
IODIR
GPIO Port Direction control register. This
register individually controls the direction of
each port pin.
IOCLR
GPIO Port Output clear register. This
register controls the state of output pins.
Writing ones produces lows at the
corresponding port pins and clears the
corresponding bits in the IOSET register.
Writing zeroes has no effect.
[1]
8.4.1 GPIO Pin Value register 0 and 1 (IO0PIN - 0xE002 8000 and IO1PIN -
0xE002 8010)
This register provides the value of the GPIO pins. Register's value reflects any outside
world influence on the GPIO configured pins only. Monitoring of non-GPIO configured port
pins using IOPIN register will not be valid, since activities on non-GPIO configured pins
are not indicated in the IOPIN register.
Selection of a single function on a port pin completely excludes all other functions
otherwise available on the same pin.
The only partial exception from the above rule of exclusion is in the case of inputs to the
A/D converter. Regardless of the function that is selected for the port pin that also hosts
the A/D input, this A/D input can be read at any time and variations of the voltage level on
this pin will be reflected in the A/D readings. However, valid analog reading(s) can be
obtained if and only if the function of an analog input is selected. Only in this case proper
interface circuit is active in between the physical pin and the A/D module. In all other
cases, a part of digital logic necessary for the digital function to be performed will be
active, and will disrupt proper behavior of the A/D.
Table 64:
GPIO Pin Value register 0 (IO0PIN - address 0xE002 8000) bit description
Bit
Symbol
31:0
P0xVAL
Table 65:
GPIO Pin Value register 1 (IO1PIN - address 0xE002 8010) bit description
Bit
Symbol
31:0
P1xVAL
User manual
Reset value relects the data stored in used bits only. It does not include reserved bits content.
Description
GPIO pin value bits. Bit 0 in IO0PIN corresponds to P0.0 ... Bit 31 in IO0PIN
corresponds to P0.31.
Description
GPIO pin value bits. Bit 0 in IO1PIN corresponds to P1.0 ... Bit 31 in IO1PIN
corresponds to P1.31.
Rev. 01 — 24 June 2005
Access Reset
PORT0
[1]
value
Address & Name
R/W
0x0000 0000 0xE002 8004
IO0SET
R/W
0x0000 0000 0xE002 8008
IO0DIR
WO
0x0000 0000 0xE002 800C
IO0CLR
UM10120
Chapter 8: GPIO
PORT1
Address & Name
0xE002 8014
IO1SET
0xE002 8018
IO1DIR
0xE002 801C
IO1CLR
Reset value
Undefined
Reset value
Undefined
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
80

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2131Lpc2132Lpc2134Lpc2136Lpc2138

Table of Contents