Philips LPC2119 User Manual page 108

Arm-based microcontroller
Hide thumbs Also See for LPC2119:
Table of Contents

Advertisement

Philips Semiconductors
ARM-based Microcontroller
GPIO Pin Value Register (IO0PIN - 0xE0028000, IO1PIN - 0xE0028010)
This register provides the value of the GPIO pins. This value reflects any outside world influence on the pins.
Note: for test purposes, writing to this register stores the value in the output register, bypassing the need to use both the IOSET
and IOCLR registers. This feature is of little or no use in an application because it is not possible to write to individual bytes in
this register.
Table 69: GPIO Pin Value Register (IO0PIN - 0xE0028000, IO1PIN - 0xE0028010)
IOPIN
31:0
GPIO pin value bits. Bit 0 in IO0PIN corresponds to P0.0 ... Bit 31 in IO0PIN corresponds to P0.31
GPIO Output Set Register (IO0SET - 0xE0028004, IO1SET - 0xE0028014)
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 in the GPIO output 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 70: GPIO Output Set Register (IO0SET - 0xE0028004, IO1SET - 0xE0028014)
IOSET
31:0
Output value SET bits. Bit 0 in IO0SET corresponds to P0.0 ... Bit 31 in IO0SET corresponds to P0.31
GPIO Output Clear Register (IO0CLR - 0xE002800C, IO1CLR - 0xE002801C)
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 71: GPIO Output Clear Register (IO0CLR - 0xE002800C, IO1CLR - 0xE002801C)
IOCLR
Output value CLEAR bits. Bit 0 in IO0CLR corresponds to P0.0 ... Bit 31 in IO0CLR corresponds to
31:0
P0.31
GPIO
Description
Description
Description
108
Preliminary User Manual
LPC2119/2129/2292/2294
Value after
Undefined
Value after
Value after
January 08, 2004
Reset
Reset
0
Reset
0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2129Lpc2292Lpc2294

Table of Contents