loce
Newbie
context, I have been trying to simulate this part of the circuit but for some reason not getting the results needed. Just a quick explanation of this section, when comparator U5 outputs low U9 (Pmosfet) discharges C8 quickly, which I simulated and works fine. However, the part that is not simulating correctly is when the output of comparator U5 is high, U9 will charge C8 when there is not current betweent the drain and source which will take 10s to fully dischagre. As for U10, it charges C8 quickly when the circuit powers up, meaning all capacitors are usually discharged before power up. I am posting this because all the results I get are the opposite of what I expect which makes me extremely confused as I am confident the circuit is right, so any help is extremely appreciated
below I have attached an example of what I'm getting when simulating C8 which is supposed to charge as I set it to initially be = 0
I apologize for the long post but I cant seem to figure out the problem