0% found this document useful (0 votes)
18 views4 pages

Technosum Training Program 2012: Technosum Solutions Pvt. LTD

This document provides information about interfacing LEDs with an AVR microcontroller kit. It explains that LEDs can be interfaced with any of the four ports on the microcontroller and will display based on the programmed code. A sample code is given to blink individual LEDs connected to port C by changing the port value. The document also provides contact information for TechnoSUM, the training program provider, and encourages testing other codes to learn LED interfacing.

Uploaded by

Ravindra Panday
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)
18 views4 pages

Technosum Training Program 2012: Technosum Solutions Pvt. LTD

This document provides information about interfacing LEDs with an AVR microcontroller kit. It explains that LEDs can be interfaced with any of the four ports on the microcontroller and will display based on the programmed code. A sample code is given to blink individual LEDs connected to port C by changing the port value. The document also provides contact information for TechnoSUM, the training program provider, and encourages testing other codes to learn LED interfacing.

Uploaded by

Ravindra Panday
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/ 4

TechnoSUM

TechnoSUM Solutions Pvt. Ltd.


2/11, Nagar Maha Palika Colony,
Dada Nagar, Kanpur - 208022
E-mail: [email protected]

TechnoSUM Training
Program 2012
By

Topic:
LED INTERFACING WITH AVR KIT

Page 1

TechnoSUM

Page 2

TechnoSUM

LED Interfacing with AVR Kit


LED interfacing is the primary application of any microcontroller. We can interface LED to any
pin of four ports name PORTA,B,C,D of microcontroller then it shows the results according to
program which we provide. We have a pre-prepared LED PCB board for student convince. You
can connect to any four port of AVR kit and see the results according to code written.

Sample Code :
#include <avr/io.h>
#include <util/delay.h>
int main(void)
{
DDRC=255;
while(1){
PORTC=2;_delay_ms(100);
PORTC=4;_delay_ms(100);
PORTC=8;_delay_ms(100);
PORTC=16;_delay_ms(100);
PORTC=32;_delay_ms(100);
PORTC=64;_delay_ms(100);
PORTC=128;_delay_ms(100);
}
return 0;
}
* Try some other codes from your own or according to your mentor.

Page 3

TechnoSUM

TechnoSUM Solutions Pvt. Ltd.


2/11, Nagar Maha Palika Colony,
Dada Nagar, Kanpur - 208022
E-mail: [email protected]

http://technosum.com

Page 4

You might also like