Electronic – the function of the capacitor in this circuit

adcbatteriesmicrocontrollermosfet

I was reading on the internet about reading the remaining voltage level of a battery operated device using an ADC. This circuit is designed so that the ADC is only used when it is needed to be used, rather than it constantly draining the battery.

However, I do not understand what R3 and C1 are used for. I'm guessing it's some kind of MOSFET driver, but I am not sure.

Could someone help me to understand what they are for?
Thanks

enter image description here

Best Answer

R3 is to pull the gate up close to source potential when Q2 is turned off (which turns Q1 off).

Q2 pulls the gate down to ground potential to turn Q1 on (the gate will be at -Vcc with respect to the source).

C1 uses up PCB real estate, costs money, and does nothing of any value. It just slows down the turn-off of Q1 a bit, and the turn-on hardly so you would notice it.