Zero cross detect - switching audio


Results 1 to 20 of 20

Threaded View

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


    Did you find this post helpful? Yes | No

    Default Re: Zero cross detect - switching audio

    Then I will have to agree with you. Now you could do it in reverse, on EVERY ZC, call ISR, Check for switch pressed or released, if it is, turn on thingy, of not leave.
    Or use the ZC as the timing for main.

    while not ZC :WEND
    switch pressed do stuff
    released do other stuff
    continue to twiddle bits, flash LED's, whatever
    goto main

    As long as main takes less then 333uS (for a 1.5K period) you will never miss a beat, and I don't think you can get any faster
    Last edited by cncmachineguy; - 31st October 2011 at 11:36.
    -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