<div dir="ltr"><div>Thank you.</div><div><br></div><div>I can readily stick a solid 5V reference on the pull-up of an open-collector or open-drain comparator, but I am feeling stupid about what happens for the low output voltage. The LM339 data sheet lists a V_OL of 150 to 400mV. That's a reasonable way above 0V. </div><div><br></div><div>Should I just live with it and trim it somewhere else in the circuit?</div><div><br></div><div>Guy.</div><div><br></div><div><br></div><div><br></div><div><br><div class="gmail_quote"><div>On Wed, 20 Jun 2018 at 17:02, Pete Hartman <<a href="mailto:pete.hartman@gmail.com" target="_blank">pete.hartman@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="gmail_extra"><div class="gmail_quote">On Wed, Jun 20, 2018 at 10:30 AM, Lloyd Abbott <span><<a href="mailto:lloydabbott94@gmail.com" target="_blank">lloydabbott94@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>What rails do you have available ? Have you considered a comparator IC (e.g. LM339) rather than using general purpose op-amps ?<div><br></div><div>If you have 0V, +5V and +15V rails, with an LM339 you can reference the comparator input side to the 0V and +15V rails and have the output side referenced to 0V and +5V. The datasheet has an example circuit using one pullup resistor and one cap per comparator.</div><div><br></div></div></blockquote><div><br></div><div><br></div></div></div></div><div><div class="gmail_extra"><div class="gmail_quote"><div>I was going to suggest this as well. The 339 and its family are all open collector outputs, so you can use a pull up to any voltage you like, a rail or a reference voltage or whatever to get the swing you need and if necessary convert levels.</div></div></div></div>
</blockquote></div></div>
</div>