DT Instant Interrupts help


Closed Thread
Results 1 to 8 of 8

Hybrid View

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


    Did you find this post helpful? Yes | No

    Wink KISS Method.

    Hi,

    W/ no interrupts using ...

    Code:
    ....
    
    
        while 1
         TOGGLE LED1
         COUNT rpmIn, 100, rpm 
         LCDOUT $FE,2, "PULS/S ", DEC(RPM ), "            "
         LCDOUT $FE, $C0, "RPM ", DEC(rpm)*60 , "                 "
        wend
    
    END
    so simple as that ... ( LCDOUT spaces avoid resetting the LCD ... which is toooooooo long ! )

    ... BTW : How many pulses per rev. ???

    Alain
    Last edited by Acetronics2; - 26th November 2008 at 15:22.
    ************************************************** ***********************
    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 " !!!
    *****************************************

  2. #2
    Join Date
    Jul 2007
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    Hi...

    Working fine now. Thanks for the directions.

    I know I donīt need interrupts to just blink a led (and donīt need for most of things). Just to see how it works.

    In future I expect this code will read some sensors (pressure, air temp, rpm and a pot), do some calculation and provide near exact extra fuel needed for an aftermarkt turbo charged engine runing at high revs. At this time I think that Iīll need interrups, since in this case, time is critical

    ... BTW : How many pulses per rev. ???
    Donīt know yet... need to check. Using 1 at this time.
    Last edited by perides; - 26th November 2008 at 15:40.

  3. #3
    Join Date
    Jul 2007
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    Canīt figure by myself .
    Can someone explain me tachometer maths??
    Engine will run up to 5500 revs. 1 pulse for revolution.

Similar Threads

  1. DT Instant Interrupts
    By krohtech in forum mel PIC BASIC Pro
    Replies: 38
    Last Post: - 25th February 2009, 16:33
  2. DT instant interrupts with mister_e keypad
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th November 2008, 21:02
  3. 12F683 and DT Instant Interrupts
    By jderson in forum mel PIC BASIC Pro
    Replies: 26
    Last Post: - 22nd November 2008, 13:47
  4. 18F1220 and DT Instant Interrupts
    By jderson in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 30th June 2008, 06:37
  5. Replies: 1
    Last Post: - 1st November 2006, 04:11

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