Low frequency audio level detector using PIC ADC?


Results 1 to 40 of 69

Threaded View

  1. #12
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default Re: Low frequency audio RMS signal level detector using PIC ADC?

    Quote Originally Posted by HankMcSpank View Post

    This gives me an interrupt frequency of 11.44khz (ie 5.72khz on the scope)
    Hank, this still bothers me.

    Can you try this:
    Code:
    BMAIN:  'make this your new temporary main for this test
     LATC = LATC ^ %00001000 ' this assumes you can use portc.4 as an output.
     GOTO BMAIN
    
     'new ISR
    LATC = LATC ^ %00000100 ' this will toggle portc.3
    the point here is main will just toggle portc.4 and the ISR will toggle portc.3. When you scope these, we will see the speed at which you are running. We expect main to be ~4 instructions, maybe 6. so that would give C.4 a frequency of .5M (.25M) and the ISR should interupt every 7 or 8th time through main.
    Last edited by cncmachineguy; - 17th February 2011 at 12:23. Reason: Fixed frequency for 8M osc
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

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