ok, i will check that. But my project has to be EXTREMLY accurate. It have to work for hours with the correct hundreds of asecond.
I got another answer from another site:
Okay! That sounds good and easy! I am using a LCD and serial communication, but i guess that will work fine if i define the new crystal in the code, right?You want exactly 10msec and it's set for 8.192msec right now? Replace the crystal you're using right now to 81.92% of the value. For example, if it is 4.000Mhz right now, then replace it with a 3.2768Mhz crystal.
I found a program on the net today, it's a TMR0 calculator. Watch this image: http://w1.278.telia.com/~u27812750/Files/tmrsetting.GIF
According to this, it would be possible to change the TMR0 Offset and get exactly 2 ms. If this is possible, how do i do that then?
Bookmarks