please read it ( real time)


Results 1 to 12 of 12

Threaded View

  1. #8
    moud_man's Avatar
    moud_man Guest


    Did you find this post helpful? Yes | No

    Default

    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
    Attached Files Attached Files

Similar Threads

  1. Cleaning up code
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd December 2009, 07:14
  2. SEROUT WORD variable problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th April 2009, 11:20
  3. Changing declared variables names on the fly
    By jessey in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 16th December 2006, 06:34
  4. Serout2/serin2 Pbp Problem
    By SOMRU in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th December 2006, 19:55
  5. Timer in real time
    By martarse in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 29th July 2005, 14:24

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts