Sample Programs; Led Chaser; Io Interfacing; Buzzer - NEX ROBOTICS LPC2148 Pro Manual

Table of Contents

Advertisement

4.0 SAMPLE PROGRAMS

The following sample programs are included in the CD. The sample programs are written in
keil uVision IDE version 4 by using the Real View complier
The hex file can be loaded on the microcontroller flash memory using Flash Magic utility.
Detailed instructions for loading a hex file using Flash magic utility are provided in section
2.3.2.
The default clock settings for all sample programs:

4.1 LED CHASER

Hardware Setup: Insert LED jumpers D1-D4.
Load the LED_CHASER.hex file from LPC2148>codes>LED CHASER folder using flash
magic on the microcontroller flash memory.
Description: After loading the hex file, press reset switch. This application code will blink
D1-D4 LEDs sequentially. The code explains how to use GPIO registers of LPC2148
microcontroller.

4.2 IO INTERFACING

Hardware Setup: Insert LED jumpers D1-D4.
Insert Switch jumpers SW1-SW4
Load the IO_INTERFACING.hex file from LPC2148>codes> IO INTERFACING folder
using flash magic on the microcontroller flash memory.
Description: After loading the hex file, press reset switch. This application demonstrates
simple IO interfacing on LPC2148 development board. The program basically explains how
to read a pin and control the output. To see the result, press any switch and observe the
corresponding LED glow.

4.3 BUZZER

Hardware Setup: Insert SW4 Jumper.
Insert Buzzer Jumper
Load the BUZZER.hex file from LPC2148>codes>BUZZER folder using flash magic on the
microcontroller flash memory.
NEX Robotics Pvt. Ltd.
www.nex-robotics.com
Clock Settings
FOSC
12MHz
PLL
M=5, P=2
CCLK
60MHz
PCLK
15MHz
LPC2148 DEVELOPMENT BOARD
.
51

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the LPC2148 Pro and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Related Products for NEX ROBOTICS LPC2148 Pro

Table of Contents