hi all
i know that you arenot understanding me but all of your words are very usefull to me .
the missunderstanding is that i am building a clock project (you know, if i am building any other project i wouldnot need the time acc. ) that need a very high acc. that is it. ok!
i will upload to you my project code so you can really understand me, there are notes On it :
1-i am putting the Elapsed Timer,this code will calculate a very accurate 1 sec every a 100 ticks ***BUT THAT IS THE CASE IF THE ELAPSED TIMER CODE IS ALONE IN THE PROJECT****
2-the pic is driving a tow seven segment (if you want to build) and rotate the display around the tow seven segmant by porta.0 and porta.1 that is the main project code.
3-the dispaly is updated every one sec. of the ELAPSED TIMER CODE
4-the 2 seven segment is in the inverted mode that why i am putting 255-()
my observation is:
the display of the 2 seven segment is very well the problem is that there are some seconds that the project updates the display for more that 1 sec. and as the number increase the period of the sec. become shorter near to the actual one THe most long period of second is from 0 to 1 like (20 > 21)i donot know why?
No, i almost know, that instant is in the conditioning code of the program and it take more instruction cycles to excute is that correct?
if yes and i hope that it is the case what is the sol.
i had an idea i tryied to insert a condion "if " (like in the transition from 0 to 1 as i mentioned ) and will not do some thing like if d1= 100 then d1= d1 ,but it
doesnot work why again?
i want the soluion by editing the code and send it to me back or any thing ....
i am in the begining of the project in the issue of second i want to proceed in it to the hours but that problem is blocking me from that but it is the most important one, it is the base of the project
THE TIME
Bookmarks