DIV32 Questions ...


Results 1 to 6 of 6

Threaded View

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

    Question DIV32 Questions ...

    Hi,

    For my last hair sake ...

    The attached program ( 18F452 @ 4 Mhz ) / PbP 2.47 / MPLAB 7.61a is a RPM counter for 4 Stroke 1 cyl engines ...

    Based on Period Measuring ( w/ TMR3 ) and DT instant interrupts.

    What goes wrong is the DIV32 calculation ... I've verified everything before: period is good, period measurement is right , Stable, and all data furnished to DIV 32 are "legal" ...

    But result is quite FALSE !!!

    The worse thing is I have successfully used DIV32 very often !!!

    Placing DIV32 outside the interrupt stubb gives the same results, even when cancelling interrupts while Dummy and DIV calculating ...

    I'm certainly missing something ... but what ???

    Thanks to our gurus

    Alain

    PS for DARREL: All other parts of the lawn tractor computer work well ... just missing this part !!! Grrrrrr !!!
    Attached Files Attached Files
    ************************************************** ***********************
    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. Problem with Div32
    By lerameur in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 22nd April 2008, 02:54
  2. RPM - DIV32 Problem
    By davewanna in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 11th April 2008, 04:33
  3. Div32
    By Archangel in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 2nd February 2007, 20:26
  4. 32-bit Variables and DIV32, Hourmeter 99999.9
    By Darrel Taylor in forum Code Examples
    Replies: 9
    Last Post: - 23rd November 2006, 07:23
  5. Retrieving Div32 Remainder
    By Darrel Taylor in forum Code Examples
    Replies: 4
    Last Post: - 20th August 2003, 03:53

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