Led Blinking using Experiment 12F629



Program

//////////////////////////////////////////////////////////////////////
void init_ports(void) {
TRISIO = 0;
}
//////////////////////////////////////////////////////////////////////
void main()
{
int x;
init_ports();
do{
GPIO.GP1=1;
Delay_ms(1000);

GPIO.GP1=0;
Delay_ms(1000);
//GPIO.GP1=1;
}while(1);

}
Code is written using MikroC



 
Copyright Electronics Projects And Details All Rights Reserved
ProSense theme created by Dosh Dosh and The Wrong Advices.
Blogerized by Alat Recording Studio Rekaman.