CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

How to program LEDs in pic16f877a

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Pasi
Guest







How to program LEDs in pic16f877a
PostPosted: Thu May 20, 2004 8:12 am     Reply with quote

Hi.

I am complitely unfamiliar with programming the pic-chip and now I am involved in a project where I need to program it.

We are using mplab IDE and mplab ICD2 with picdem 2 plus -demo board.

Can someone give me a code, which will light the LEDs, and maybe I can continue from there...

Thank you for your answers.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu May 20, 2004 6:05 pm     Reply with quote

See this thread. Several posts show how to toggle
LEDs by a simple program.
http://www.ccsinfo.com/forum/viewtopic.php?t=19199
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Thu May 20, 2004 6:23 pm     Reply with quote

And in case you don't have a C compiler and are coding in Assembly, try this:
http://www.mstracey.btinternet.co.uk/pictutorial/progtut7.htm

If you search Google you'll find a lot of good code samples.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group