Instant Interrupts - Revisited


Closed Thread
Results 1 to 40 of 773

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    It's a regular PBP statement, but it's in an ASM block.

    Move it outside the block and it should work better.
    <br>
    DT

  2. #2
    Join Date
    Mar 2006
    Location
    INDIA
    Posts
    89


    Did you find this post helpful? Yes | No

    Default

    Syntex error

    Ohh. Sory sir, I cut yout code and paste, I don't see there are INCON

    Thanks sir, It's Working
    Last edited by precision; - 25th July 2007 at 12:22.

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Oops!
    <br>
    DT

  4. #4
    Join Date
    Nov 2003
    Location
    Sao Paulo - Brazil
    Posts
    92


    Did you find this post helpful? Yes | No

    Smile Multiple measurements with Instant Interrupts.

    Hi Darrel,

    some days ago, I was trying to measure the "ON time" of my car´s gasoline injectors (one of the 4)

    I´m using a 16F877 @ 10 Mhz, and I´m using the Timer0 as a 250 ms counter and Timer1 as a pulse counter, I ran out of possibilities of new measurements.

    Bruce told me that I should use a new device with more timers available, like the 18F4431 (or similar).
    The problem is : This device (or similar) is not available here in Brazil, and Microchip do not send samples to Brazil.

    I was reading this post about the interrupts and decided to ask :

    Is that possible to read the pulses on Timer1 on a fixed time interval (so, I would have the car´s speed and the mileage) and measure the injector on-time (so I would have the consumption) with the instat interrupts running on a 16f877 ?

    Thanks !

    Sergio

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Sure you can.

    I'd use the Capture mode of the CCP modules using Timer1, for the ON time.

    Timer 2 can be the timebase used to count the speedometer pulses on the INT (external interrupt) pin.

    And the same signal from the Injector can be fed to T0CKI, so Timer 0 can count the RPM's too.

    Speed, Distance, Consumption and Tachometer.
    <br>
    DT

  6. #6
    Join Date
    Nov 2003
    Location
    Sao Paulo - Brazil
    Posts
    92


    Did you find this post helpful? Yes | No

    Default

    Wow !

    thank you !

    I´ll try it this weekend and post the results here !

    Bye !

  7. #7
    Join Date
    Jul 2007
    Location
    Spain
    Posts
    2


    Did you find this post helpful? Yes | No

    Question Instant Interrupt & EEprom

    Hi,

    how i use the instant interrupt (very nice pice of code) and the write or eeprom comand. In the manual they say to turn off all interrupts. Or is there no problem to use them together?

    Many Thx for reply

Similar Threads

  1. Clock using Instant Interrupts
    By PICpocket in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th February 2009, 21:43
  2. DT instant interrupts with mister_e keypad
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th November 2008, 20:02
  3. DT's Instant Interrupts trouble
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 24th November 2008, 20:48
  4. Keypad and DT's Instant Interrupts
    By Homerclese in forum General
    Replies: 11
    Last Post: - 27th April 2007, 06:32
  5. Replies: 1
    Last Post: - 1st November 2006, 03:11

Members who have read this thread : 6

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts