0% found this document useful (0 votes)
70 views2 pages

Ledflash With Arm

This document describes an experiment to flash LEDs using an ARM processor. Five LEDs are connected to different digital pins of the ARM microcontroller board. An Energia program is written to turn the LEDs on one by one with a delay, then turn all LEDs off, and repeat the cycle. When the program is run, the LEDs light up sequentially and the circuit flashes the LEDs in a repeating pattern as intended.

Uploaded by

Anand Duraiswamy
Copyright
© © All Rights Reserved
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)
70 views2 pages

Ledflash With Arm

This document describes an experiment to flash LEDs using an ARM processor. Five LEDs are connected to different digital pins of the ARM microcontroller board. An Energia program is written to turn the LEDs on one by one with a delay, then turn all LEDs off, and repeat the cycle. When the program is run, the LEDs light up sequentially and the circuit flashes the LEDs in a repeating pattern as intended.

Uploaded by

Anand Duraiswamy
Copyright
© © All Rights Reserved
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

WWW.STUDENTSFOCUS.

COM

FLASHING OF LEDS WITH ARM PROCESSOR


AIM
To perform the flashing of LEDs with ARM processor

APPARATUS REQUIRED
1. ARM processor - TM4123GXL
2. Separate 5V power supply
3. LEDs – 5 nos
4. Bread Board
5. Connecting wires.

THEORY
5 LEDs are connected with ARM processor by individual digital pin. Program is
written to ON LEDs one by one then off all the LEDs at a time, then ON the LEDs one
by one, the same loop is operated. So the flashing of LEDs is done.

PROCEDURE
1. Connections are given as per the circuit diagram.
2. energia program is loaded into the ARM processor.
3. Output is observed in LEDs.
4. LEDs are gets ON one by one, then at a time all the LEDs are turned OFF, then
LEDs are gets ON one by one, loop is contined.

PROGRAM
int tonDelay=1000;
int toffDelay=500;
int LED1= PA_2;
int LED2= PA_3;
int LED3= PA_4;
int LED4= PE_0;
void setup()
{
pinMode(LED1, OUTPUT);
pinMode(LED2, OUTPUT);
pinMode(LED3, OUTPUT);
pinMode(LED4, OUTPUT);
}

void loop()
{
digitalWrite(LED1, HIGH);
delay(tonDelay);
digitalWrite(LED2,HIGH);

WWW.STUDENTSFOCUS.COM

delay(tonDelay);
digitalWrite(LED3, HIGH);
delay(tonDelay);
digitalWrite(LED4,HIGH);
delay(tonDelay);
digitalWrite(LED1, LOW);
digitalWrite(LED2,LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4,LOW);
delay(toffDelay);
}

CIRCUIT DIAGRAM

INPUT
ON led1, ON led2, ON led3, ON led4, ON led5
OFF all LED, again same thing to be repeated

OUTPUT
LED1 gets ON, LED2 gets ON, LED3 gets ON, LED4 gets ON, LED5 gets ON
All LED is turned OFF, same thing is repeated

RESULT
Thus the flashing of LEDs by ARM processor is performed and verified.

You might also like