Measuring a variable freq/length pulse and generating more pulses.


Results 1 to 11 of 11

Threaded View

  1. #1

    Default Measuring a variable freq/length pulse and generating more pulses.

    I have a system where a motor position sensor provides six pulses per revolution.
    As rpm rises to a maximum of 6000rpm of course it goes up to 600 pulses a second.

    Lets say it's CMA in the diagram.

    Name:  CommSense.JPG
Views: 57466
Size:  5.7 KB

    If I wanted to generate two more pulse trains CMB & CMC identical to the incoming one but 20 degrees apart from each other and the one I am reading, what do the collective think would be the best approach?

    Lets assume a basic 12F683 8 pin pic running at 8mhz and a 12F1822 running at 32mhz.

    Timer 1 interrupt to get the pulse length?
    Timer 1 gate control mode?
    How to generate the other pulses at the reqd point.

    The system needs to work with accuracy from 1 rpm upto 6000 rpm.
    At low rpm I expect timer 1 will overflow causing issues but we could increment a second counter to keep a track of how many times if overflows at low rpm.
    Attached Images Attached Images  

Similar Threads

  1. HSERIN for variable length string
    By Pic2008 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 19th February 2010, 05:58
  2. Replies: 9
    Last Post: - 26th October 2009, 19:38
  3. need help for measuring two freq at same time
    By vu2iia in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 3rd January 2009, 04:48
  4. help generating low freq tones
    By Darrenmac in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 23rd June 2007, 08:45
  5. Measuring pulse widths
    By Dangerous in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 13th June 2004, 12:10

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