32 bit seconds math (how do I include the upper 16 bits?)


Results 1 to 17 of 17

Threaded View

  1. #11
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427


    Did you find this post helpful? Yes | No

    Default Re: 32 bit seconds math (how do I include the upper 16 bits?)

    PS
    you can see the DS18b20 temp sensor at the top above the 8x8 LED matrix
    the two large holes at the top corners are for a cord lanyard to be attached and the Scouts can wear it around their neck.
    the two push buttons allow for different functions and for the race car game to be played when turned sideways.
    The CR2032 battery lasts for a LONG! time... at least a couple of years of random usage

    Here is a crude hand drawn schematic.

    All the pins are in use on the 20 pin PIC
    You can see that the DS18b20 is tied to one of the pushbuttons
    I plan to tie the RTC to the other push button
    Therefore either of the OneWire devices can only be read when the button is NOT depressed.
    (I account for that limitataion in code)
    No, there are no current limiting resistors used because of the internal impedance of the CR2032 batt
    and I pulse the rows and columns of the LED matrix to limit current (haven't had a failure yet)

    the Kit has been a great success and hopefully inspired some new electronics enthusiasts!

    The DS2417 RTC would be powered directly from the battery and not powered down when the PIC is off.

    I will tie the RTC to the other button input (this way I can ignore the One Wire address requirement as each input will only talk to one OneWire device)

    Name:  2015-01-30_164203.jpg
Views: 17348
Size:  119.9 KB

    Thanks again to you and Henrik for helping out here
    This is GREAT fun!!! (although my Wife can't figure out why)
    To me it really is rewarding to develop code and be able to trouble shoot and see the results almost instantly with flash programming.
    Last edited by Heckler; - 31st January 2015 at 00:53.
    Dwight
    These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.

Similar Threads

  1. 32 bit math
    By fnovau in forum General
    Replies: 4
    Last Post: - 13th February 2008, 00:55
  2. Averaging 16 bit values without using 32 bit math
    By sirvo in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th October 2007, 23:18
  3. PIC18Fxx math 24 & 32 bit
    By ronsimpson in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 2nd December 2006, 13:52
  4. 32 bit math
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 28th August 2006, 14:34
  5. PBP 16-bit ADC result math
    By sonic in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 13th March 2005, 15:21

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