0% found this document useful (0 votes)
185 views

Led Glowing Using LPC2378

The document describes a program to glow an LED connected to an LPC2378 microcontroller. It initializes header files, assigns the FIO3 pin for the LED, sets the pin's direction to output, adds a delay, toggles the pin to turn the LED on and off, and repeats this in a loop. The program is compiled and run on an LPC2378 board, successfully glowing the LED as intended.

Uploaded by

imbhartesh
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
185 views

Led Glowing Using LPC2378

The document describes a program to glow an LED connected to an LPC2378 microcontroller. It initializes header files, assigns the FIO3 pin for the LED, sets the pin's direction to output, adds a delay, toggles the pin to turn the LED on and off, and repeats this in a loop. The program is compiled and run on an LPC2378 board, successfully glowing the LED as intended.

Uploaded by

imbhartesh
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

EX NO: DATE: LED GLOWING USING LPC2378 AIM: To develop a program to glow led in LPC 2378.

ALGORITHM: Initialize the header files. Assign the FIO3pin for LED. Assign the directory(FIO3DIR=0x008000FF;) to set the LED Set the delay condition for LED to glow The led glows, after the delay led clear. The condition gets repeated.

PROGRAM:
#include<nxp\iolpc2378.h> #include<stdio.h> void delay() { for(int i=0;i<=0xff;i++) for(int j=0;j<=0xff;j++); } void main() { //PINSEL0=0x00000000; //PINSEL3=0x00000000; FIO3DIR=0x008000FF; while(1) { FIO3SET=0x000000FF; delay(); FIO3CLR=0x000000FF;

delay(); }}

SNAPSHOT:

FIG: BOARD VIEW FOR GLOW OF LED USING LPC2378

RESULT: Thus the led program is developed and result is viewed in LPC2378 Board.

You might also like