<div dir="ltr">Chip.<div><br></div><div>Since there are never enough ways to skin a problem...</div><div><br></div><div>The _LE on the MAX is "hold current output" and your design requires "hold detection until reset".  With an inverter you should be able to drive _LE from OUT.  IIRC a pair of NORs should get you a "hold detection" latch with the ability to reset from a uP without sleep killing the whole deal.  The low pass filter on input is an excellent idea in this configuration.  What's your uP and are outputs HiZ when sleeping?</div><div><br></div><div>Mike</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 21, 2016 at 8:49 PM, Chip McClelland via TriEmbed <span dir="ltr"><<a href="mailto:triembed@triembed.org" target="_blank">triembed@triembed.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">All, <div><br></div><div>OK, before you say it, yes, I first consulted Google before sending this note.  I have not worked with these devices before and the latch operation is the part that I find most confusing. The best device I could find was the <a href="https://datasheets.maximintegrated.com/en/ds/MAX9140-MAX9144.pdf" target="_blank">MAX9141</a> but the operation of the latch in figure 2 was not what I expected.  </div><div><br></div><div>I am looking for a simple circuit which will do the following:</div><div><span style="white-space:pre-wrap">     </span>- Powered, Vcc, by either 3.3V or 5V and should not consume more than 100uA.</div><div><span style="white-space:pre-wrap">     </span>- Connect to the analog output  (ranges from 0 to Vcc) of my <a href="http://www.maxbotix.com/Ultrasonic_Sensors/MB7363.htm" target="_blank">Ultrasonic Range Finder</a> with a high input impedance - potentially with a low-pass filter - we will see.</div><div><span style="white-space:pre-wrap">      </span>- Allow me to set a “trigger threshold” ( 0 to Vcc) using a potentiometer </div><div><span style="white-space:pre-wrap">  </span>- Compare the input to the trigger and provide a latched digital “high” when the input exceeds the threshold</div><div><span style="white-space:pre-wrap"> </span>- This signal will wake the micro controller using a hardware interrupt and trigger an interrupt routine.</div><div><span style="white-space:pre-wrap">        </span>- The comparator will hold the line “high” input until cleared by the micro controller</div><div><br></div><div>Anyone who has a few minutes to take a look please let me know:</div><div><span style="white-space:pre-wrap">        </span>- Is the part I found the right one?</div><div><span style="white-space:pre-wrap">     </span>- Is there a better solution - perhaps using discrete components?</div><div><br></div><div><br></div><div>Thank you,</div><div><br></div><div>Chip</div><div><br></div></div><br>_______________________________________________<br>
Triangle, NC Embedded Computing mailing list<br>
<a href="mailto:TriEmbed@triembed.org" target="_blank">TriEmbed@triembed.org</a><br>
<a href="http://mail.triembed.org/mailman/listinfo/triembed_triembed.org" rel="noreferrer" target="_blank">http://mail.triembed.org/mailman/listinfo/triembed_triembed.org</a><br>
TriEmbed web site: <a href="http://TriEmbed.org" rel="noreferrer" target="_blank">http://TriEmbed.org</a><br>
<br></blockquote></div><br></div></div>