I can certainly do what I’m talking about, but still also interested in anything you come up with.
Timer driven (rather than event driven) pic programs are a rather new fad for me.
The calculation I posted, the reverse of which is:
Code:
$FFFF - (((20 / 4) * 10000) - 8) = $3CB7
Would blow out a word variable if you tried to calc the value for 40MHz! 
I was doing it with a desktop calculator in scientific mode right up to subtracting from $FFFF to look for any decimal places..
There will be trouble if you use a crystal that is not an even MHz increment.
Some crystals with decimal places would be fine, but PBP wouldn’t know if you introduced resolution error into the real time keeping.
I think seeing decimal places is fine right up until the final value $3CB7 is that correct?
You would not want to see decimal places int he final value.
Bookmarks