Maths - Summing small numbers with decimals


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default Help!!!

    Since I'm using interrupts, storing data with WRITE might sometimes be too long in conjunction some ADC processes.

    How do I store numbers greater than 65535 in variables and reuse them?

    I'm lost.
    Roger

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by flotulopex View Post
    Since I'm using interrupts, storing data with WRITE might sometimes be too long in conjunction some ADC processes. How do I store numbers greater than 65535 in variables and reuse them? I'm lost.
    PBP 2.50a handles LONG variables, 32 bits, numbers.

  3. #3
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default ...

    Y a plus qu'a cracher au bénitier!!!
    Roger

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by flotulopex View Post
    Y a plus qu'a cracher au bénitier!!!
    Again, typical small U.S. school's got me here...I don't get it
    Me = uni-lingual ... there's a better word for that, but I don't know what it is off hand...

    My point is that PBP can handle numbers over 65535 by using LONG variables...which you can then split up using the WORD or BYTE modifiers, then store those numbers if needed, or recover them, using the WORD, or BYTE variable modifiers.

  5. #5
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default and...

    .. is it working with any type of PIC or is this LONG feature limited to a certain type of µcs?
    Roger

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by flotulopex View Post
    Since I'm using interrupts, storing data with WRITE might sometimes be too long in conjunction some ADC processes.

    How do I store numbers greater than 65535 in variables and reuse them?

    I'm lost.

    Roger ...

    You can store them in temporary variables and send them to EEPROM when you've enough time ...

    WHILE some ADC conversions are running in the background ... for example.

    ah, ... yes, I see ... that needs some ... brain use ???


    just open your PBP "samples" folder and look for "A2D10" ... instead of "ADCIN10"

    ...

    Good night, Roger

    Alain
    ************************************************** ***********************
    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 " !!!
    *****************************************

  7. #7
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default Aha!

    J'ai ze feeling qu'on me taquine un peu...

    Going to do some searching in the samples then.

    Thanks for the advice.
    Roger

Similar Threads

  1. Replies: 4
    Last Post: - 15th April 2009, 01:54

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