I have such circuit:
Vin is either equal to Vcc or to 0.
How do I go about determining Vout?
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It only takes a minute to sign up.Sign up to join this community
The first thing you need to know is that the capacitor charges fully to the Vcc at steady state i.e the capacitor maintains 3.3V with respect to ground.And once the capacitor is fully charged, it acts like a open switch which stops the flow of current. Since the Vout is directly connected to the capacitor, the output voltage is equal to the voltage across capacitor that is 3.3V.
Now, when the Vin is equal to 3.3V, nothing happens to the circuit.
Please ignore the values of the components I have in my circuit. Also ignore the names in your circuit and look at mine now. I tried editing the circuit but the 'edit' button has disappeared in the preview section. Sorry for the inconvenience.
In this case. node 1 is at 3.3V. This means that there is no any potential difference across the resistors R1 and R2. So no any current flows through any of the resistors. Also the capacitor doesn't discharge due to the fact that there are no any nodes at lower potential with respect to the capacitor's potential.
When the Vin goes to zero, something happens. Since the node 1 is at zero volt, the capacitor finds 'somewhere' to dump its potential. So the capacitor stats to discharge through the resistor 1(in my figure). Due to the discharge of the capacitor, the voltage across it starts to decrease as well. Once the capacitor is fully discharged, the output voltage is zero. For the instantaneous voltage across the capacitor, I suggest you reading this topic. Once you get the instantaneous voltage across the capacitor, you get the instantaneous Vout
I'm guessing you need to know Vout when the circuit has reached it's stationary state.
When that happens the capacitor charges to a voltage so that no current flow through it. So you can "remove" it from your circuit.
Then you need to evaluate both cases, when Vin = 0V and when Vin = 3.3V.