Need Help! Sine Wave To Square with Comparator
Hey everyone!
Thanks a lot, guys!
Hey everyone!
I am doing a project with a pic microcontroller.
Now I just need to convert the input sine signals (frequency: 50/60 Hz) to really really good squares. When the sine signal is positive the output has to be 5V, when the sine signal is negative the output has to be 0V. I want to use a comparator (maybe lm393, lm339, lm311) but I can't figure out how to connect a comparator for my purpose. The datasheets are no help. If someone has a scheme, I'd really appreciate it, or any other help!
Now I just need to convert the input sine signals (frequency: 50/60 Hz) to really really good squares. When the sine signal is positive the output has to be 5V, when the sine signal is negative the output has to be 0V. I want to use a comparator (maybe lm393, lm339, lm311) but I can't figure out how to connect a comparator for my purpose. The datasheets are no help. If someone has a scheme, I'd really appreciate it, or any other help!
Thanks a lot, guys!
Last edited: