Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

basic program in pic 16f877a

Status
Not open for further replies.
Which compiler are you plab\nning to use..?? CSS C or Hi-tech C compiler??
 

sshanmugapriya said:
we are using ccs compiler
here is one for blinking LED :D:D:D

Code:
#include<16f877a.h>
#fuses nowdt,hs
#use delay(clock=12mhz)

void main()
{ 
  
 
while(1)
{
   output_high(pin_b0);
  delay_ms(1000);
   output_low(pin_b0);
  delay_ms(1000);

}


}
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top