Missing something ... But What ????


Results 1 to 5 of 5

Threaded View

  1. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: Missing something ... But What ????

    Jerson,

    I just commented the rolling average line
    Code:
    Ivalue = (Ivalue*9 + Nvalue )/10			' Rolling average
    replaced it by
    Code:
    Ivalue = Nvalue
    ... and it began to work fine @ first run !!!

    that is somewhat incredible ...

    6 month ago, I wrote a similar program displaying on a couple of 7 segments : everything was fine.
    but I didn't use any average ...

    I do not understand that because the value was initialized with the average calculated just before entering the display loop ...

    Further tests look to show Nvalue = 0 @ first loop ( why ??? we are looping until a conversion result being available ... and it's ages the Pic ADC is stabilised ! ) : value is close to 9/10 Actual value, and then ... minimum value is generally under the minimum, and then not shown !

    that's how it should work ... but not why !

    I'll try to make further tests ...

    Alain
    Last edited by Acetronics2; - 5th November 2012 at 19:48.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Missing a bit
    By l_gaminde in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 31st August 2009, 18:54
  2. I've got to be missing something
    By Perrin` in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 19th July 2008, 00:27
  3. What am I missing????
    By cphillips82 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 15th July 2008, 14:03
  4. What am I missing here? If..Then
    By elevenscorpions in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd May 2007, 03:06
  5. What am I missing
    By PaulB in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 12th November 2004, 16:15

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