blueroomelectronics said:
Hmm I'll have to read through the listing, I am using Timer0 but not the prescaler. I thought there was no way to read the prescaler data.
And they say a clock is more work... (Already made a basic clock twas easy)
I'd like to use timer0 for the counter
timer1 is the timebase
timer2 is display refresh
Gosh, you really didn't take time to look at that listing, did you? Or the "Flush" routine I provided on the first page of this thread? Or perhaps you just didn't recognize what it was?
Your designs and your code seem to indicate you're not thinking about using PIC resources efficiently, yet. Timer 2 can easily be used for the display refresh and a Clock timebase or a Frequency Counter timebase. Dedicating RB6 and RB7 for the ICD2 may be handy on one design but for Pete's sake, not on every design. Hell, that's what the Simulator is for.
You seem to want to learn things on your own so I'll shut up, leave you alone, and stop trying to make suggestions to get you thinking along a different path (grin).
... A Clock is harder if it's done the right way. You have to come up with a simple method for flashing each display group when in Set mode, debounce switches, manage the various displays (Clock, Calendar, Alarm, Appliance Timer, Outside Temp, Inside Temp), etc.