View Single Post
  #1   Spotlight this post!  
Unread 23-02-2004, 23:40
danielkitchener's Avatar
danielkitchener danielkitchener is offline
408 Computer Nerd
AKA: Daniel Kitchener
#0408 (Roboticks)
Team Role: Alumni
 
Join Date: Sep 2003
Rookie Year: 2001
Location: Pompano Beach, Fl
Posts: 52
danielkitchener is on a distinguished road
HELP!!! Counters, global variables, and the like

Well, here's a question with an answer that's probably very obvious. How do I create a counter used by both the default routine and process IO functions? I tried declaring a global variable, but MPLAB had a major case of PMS when I did. Perhaps I'm doing it wrong? Below the includes, I simply declared
int counter=0;
Is there a better way of doing this?
Also, how do I pass values between functions? Once again, the compiler gets testy
This is urgent, as we ship in 2 days