User manual

LPCXpresso Experiment Kit - User’s Guide
Page 38
Copyright 2013 © Embedded Artists AB
7.3 Read a Digital Input
In this experiment you will learn how to control the I/O pins of the LPC111x as inputs. More specifically
you will learn how to read a digital input that reflects that state of a push-button.
7.3.1 Lab 2a: Read Push-button
We will start with reading the state of push-button SW2 in the schematic, which is found in the
schematic on page 4, lower left corner. SW2 is connected to signal GPIO_17-KEY. Figure 11
illustrates were SW2 can be found in the schematic. On schematic page 2, we can see that this signal
is connected to PIO1_5 on the LPCXpresso LPC111x board. Figure 12 illustrates where to find the
signal and also where to find the GND pin.
Figure 11 SW2 on Schematic Page 4
Figure 12 Signal GPIO_17-KEY on Schematic Page 2