Interfacing of Led With PIC:

by embeddedbymedhavi in Circuits > Microcontrollers

81 Views, 0 Favorites, 0 Comments

Interfacing of Led With PIC:

ledd.jpg

Led ( Light emitting diode) :

Light Emitting Diodes are the mostly commonly used components in many applications. They are made of semiconducting material. This article describes about basic interfacing of LEDs to the 8051 family microcontrollers.

Interfacing of Led With PIC:

ledavr4.png

Program:

#include

#include

#define __PIC16f877A_H

__CONFIG (WDTE_OFF&FOSC_HS&PWRTE_ON&LVP_OFF);

void delay(unsigned int i)

{

while(i--);

}

void main()

{

while(1)

{

TRISB=0x00;

PORTB=0xFF;

delay(5000);

PORTB=0x00;

delay(5000);

}

}

Video of Of Led With PIC:

Interfacing of Led with PIC Microcontroller:

Any Query related Embedded System , IOT and Raspberry PI go to My Blog:

embeddedbymedhavi