I found where i saw 7 instructions...
In misterE Pic Multicalc, default is 7 instr for reload.
Check it out, and compare results. As far I can see, it uses $10000.
I found where i saw 7 instructions...
In misterE Pic Multicalc, default is 7 instr for reload.
Check it out, and compare results. As far I can see, it uses $10000.
If it’s discovered, I’m real surprised it hasn’t been noted somewhere,
because original values/calculations are still being used also.
It would be affecting commercial products out there I’ll bet.
If you assume 7 instruction cycles for reload, and use the correct overflow value, isn’t that still exactly the same problem?
Test is easy.. make 10,000 Hz hardware PWM, and 100Hz PWM with Elapsed timer on the same chip.
10,000Hz is the lowest even freq at 50% duty cycle without resolution error assuming 10 MHz clock.
So then it only takes one pic and two dividers running from the same crystal.
Then any old crystal of any value doesn’t matter... run the chip as fast as possible, until the LEDs run away from each other.
Art,
Trying to respond to your PM and your inbox is full.....
Regards,
TABSoft
Put it out here.. if it happens I end up the fool, I still appreciate finding out
ps.. it’s cleared if you must.
Ok I will just say respectfully same as if he were here, got you Darrel!
Really, we are all Human and this code is excellent.
I hope it is agreed that it is important to evaluate and improve things like this (and especially this).
Mods please, it would be the right time, if possible to make some of this thread disappear.
I’m sure Tabsoft will take care of it. I think original versions should be preserved, but somehow marked.
I have agreed to help test if need be (at least can do good tests with 16F and show how the test is done).
but the solution, is really that easy.
Cheers, Brek.
I'm doing some chores outside.
One of the mods will move the recent posts to a new thread asap.
Robert
(beautiful day here)
![]()
Thanks, no rush.. It just seems inappropriate, to do this, and also right and needed at the same time.
Tabsoft’s thread might be appropriate if some of this can just be moved. Now I have spoken to him I think it would be ok with him also.
Thanks Robert.
Brek
(I wish I could say the same, it’s been hell. I needed this to be wrong or it would be big problems for me, but all good now,
it might have been Sunny outside for all I know)
![]()
Bookmarks