Good morning,
I'm trying to understand the purpose of the slider "Reload (Instr. Cycle)" anyone can see into the fantastic tool named Pic MultiCalc made by Mister-e.
The reason why I'm trying to fully understand it is because I'm trying to setup Timer1 to interrupt each 100ms.
So, having a 20Mhz oscillator and using Pic MultiCalc - Timer Helper, with a "Reload Instr. Cycles" of (default) 7 and a Prescaler of 8, I've got the value of 3036 with an error of 0.001% to pre-load Timer1.
So, the Timer1 really interrupts each 100.001 ms.
I've used the very good Darrel's Instant Interrupt and it works like a charm.
BUT now here is the problem.
I need a very precise time-base, precise at least for 24 hours continuously.
Doing the math, in 24 hours are 60 * 60 * 24 = 86400 seconds.
With a 0.001% error, in 24 hours I'll have 86400 - 0.001% = 86399.136.
Doing integer rounding to show on a display, I'm loosing about 1 second per day.
I know that the "reload" is used to "compensate" the time "loose" to get to the interrupt and to reload the Timer1 register.
Playing with that slider, I've seen that I could land to 0.0% error if "Reload Instr. Cycle" is 2 or 8.
That said, the whole question is: how to estimate the correct value to be used as input for that slider? How to calculate the time needed for that task? Is the default value of 7 for what reason?
Also a little request to Mister-e: Pic MultiCalc on Windows7 have all the captions of the labels and text on the buttons that overflow the boundaries of the button or label (see picture).
The reason is of course Micro$oft bad habits. In Windows7 the standard font get bigger than XP.
Could you please increase the size of the labels and the buttons in order to fit it, or just use the Tahoma font (even a little smaller just to be sure...)
THANK YOU A LOT for your good tool and help.
Mike
![]()
Bookmarks