Professional Documents
Culture Documents
Led Interfacing With ARM7 Primer
Led Interfacing With ARM7 Primer
Contents at a Glance
ARM7 LPC2148 Primer Board ...........................................3
LED (Light Emitting Diodes) ..............................................3
Interfacing LED ................................................................4
Interfacing LED with LPC2148 ...........................................5
Pin Assignment with LPC2148 ..........................................5
Circuit Diagram to Interface LED with LPC2148 .................6
Source Code ....................................................................6
C Program to switch ON and OFF LED using LPC2148 ........7
Testing the LED with LPC2148 ..........................................8
General Information ........................................................9
Interfacing LED
Fig.
shows
how
to
interface
the
LED
to
Microcontroller
Port pin
R25
2.2k
DIGITAL OUTPUTS
LPC2148 Lines
LD1
P1.16
LD2
P1.17
LD3
P1.18
LD4
P1.19
LD5
P1.20
LD6
P1.21
LD7
P1.22
LD8
P1.23
LED Selection
J4
1
- LED Enable
- LED Disable
J4
1
63
51
43
23
7
3.3V
6
18
25
42
50
59
VREF
VDD1
VDD2
VDD3
VDDA
U16
VSS1
VSS2
VSS3
VSS4
VSS5
VSSA
P1.16
P1.17
P1.18
LPC2148
P1.19
P1.20
P1.21
XTAL1
P1.23
LED1
12
LED2
LED3
LED4
48
LED5
44
40
36
LED6
LED7
LED8
1
1
1
LED1
LEDLED2
LEDLED3
LEDLED4
LEDLED5
LEDLED6
LEDLED7
LEDLED8
2
2
2
2
2
2
3
4
5
6
7
8
9
1K-SIL
J4
1
1
2
3
R23
1
2
3
LED SLT
2
2
2
POINT LEDS
LED
62
61
XTAL2
P1.22
16
12MHz
C50
X20
22pf
C51
22pf
Source Code
The Interfacing LED with LPC2148 program is very
simple
and
straight
forward,
that
uses
delay
// Loop forever
// Turn ON P1.16 P1.23
// Turn OFF P1.16 P1.23
}
void
{
delay(int x)
If you not reading any output from LED, then you just
check the jumper connections & check the LED is working.
Otherwise you just check it with debugging mode in KEIL. If
you want to see more details about debugging just see the
videos in below link.
How to Create & Debug a Project in KEIL.
General Information
For proper working use the components of exact values
as shown in Circuit file. Wherever possible use new
components.
Solder everything in a clean way. A major problem
arises due to improper soldering, solder jumps and
loose joints.
Use the exact value crystal shown in schematic.
More instructions are available in following articles,
User Manual of LPC2148 Primer Board.
Tutorial of how to create & Debug a project in KEIL.
What do we sell?
Our products range from Various Microcontroller
development boards, DSP Boards, FPGA/CPLD boards,
Communication Kits, Power electronics, Basic electronics,
Robotics, Sensors, Electronic components and much more . Our
goal is to make finding the parts and information you need
easier and affordable so you can create awesome projects and
training from Basic to Cutting edge technology.