Friday, July 5, 2019

led blinking program for pic16f877A

#include <htc.h>
#include

#define _XTAL_FREQ 8000000

void main()
{
  TRISB=0X00;
  PORTB=0X00;
  while(1)
  {
    PORTB=0XFF;
    __delay_ms(1000);
    PORTB=0X00;
    __delay_ms(1000);
  }
}

No comments:

Post a Comment

python class topic video