<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>That circuit will work, though if you want the voltage to fall when the oscillator is turned off, then you'd need a drain resistor too.</div><div><br></div><div>Please keep in mind that if this is a simple square wave oscillator that doesn't do anything else interesting, it'll charge the capacitor half as fast as a direct connection to VCC (minus diode drop for whatever diode you select). By changing the RC values you could accomplish the exact same thing with a piece of wire.</div><div><br></div><br><div><div>On Sep 12, 2013, at 12:38 PM, Johny Radio <<a href="mailto:johnyradio@gmail.com">johnyradio@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
  
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
  
  <div bgcolor="#FFFFFF" text="#000066">
    On 9/12/2013 10:38 AM, macegr wrote:
    <blockquote cite="mid:23432DDB-D65E-4047-8C92-288D54211593@gmail.com" type="cite">
      <div>Must you actually charge it with the oscillator, or are you
        simply attempting to generate a time-dependent voltage on the
        capacitor?</div>
    </blockquote>
    <br>
    must actually charge it with the crystal osc, because our challenge
    is to make something with the parts given us by <a href="http://Instructables.com">Instructables.com</a>.<br>
    <br>
    <blockquote cite="mid:23432DDB-D65E-4047-8C92-288D54211593@gmail.com" type="cite">
      <div> If you're using a TTL oscillator module, it might be
        outputting a 5V square wave. This would allow you to charge a
        peak-detector circuit (diode inline to capacitor connected to
        ground, optional drain resistor) to within maybe 0.6V below VCC.
        This will be harder if you're trying to connect directly to an
        oscillator circuit without an output buffer.</div>
    </blockquote>
    <br>
    ok, i can add a transistor buffer to the xtal output if necessary.
    I'm assuming the resistor will determine the charge time of the cap.
    Is this correct:<br>
    <br>
                                                    OSC--<br>
                                                             |<br>
                                                             |<br>
                                                          Diode<br>
                                                             |<br>
                                                             |<br>
                                                          Capacitor<br>
                                                             |<br>
                                                             |<br>
                                                          Resistor<br>
                                                             |<br>
                                                             |<br>
                                                           GND<br>
    <br>
    <br>
    Johny Radio<br>
    <div class="moz-signature"><font size="+1"> <img alt="" src="http://us.123rf.com/400wm/400/400/robodread/robodread1201/robodread120100030/11882514-ear-and-sound-waves.jpg" moz-do-not-send="true" width="150"><br>
      </font><br>
    </div>
  </div>

</blockquote></div><br></body></html>