Hi David,
It looks like you are way in over your head with this project. I really have to ask the question I haven't seen asked yet but what are you studying in school? Has your instructor run the class through any training on programming?
Anyway, I want to push you in the right direction. Goto http://www.ecrostech.com/General/Tra...ghts/Steps.htm
and look at the little video of their demo board. ALSO READ THE INFORMATION ON THE MAIN PAGE. It will also tell you that you have along ways to go with your project. It points out some of the things the other members here have pointed out to you regarding trying to just light an LED with your chip. Even though the demo board was built around a different family of microcontrollers it is adaptable to the 16F877A chip you are wanting to use. And at a great cost. $15.00 for the demo board with parts less the micro.
After looking at the demo board working did you notice the North/South and East/West lights working? Kinda neat huh?
One of my first projects was building a traffic light from a PICBASIC book I bought on-line. It was great. I did a traffic control project for my home town back in 2001 and really got into the electronics of traffic lights. I found alot of things on-line. You need some time to explore.
Anyway, go to that site and spend some time looking through it. Put your thoughts together and try things in small steps and work your way up.
If it helps, Nuts and Volts magazine ran a series on learning to work with PICs that might help. They also put the articles together in book form.
I'm looking forward to watching your progress here. Now get to work!
BobK
Bookmarks