1
\$\begingroup\$

I have a staircase generator circuit with a MOSFET connected to capacitor 2. The input of the capacitor is connected to a comparator and I wish for the MOSFET to cut off when the output of the comparator is high.

The comparator is connected to a sine wave generator.

enter image description here

The waveform I want to achieve is shown below:

enter image description here

I am having problems achieving this, when the MOSFET is disconnected as above, the wave form I get is this:

enter image description here

So the blue staircase wave is working as intended albeit not resetting. However, the moment I connect the MOSFET the staircase waveform is affected with some weird fluttering at the beginning and it is not resetting the staircase:

enter image description here.

I have confirmed that with a manual switch the staircase resets as needed, however, I cannot get the transistor to work as intended.

enter image description here

\$\endgroup\$
2
  • 1
    \$\begingroup\$ This question looks extremely familiar... You didn't happen to delete this question and ask it again, did you? \$\endgroup\$
    – user103380
    Commented Apr 25, 2018 at 15:17
  • \$\begingroup\$ I deleted it yesterday because I realised I misunderstood the question, and what I was asking for was not possible or at more difficult than the scope of the question. Unfortunately only realised after wasting a lot of time. \$\endgroup\$ Commented Apr 25, 2018 at 16:20

1 Answer 1

2
\$\begingroup\$

It cannot work like that. The MOSFET discharges the capacitor just down to the value where VStaircase goes a bit lower than Vsine, not down to zero as you wish. It's a negative feedback, that it should do.

To act as you wish you need to trigger a short impulse that fully opens the MOSFET for a short time.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.