ZeroCrossing with psoc 4 pioneer

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

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.

0 Likes
1 Reply
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

0 Likes