What is the voltage you want it to disconnect at (Vu)?
What is the voltage you want it to reconnect(Vl)?
If you are separately switching the load on/off, you need a minimum load resistance (~100K) between the drain of the pFet and ground to pull the right end of the 2.2meg resistor to ground if the load is missing.
Obviously, Vu and Vl must be above the Vref (2.495V) of the TL431. I am using the 431 as a comparator where the Ref input is compared to the internal Vref of 2.495V and when Ref>Vref the Cathode is pulled down to ~2V. The minimum Vl and Vu is then determined by the sum of Vt of the PFet (~4V?) plus the 2V drop from cathode to anode, which means that the circuit will work when Vcc is >~6V
To compute Vu and Vl algebraically, follow this:
Call the resistance from cc to ref R1, so R1=26200+500=27200
Call the resistance from ref to gnd R2, so R2=10000+500=10500
Call the feedback resistor R3, R3=2200000
When the input V(cc) is initially low, the load pulls V(out) to 0V, effectively putting R3 in parallel with R2.
R' = R3*R2/(R3+R2) = 2200000*10500/(2200000+10500) = 10450
Now use the voltage divider equation to compute the switching point V1:
2.495 = V1*R'/(R1+R')
solving for V1, V1=2.495*(R1+R')/R' = 2.495*(27200+10450)/10450 = 8.989
Similarly, when Vcc is initially high, and decreasing, the other switching point occurs with R3 in parallel with R1, so R'' = R1*R3/(R1+R3) = (27200+2200000)/(27200+2200000) = 26868
2.495 = V2*R1/R1+R'')
V2 = 2.495*(R1+R'')/R1 = 2.495*(10500+26868)/10500 = 8.879
So, the hysteresis is V1-V2 = 0.110
Here is a sim showing the hysteresis in this example.
What is the voltage you want it to reconnect(Vl)?
If you are separately switching the load on/off, you need a minimum load resistance (~100K) between the drain of the pFet and ground to pull the right end of the 2.2meg resistor to ground if the load is missing.
Obviously, Vu and Vl must be above the Vref (2.495V) of the TL431. I am using the 431 as a comparator where the Ref input is compared to the internal Vref of 2.495V and when Ref>Vref the Cathode is pulled down to ~2V. The minimum Vl and Vu is then determined by the sum of Vt of the PFet (~4V?) plus the 2V drop from cathode to anode, which means that the circuit will work when Vcc is >~6V
To compute Vu and Vl algebraically, follow this:
Call the resistance from cc to ref R1, so R1=26200+500=27200
Call the resistance from ref to gnd R2, so R2=10000+500=10500
Call the feedback resistor R3, R3=2200000
When the input V(cc) is initially low, the load pulls V(out) to 0V, effectively putting R3 in parallel with R2.
R' = R3*R2/(R3+R2) = 2200000*10500/(2200000+10500) = 10450
Now use the voltage divider equation to compute the switching point V1:
2.495 = V1*R'/(R1+R')
solving for V1, V1=2.495*(R1+R')/R' = 2.495*(27200+10450)/10450 = 8.989
Similarly, when Vcc is initially high, and decreasing, the other switching point occurs with R3 in parallel with R1, so R'' = R1*R3/(R1+R3) = (27200+2200000)/(27200+2200000) = 26868
2.495 = V2*R1/R1+R'')
V2 = 2.495*(R1+R'')/R1 = 2.495*(10500+26868)/10500 = 8.879
So, the hysteresis is V1-V2 = 0.110
Here is a sim showing the hysteresis in this example.