I need a little help solving some electronics problem. I need to calculate the charging and discharging time of a capacitor in the following Schmitt trigger astable circuit using LM311 I found. If I know that frequency is 100 kHz (stated on the datasheet).
The LTspice model of LM311 I found here.
I've calculated lower and upper threshold voltage on noninverting node using KVL and case for Vout=0 and Vout=5 and I've calculated Vtl=1.423 and Vth=2.15 which is somewhat similar to the simulation.
Using the charging formula for capacitor:
Vc(t)=Vinf+[Vinitial-Vinf]*e^(-t/R1 * C)
where Vinf is 5V and starting from the scenario where Vc(t)=Vth and Vinitial=Vtl I've calculated that time for which capacitor is charring is t1=2.726 microseconds, in the simulation it's 2.61 microseconds.
On calculating the discharging time, I used the same logic and formula for charging
Vc(t)=Vinf+[Vinitial-Vinf]*e^(-t/R1 * C)
Where Vc(t) is now Vth and Vinitial is Vtl and Vinf is 0 and calculated that time for discharging(t2) is 4.94 microseconds, or by using Vc(t)=Vthe^(-t2/R3C) I got that t2 is 4.94 microseconds, which is way off compared to simulation:
If I calculate the frequency using the results of my calculation 1/4.94us + 2.61us I'm getting around 132 kHz which is way off 100 kHz stated by the datasheet. I'm obviously doing something wrong here. My question is:
- For these calculations can I assume that the capacitor is only charging and discharging only through R3 or do I need to somehow calculate equivalent resistance seen by the capacitor using Thevenin theorem, for example. If so, can I get assistance, I'm having a bit of trouble finding Vtev and Rtev? Or perhaps I can use superposition?
- Can I assume 5 V and 0 V for Vout like I did in calculating Vth and Vtl?
I know this may be trivial, but I'm stuck here and I would appreciate some help. Thanks in advance.