Philips LPC213 Series User Manual page 81

Table of Contents

Advertisement

Philips Semiconductors
Volume 1
8.4.2 GPIO Output Set register 0 and 1 (IO0SET - 0xE002 8004 and IO1SET -
0xE002 8014)
This register is used to produce a HIGH level output at the port pins if they are configured
as GPIO in an OUTPUT mode. Writing 1 produces a HIGH level at the corresponding port
pins. Writing 0 has no effect. If any pin is configured as an input or a secondary function,
writing to IOSET has no effect.
Reading the IOSET register returns the value of this register, as determined by previous
writes to IOSET and IOCLR (or IOPIN as noted above). This value does not reflect the
effect of any outside world influence on the I/O pins.
Table 66:
Bit
31:0
Table 67:
Bit
31:0
8.4.3 GPIO Output Clear register 0 and 1 (IO0CLR - 0xE002 800C and
IO1CLR - 0xE002 801C)
This register is used to produce a LOW level at port pins if they are configured as GPIO in
an OUTPUT mode. Writing 1 produces a LOW level at the corresponding port pins and
clears the corresponding bits in the IOSET register. Writing 0 has no effect. If any pin is
configured as an input or a secondary function, writing to IOCLR has no effect.
Table 68:
Bit
31:0
Table 69:
Bit
31:0
8.4.4 GPIO Direction Register 0 and 1 (IO0DIR - 0xE002 8008 and IO1DIR -
0xE002 8018)
This register is used to control the direction of the pins when they are configured as GPIO
port pins. Direction bit for any pin must be set according to the pin functionality.
User manual
GPIO Output Set register 0 (IO0SET - address 0xE002 8004 bit description
Symbol
Description
P0xSET
Output value SET bits. Bit 0 in IO0SET corresponds to P0.0 ...
Bit 31 in IO0SET corresponds to P0.31.
GPIO Output Set register 1 (IO1SET - address 0xE002 8014) bit description
Symbol
Description
P1xSET
Output value SET bits. Bit 0 in IO1SET corresponds to P1.0 ...
Bit 31 in IO1SET corresponds to P1.31.
GPIO Output Clear register 0 (IO0CLR - address 0xE002 800C) bit description
Symbol
Description
P0xCLR Output value CLEAR bits. Bit 0 in IO0CLR corresponds to
P0.0 ... Bit 31 in IO0CLR corresponds to P0.31.
GPIO Output Clear register 1 (IO1CLR - address 0xE002 801C) bit description
Symbol
Description
P1xCLR
Output value CLEAR bits. Bit 0 in IO1CLR corresponds to
P1.0 ... Bit 31 in IO1CLR corresponds to P1.31.
Rev. 01 — 24 June 2005
UM10120
Chapter 8: GPIO
Reset value
0x0000 0000
Reset value
0x0000 0000
Reset value
0x0000 0000
Reset value
0x0000 0000
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
81

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2131Lpc2132Lpc2134Lpc2136Lpc2138

Table of Contents