Pulse count matching


Results 1 to 6 of 6

Threaded View

  1. #3
    Join Date
    May 2007
    Posts
    65


    Did you find this post helpful? Yes | No

    Default

    I think in a possible solution:
    Connect my pulse wire to RB6/T1CKI, that is Timer1 input pin, PORTB. Hope I can use RB Port Change Interrupt at the same time as Timer1 is ON. If it is possible, then:

    To get pulse count:
    -when INTCON.0=1 (alias RBIF) interrupt onchange in PORTB, increment MyCounter variable 'manually',
    To get time interval:
    -use Timer1 and calculate speed on each Timer overflow interrupt PIR1.0=1 (alias TMR1IF) or whenever i want

    Is it possible that solution??



    PD:
    [It has come to my mind another question about Interrupts Identification in a new Thread...'Interrupts Identification']
    Last edited by RodSTAR; - 21st April 2008 at 09:39.
    "Beethoven had his critics too, see if you can name 3 of them"

Similar Threads

  1. Pulse Capture and byte building
    By boroko in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st July 2009, 01:59
  2. COUNT is not counting again
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 33
    Last Post: - 19th June 2009, 04:52
  3. Indexer not indexing...a basic PBP problem??
    By jellis00 in forum General
    Replies: 8
    Last Post: - 24th March 2009, 16:53
  4. Can't get COUNT to count
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 23rd March 2009, 23:14
  5. Replies: 3
    Last Post: - 13th September 2008, 17:40

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