1 Reply Latest reply on Mar 2, 2016 1:31 PM by JoMe_264151

    ZeroCrossing with psoc 4 pioneer

    userc_40414

      Hello,

         

      I am a newbie with programing, is there any way that i can use a comparator or opamp on psoc to detect zero cross? What i want to do is just feeding a sinewave signal in the input and receiving a zerocrossing signal at the output. 

         

      I appreciate your help.

        • 1. Re: ZeroCrossing with psoc 4 pioneer
          JoMe_264151

          You might have to offset the sine, so that it is in the range GND < sine < VDD.

             

          The PSoC4 has got an IDAC which, together with a resistor, can be used to set  the reference voltage for the comparator.

             

          With an edge detector component following the comparator you have a signal that you can directly route to an output pin.

             

           

             

          ob