Sunday, 4 November 2012

LED Blinking PIC16F877A

void main()
        {
        TRISB = 0 ;     // set PORTB as OUTPUT         for(;;)         // forever
                {
                PORTB = 0xff ;          // turn all LEDs ON
                Delay_ms(500) ;         // wait 500 ms
                PORTB = 0 ;             // turn all LEDs OFF
                Delay_ms(500) ;         // wait 500 ms
                }
        }

Sidharthan G
electricalmiracles.
 

No comments:

Post a Comment