Capture woes...


Closed Thread
Results 1 to 10 of 10

Thread: Capture woes...

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default Re: Capture woes...

    Bert, thanks for the insight.

    I'm still trying to wrap my brain around what you suggested. Are you saying the Debug might be affecting the captured value?

    Sorry I'm being so dense here.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: Capture woes...

    Last edited by mister_e; - 21st May 2011 at 11:21. Reason: Microchip's CCP Tips& Trick pdf
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default Re: Capture woes...

    Steve, thanks for that pointer. Things are very well explained indeed. Clarified some things, but am still not out of the woods yet.

    Is my understanding correct here?

    Slowest speed to be measured is 300 rpm. That is 5 Hz.
    Maximum time to be measured between consecutive high going edges is therefore 200,000 us.
    Therefore, T1, set to a prescaler of 1:4 should read 50,000 for a frequency of 5 Hz?

    This is at clock frequency of 4 MHz, Capture configured to increment every rising edge.

  4. #4
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default Re: Capture woes...

    Okay, finally got it working. Used the Melabs example at http://melabs.com/samples/LABX2-16F877A/ccpx2.htm and things are working precisely as expected.

    Thanks, guys!

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