Professional Documents
Culture Documents
Objectives
1. Describe the steps of creating an assembly language project in KEIL microvision.
2. Explain the basics of I/O ports of LPC1768.
3. Implement simple LED patterns on LPC1768 using assembly language.
Requirements
1.
2.
3.
4.
5.
6.
7.
Description
KEIL microvision IDE allows programmers to use assembly code in their projects and run
that code on real hardware. In this lab students will use a given example project of Assembly
language based software application to blink an LED on MCB1768.
Students are then expected to modify that project such that all 8 LEDs of MCB1768
repeatedly blink one after the other. When all 8 LEDs have blinked once, the pattern should
repeat itself. Thus it will be a continuous LED pattern till the system is reset.
Activities
1. Open microvision IDE from start menu or a short cut on desktop.
2. Close any existing project by Project-> Close Project.
3. Now create a new project in KEIL using LPC1768 of NXP and click yes to copy the
startup assembly file.
4. Copy the system_LPC17xx.c file also to your project folder and add it to your
source file group.
Page 1 of 2
5. Copy the given main.s file to your project folder and add it to your source file group.
Exercise
Extend this program or create a new project and obtain the LED pattern mentioned in the
description part of the lab sheet. Demonstrate your program and get it marked by the lab
supervisor.
*** End of lab sheet ***
Page 2 of 2