You write amazingly good "unverified" code!
You did miss one "NEXT" down at the end.
I had to change your ooHH, etc. variables to match mine (owHH)
But it is working beautifully!...
Sorry, I should have posted that info...
Using PBP 3
the PIC is 16F690 (but I also want to be able use the newer 16F1828)
I had thought about using Long's but I've never used PBPL...
Try the following:
ooDays VAR WORD
i VAR WORD
Temp VAR WORD
' This uses DIV32 by preloading the system variable it uses with
' the value we want to divide. To find out how many...
You don't mention what PIC MCU you are using nor which version of Picbasic.
If your PIC and version of Picbasic supports Long variable types, that would be the simplest way to go. You...
I am using a Dallas Semiconductor DS2417 RealTimeClock
This little OneWire device simply starts counting seconds from where ever you tell it to start from (your date reference)