Frequency detection (audio)


Results 1 to 23 of 23

Threaded View

  1. #9
    Join Date
    Mar 2009
    Posts
    653


    Did you find this post helpful? Yes | No

    Default Re: Frequency detection (audo)

    Quote Originally Posted by cncmachineguy View Post
    Hank,, how bout toggling a pin in your ISR to show when the PIC thinks it should start and stop counting.
    EDIT : OK I see youo have done that already DOH!!
    No...I hadn't so put a toggle in my ISR (top tip - tks!)

    I've scoped the ISR 'toggled' pin & I'm seeing 250hz on there?!! (therefore 2 x 250hz = an interrupt rate of 500Hz ....this for a 1kHz audio signal?!)

    I confirmed my input to the comparator was 1Khz...and also the output from the PIC comparator is definitely 1khz (since I've brought it out on a PIC external pin & scoped it).

    So it looks like my comparator interrupt isn't working properly and my interrupt is only happening at half the rate it should???

    Any ideas?!!
    Last edited by HankMcSpank; - 7th June 2012 at 17:13.

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