maybe it is just that I have to work on the weekend but I cannot seem to get this to work
I am creating a timer of sorts with four sensors on it and I want to keep the fastest time I have ever got.
If I dimension my varibles as longs (which they need to be ) it does not work if they are dimesioned and int it works fine although I cannot have any time past 2.55 seconds.
here is the code sippet
Code:
if (besttime < oldtime) {
oldtime = besttime;
//store in eeprom
}
can anybody help me??
I am using pcwh v 3.22 and an 18f452
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
Posted: Sat Apr 23, 2005 4:45 pm
Not with what you posted. The problem must be elsewhere. Look at the LST file. Do some debugging and find out what the problem is.
If you are using the same functions to store your ints as well as longs in the eeprom that could be your problem? You may need to break your long into two ints and then same individually.
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