You are here

ZeroCrossing with psoc 4 pioneer | Cypress Semiconductor

ZeroCrossing with psoc 4 pioneer

Summary: 1 Reply, Latest post by Bob Marlowe on 02 Mar 2016 01:31 PM PST
Verified Answers: 1
Last post
Log in to post new comments.


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.

user_1377889's picture
9294 posts

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.



Log in to post new comments.