LED Blinking program by using Mikro C -

LED Blinking program  by using Mikro  (PIC 16F877)

void main() {
 TRISB = 0; //Makes PORTB0 or RB0 Output Pin

  while(1) //Infinite Loop
  {
    PORTB = 0x55; //LED ON
    Delay_ms(1000); //1 Second Delay
    PORTB = 0xAA; //LED OFF
    Delay_ms(1000); //1 Second Delay
  }
}

Post a Comment

[facebook][blogger]

MKRdezign

Contact Form

Name

Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget