Saturday, July 9, 2016

Led Blinking using pic16f877a

The circuit is very simple and it is the basic circuit. It consist of a micro controller and a led and a resistor and power supply. you can make this circuit on breadboard. 

The code is very simple.

#include
#define _XTAL_FREQ 1000000
void main()
{
TRISB=0x00;
PORTB=0x00;
while(1)
{
PORTB=0x01;
__delay_ms(1000);
PORTB=0x00;
__delay_ms(1000);
}
}
 VIDEO

No comments: